Jump to content

[solved]php-error in product.php


Recommended Posts

I have an error-warning after somebody has logged-in into his account:

Warning: Invalid argument supplied for foreach() in ...\classes\Product.php on line 2667.


The repective code (standard presta) from line 2664 to 2671 is

public static function getProductsProperties($id_lang, $query_result)
   {
       $resultsArray = array();
       foreach ($query_result AS $row)
           if ($row2 = Product::getProductProperties($id_lang, $row))
               $resultsArray[] = $row2;
       return $resultsArray;
   }



What is here wrong ?

Link to comment
Share on other sites

Hi,
no sorry, only via Team Viewer. Is not yet online and cloned on two different IP's. The error is also only showing on Header of IE8, no other browser shows this (Opera, FF, Chorme, all latest version).

On my version 1.3.6 there is also no error, so should be something changed in the Product.php on /classes of the 1.4.0.17.

Conny

Link to comment
Share on other sites

sorry I don't remember. I discarted many modules... (Only the paid one I let). Besides this I took the standard Theme and again I worked out my theme.

You can try to disable each non presta 1.4.0.17 module and activate one by one by checking when message appears. So you can disable the module causing it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...