♥Skittles Posted January 13, 2007 Share Posted January 13, 2007 Hello This contribution has just be installed on my store and I am now getting the following error in categories.php when I try to edit a product. Has anyone seen this before and know of a fix? Warning: reset() [function.reset]: Passed variable is not an array or object in /home/aiwrhhud/public_html/admin/includes/classes/object_info.php on line 18 Warning: Variable passed to each() is not an array or object in /home/aiwrhhud/public_html/admin/includes/classes/object_info.php on line 19 Thieving_Gypsy, No, I haven't seen this. Objectinfo is called to create a new object in five different places within categories.php (line numbers are from the modified categories.php supplied with the contribution): line 384: $pInfo = new objectInfo($parameters); line 624: $pInfo = new objectInfo($HTTP_POST_VARS); line 633: $pInfo = new objectInfo($product); line 821: $cInfo = new objectInfo($cInfo_array); line 855: $pInfo = new objectInfo($pInfo_array); Do you have other contributions installed that affect this file? If so, you must have modified your categories.php file manually to prevent breaking the other contribution(s). In the process, you may have missed one of the changes. As tedious as it is, I recommend you go back to your categories.php file prior to this mod, and try again. Compare the provided categories.php file with an unmodified categories.php to find the changes. If existing mods affect the same snippets of code, you will need to integrate them together. If you don't have an unmodified copy because your store was installed through a script, like Fantastico, you can download an archive from the Downloads page. Aside from the problem in the Admin, does it appear to be working correctly in the catalog? With Ultimate SEO URLs enabled, do the pages redirect properly? And can the customer place products in their cart, and complete the checkout process? -Skittles Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.