SupermanInNY Posted May 16, 2009 Posted May 16, 2009 reset() [function.reset]: Passed variable is not an array or object in ... catalog/admin/page_manager.php I followed the German OsCommerce suggestion (thank God for Babel Fish translation :)) ): "Property now $info deleted" Since we moved the site from a PHP4 to a PHP5 server we had several errors poping up on various Admin pages. Amongst them we had a problem with the page_manager.php The fix we used was to DELETE the $info variable in the array_merge() function. You can see below the original line commented out and just below it the modified line. Hope that helps (and now in English :)) ). if ((!isset($HTTP_GET_VARS['bID']) || (isset($HTTP_GET_VARS['bID']) && ($HTTP_GET_VARS['bID'] == $pages['pages_id']))) && !isset($bInfo) && (substr($action, 0, 3) != 'new')) { // $bInfo_array = array_merge($pages, $info); $bInfo_array = array_merge($pages ); $bInfo = new objectInfo($bInfo_array); } -Sup.
♥FWR Media Posted May 16, 2009 Posted May 16, 2009 Well that is a hack at best . . you can't merge one array!! array_merge() changed it's operation in PHP 5 you have to force the parameters to both be arrays. So .. $bInfo_array = array_merge($pages, $info); would become .. $bInfo_array = array_merge((array)$pages, (array)$info); Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.