VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: kelecz on February 14, 2015, 12:15:02 PM

Title: PHP Warning: implode(): Invalid arguments passed in
Post by: kelecz on February 14, 2015, 12:15:02 PM
Hello,

need assist with this errors,please:

PHP Warning: implode(): Invalid arguments passed in...... /administrator/components/com_virtuemart/models/product.php on line 938
$hash = $productId.','.implode($virtuemart_shoppergroup_ids,'.').','.(int)$front; //md5($q);

PHP Warning: Invalid argument supplied for foreach() in......... /administrator/components/com_virtuemart/models/product.php on line 1760
foreach($old_price_ids as $oldPride){

Invalid argument supplied for foreach() in .........../administrator/components/com_virtuemart/models/product.php on line 1743
foreach($old_price_ids as $key => $oldprice){

Thx in advance.

Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: GJC Web Design on February 14, 2015, 14:03:04 PM
no use posting this without full info of versions etc
Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: kelecz on February 14, 2015, 14:17:48 PM
Sorry:

Joomla 336
VM 302(manual to 304)-custom template
PHP version    5.4.34

www.petproba.konji.rs

Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: kelecz on February 17, 2015, 00:46:45 AM
Anyone?
Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: GJC Web Design on February 17, 2015, 00:56:09 AM
Are these warnings doing anything to effect the site ?

If the site works fine just suppress the warnings
Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: Milbo on February 17, 2015, 08:40:13 AM
There is a problem with his shoppergroups. Maybe he deleted the default ones. The shopper is in no shoppergroup, which should never happen.
Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: kelecz on February 20, 2015, 00:50:03 AM
Milbo,

yes I delete some. tell me what to do or should I just leave it that way.

There is problem with prices. When I do not import paths to images there are prices on, but with images they gone.
Gays told me that is template problem but I am not sure. Roland from CSVI is not sure either.
I will appreciate any help.
Title: Re: PHP Warning: implode(): Invalid arguments passed in
Post by: Milbo on February 20, 2015, 16:27:37 PM
Actually just update, an udpate should fix your shoppergroups and the query is also fixed, so that it works always now