MrBaseball34 Posted September 10, 2010 Share Posted September 10, 2010 I've been getting these warnings and wondering what could be the cause: PHP Warning: Invalid argument supplied for foreach() in /path_to/classes/Tools.php on line 869 PHP Warning: uasort() [function.uasort]: The argument should be an array in /path_to/classes/Tools.php on line 872 PHP Warning: Invalid argument supplied for foreach() in /path_to/classes/Tools.php on line 875 Link to comment Share on other sites More sharing options...
rocky Posted September 11, 2010 Share Posted September 11, 2010 It seems you are passing a variable that isn't an array like expected into the orderbyPrice function of classes/Tools.php. I don't know how that happened. That function is used by classes/Category.php, Manufacturer.php, Product.php, ProductSale.php and Supplier.php. I suggest that you do a debug_backtrace to get more information about what led to the error. Link to comment Share on other sites More sharing options...
MrBaseball34 Posted September 11, 2010 Author Share Posted September 11, 2010 I suggest that you do a debug_backtrace to get more information about what led to the error. And how do I do that? Link to comment Share on other sites More sharing options...
rocky Posted September 12, 2010 Share Posted September 12, 2010 Add the following to the top of the orderbyPrice() function in classes/Tools.php: if (!is_array($array)) var_dump(debug_backtrace()); Link to comment Share on other sites More sharing options...
mir-aus Posted May 18, 2011 Share Posted May 18, 2011 Hi thereI have same problem. I need your helpThe problem in this websitehttp://marbleceramiccorp.com.au/content/4-about-us Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now