zoumama Posted September 20, 2013 Share Posted September 20, 2013 (edited) Hi everybody, I'm using prestashop 1.4, and in my first page there is this error : Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /homez.636/mrwcraft/www/classes/Page.php on line 60 i don't know how to solve it, please i need your help. Edited September 20, 2013 by zoumama (see edit history) Link to comment Share on other sites More sharing options...
DevNet Posted September 20, 2013 Share Posted September 20, 2013 (edited) Hi, First time, compare your ./classes/Page.php file to your original file of your PrestaShop version. Is any modules use the class Page.php ? Regards Edited September 20, 2013 by DevNet (see edit history) Link to comment Share on other sites More sharing options...
zoumama Posted September 20, 2013 Author Share Posted September 20, 2013 Hi, First time, compare your ./classes/Page.php file to your original file of your PrestaShop version. Is any modules use the class Page.php ? Regards thanx for your reply actually i've added this 2 lines : if ($ phpSelf =='') line 52 $ PhpSelf = 'index.php'; line 53 sorry, but how can i know if some modules use the class page.php Link to comment Share on other sites More sharing options...
DevNet Posted September 20, 2013 Share Posted September 20, 2013 Why do you costum lines in the system core ? Don't code like this. You can override this class. Regards Link to comment Share on other sites More sharing options...
zoumama Posted September 20, 2013 Author Share Posted September 20, 2013 Why do you costum lines in the system core ? Don't code like this. You can override this class. Regards so i'll delete the 2 lines, but can you help me please to solve my problem? Link to comment Share on other sites More sharing options...
DevNet Posted September 20, 2013 Share Posted September 20, 2013 so i'll delete the 2 lines, but can you help me please to solve my problem? I can't help over bad development practice. To custom PrestaShop and solved errors, you need first to develop with the rules of the PrestaShop API. You must read the documentation http://doc.prestashop.com/display/PS15/Developer+Guide Regards Link to comment Share on other sites More sharing options...
zoumama Posted September 20, 2013 Author Share Posted September 20, 2013 I can't help over bad development practice. To custom PrestaShop and solved errors, you need first to develop with the rules of the PrestaShop API. You must read the documentation http://doc.prestashop.com/display/PS15/Developer+Guide Regards ok, thanks Link to comment Share on other sites More sharing options...
Recommended Posts