Author Topic: Invoice PDF error Warning: reset()  (Read 700 times)

urzh12

  • Beginner
  • *
  • Posts: 27
  • A beginner
Invoice PDF error Warning: reset()
« 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9748
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Invoice PDF error Warning: reset()
« Reply #1 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

urzh12

  • Beginner
  • *
  • Posts: 27
  • A beginner
Re: Invoice PDF error Warning: reset()
« Reply #2 on: July 03, 2016, 19:43:44 pm »
Thank you. My error reporting in Joomla backend was set to maximum.