VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jimleeder123 on July 22, 2015, 11:15:06 AM

Title: Error comes up on checkout
Post by: jimleeder123 on July 22, 2015, 11:15:06 AM
Once the order has been processed, an error pops up above the "order confirmed" message. Please note this website is in a subfolder on the website as I am making it to replace the current website.

This is the error I'm getting -

Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047 Warning: array_push() expects parameter 1 to be array, null given in /var/www/vhosts/pizzacaldo.co.uk/httpdocs/newjoomla/libraries/tcpdf/tcpdf.php on line 17047

Anyone understand or seen this before? Thanks.
Title: Re: Error comes up on checkout
Post by: GJC Web Design on July 22, 2015, 12:12:21 PM
Its from the pdf invoice generation.. 

some value in an array that is passed is missing .. but it is ONLY a warning -
in other words you have your reporting set too high for a production site
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 22, 2015, 13:46:24 PM
Ok so how can I fix this? Don't think I have changed anything to do with the reporting
Title: Re: Error comes up on checkout
Post by: GJC Web Design on July 22, 2015, 13:59:09 PM
there are plenty of posts on here about error reporting -- some by me -- search..
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 22, 2015, 14:09:03 PM
Thats not any help
Title: Re: Error comes up on checkout
Post by: jenkinhill on July 22, 2015, 15:10:33 PM
FFS!   Try http://bit.ly/1RQ6YoC
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 22, 2015, 15:19:21 PM
Someone sent me a message to turn off error reporting in the server tab of Joomla 2.5 global configuration, but that doesn't work
Title: Re: Error comes up on checkout
Post by: AH on July 22, 2015, 18:35:27 PM
jim

you need to turn down the reporting of php on your hosting server

http://php.net/manual/en/function.error-reporting.php (http://php.net/manual/en/function.error-reporting.php)
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 23, 2015, 11:04:49 AM
I don't see how to turn it off on that link. Where would I need to enter the code to turn it off?
Title: Re: Error comes up on checkout
Post by: AH on July 23, 2015, 14:02:39 PM
Jim

I would contact your hosting company as there are many options to achieve this that may or may not be supported by your hosting setup
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 23, 2015, 16:36:45 PM
We have our own server.
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 23, 2015, 17:28:04 PM
On our server using Plesk 12.0.18 (PHP level is 5.3.3) I have found the php settings for the domain.

There is a section called "error_reporting" which is currently set to default. You can choose options such as "~E_ALL" , "~E_ALL & NOTICE" and "E_ALL". You can also set a custom value.

Am I looking at the right bit? If so do you know what I should do? 
Title: Re: Error comes up on checkout
Post by: jimleeder123 on July 23, 2015, 17:31:39 PM
Got it to work - you have to put 0 in the custom value bit.
Title: Re: Error comes up on checkout
Post by: AH on July 23, 2015, 22:08:21 PM
Glad you found it

Did not realise you had your own server