VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: arcoswaak on May 15, 2016, 12:36:21 PM

Title: invoice_items.php problem
Post by: arcoswaak on May 15, 2016, 12:36:21 PM
At the moment I'm working on a shop to do with virtuemart in joomla. All this is neatly only I get the following error messages in the mail an order:
Warning: reset () Expects parameter 1 to be array, boolean given in /xxx.xx/public_html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 77
Warning: current () Expects parameter 1 to be array, boolean given in /xxx.xx/public_html/components/com_virtuemart/views/invoice/tmpl/invoice_items.php on line 78

The site is not seen mention only the emails that the customer and I receive after doing and order.

Could someone help me with this to get these reports right?

turn on Joomla version 3.5.1. and VirtueMart 3.0.16

VirtueMart I have completely removed and reinstalled even completely reset. Unfortunately, I keep the message.

Title: Re: invoice_items.php problem
Post by: franzpeter on May 15, 2016, 16:16:00 PM
I do not know if that would work, but you can try:
components/com_virtuemart/views/invoice/tmpl/invoice_items.php
by default line 76 says:
if(count($taxBill)==1){

What happens if you replace it with:
if(count($taxBill)===1){
Title: Re: invoice_items.php problem
Post by: arcoswaak on May 15, 2016, 21:24:10 PM
No that make no sense unfortunately...
do you thing there is somewhere in the tax settings a error?
Title: Re: invoice_items.php problem
Post by: franzpeter on May 17, 2016, 10:16:55 AM
I do not see that problem with my installation. Are all parts installed. There are three things to install:
com_virtuemart_3.0.16.zip
com_virtuemart.3.0.16_ext_aio.zip
com_tcpdf_1.0.0.zip
Are all three parts installed?
Title: Re: invoice_items.php problem
Post by: arcoswaak on May 17, 2016, 12:36:25 PM
THE problem was the tax details...
Problem fixed. Thanks!
Title: Re: invoice_items.php problem
Post by: PRO on May 17, 2016, 19:46:55 PM
also, you should turn off error reporting on a live site.

Title: Re: invoice_items.php problem
Post by: juanki on May 22, 2016, 14:16:51 PM
Quote from: arcoswaak on May 17, 2016, 12:36:25 PM
THE problem was the tax details...
Problem fixed. Thanks!

Hello, i have the same error. Could you tell me how yopu fixed it?. I don't use any tax. Thanks
Title: Re: invoice_items.php problem
Post by: juanki on May 22, 2016, 17:55:08 PM
Hello, i fixed it copying sample data tax configuration. I needed vat tax per product setting. Thanks
Title: Re: invoice_items.php problem
Post by: Croc on June 03, 2016, 20:14:00 PM
What's is the fix?
Title: Re: invoice_items.php problem
Post by: bluMarmalade on August 15, 2016, 13:49:27 PM
I got the same problem but I don't understand what to do?

i'm running joomla 3.6.2 and VM 3.0.16
Title: Re: invoice_items.php problem
Post by: GJC Web Design on August 15, 2016, 14:02:43 PM
basically your error reporting is too high for a production site.. these are only warnings

try

error_reporting( E_ERROR | E_PARSE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING );  after the php tag

in the root and admin index.php  if u can't switch it off otherwise

or in the top of the  components/com_virtuemart/views/invoice/tmpl/invoice_items.php (over ride)
Title: Re: invoice_items.php problem
Post by: bluMarmalade on August 15, 2016, 15:34:01 PM
I turned off error reporting in the joomla configuration menu. Then it works for now. But i'm not sure if its a good idea to have it off.
Title: Re: invoice_items.php problem
Post by: jenkinhill on August 15, 2016, 15:41:01 PM
Turn error reporting on when developing a site, and off for a live site. PHP warnings and notices are often seen when using a higher PHP version that that used when the file was last coded. They can usually be ignored if the site functions OK - if you are pedantic, though, you can fix the code that causes the warning(s).

Sone useful info here:  http://php.net/manual/en/errorfunc.configuration.php
Title: Re: invoice_items.php problem
Post by: bluMarmalade on August 15, 2016, 17:01:36 PM
Thanks for the quick replies, GJC Web Design and jenkinhill! I'll try the code fix later. As long as the site works i'm good.