VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: urzh12 on July 02, 2016, 15:40:49 PM

Title: Invoice PDF error Warning: reset()
Post by: urzh12 on July 02, 2016, 15:40:49 PM
When customers receive an invoice PDF, there is an error under QTY. I read in forums this was caused by not setting a TAX item in backend which I did not have originally. I did set one but the error persist.

The invoice is generated with sandbox paypal too. The rest of the Invoice looks great otherwise..

Warning:
reset()
expects
parameter 1
to be array,
boolean
given in
/co
mponents/c
om_virtuem
art/views/in
voice/tmpl/i
nvoice_ite
ms.php on
line 77

Warning:
current()
expects
parameter 1
to be array,
boolean
given in
components/c
om_virtuem
art/views/in
voice/tmpl/i
nvoice_ite
ms.php on
line 78

Notice:
Trying to
get
property of
non-object
in
components/c
om_virtuem
art/views/in
voice/tmpl/i
nvoice_ite
ms.php on
line 79

Notice:
Trying to
get
property of
non-object
in components/c
om_virtuem
art/views/in
voice/tmpl/i
nvoice_ite
ms.php on
line 79
Title: Re: Invoice PDF error Warning: reset()
Post by: GJC Web Design on July 02, 2016, 17:11:59 PM
you have your reporting set far too high .. notices shouldn't be displayed at the FE

switch it down in joomla or at server level to only show errors
Title: Re: Invoice PDF error Warning: reset()
Post by: urzh12 on July 03, 2016, 19:43:44 PM
Thank you. My error reporting in Joomla backend was set to maximum.