Faisal Zafar Posted January 29, 2009 Share Posted January 29, 2009 Hello All, i have installed the prestashop on my main server and its running perfectly, now i have download all the files and database form main server and uploaded on another VPS server by applying the folder permission to 777 and also change in the settings settings.inc.php and when i try to view the main page it giving me these errors:Notice: Undefined variable: cookie in /home/newyorkcell/public_html/classes/Category.php on line 454Notice: Trying to get property of non-object in /home/newyorkcell/public_html/classes/Category.php on line 454Notice: Undefined variable: cookie in /home/newyorkcell/public_html/classes/Category.php on line 454Notice: Trying to get property of non-object in /home/newyorkcell/public_html/classes/Category.php on line 454When i try to open the the Category.php file in the classes folder and see the line 454 then that line says:$row['id_image'] = (file_exists(_PS_CAT_IMG_DIR_.$row['id_category'].'.jpg')) ? $row['id_category'] : Language::getIsoById($cookie->id_lang).'en-default-medium';I think so its not getting the value of $cook->id_lang Can any one please tell me what is the reason of this error and how we can overcome it.Your help and suggestions are higly appreciated!Thanks & Best RegardsFaisal Zafar Link to comment Share on other sites More sharing options...
DaveGetStock Posted January 30, 2009 Share Posted January 30, 2009 Hmm, what I would probably do is backup the database of your products and customers, then install a fresh copy of prestashop and then overwrite the databases.Just out of interest, what is on the above line (453) in Catergory.php? Link to comment Share on other sites More sharing options...
Recommended Posts