Fishkaras Posted September 27, 2013 Share Posted September 27, 2013 (edited) Hi everyone! The problems occurs after fresh installing PrestaShop 1.5.5: 1) customer can't login or register. Login button (*myshopaddress* /index.php?controller=my-account) returns: Fatal error: Call to undefined method Gender::getGenders() in /home/greenwor/public_html/presta15/controllers/front/AuthController.php on line 82 2) i can't access "customers > customers" menu in administrating panel. It returns: Fatal error: Call to undefined method Gender::getGenders() in /home/greenwor/public_html/presta155/controllers/admin/AdminCustomersController.php on line 59 3) i can't add new customers title in "customers > titles" menu: Fatal error: Call to undefined method Gender::getImage() in /home/greenwor/public_html/presta155/controllers/admin/AdminGendersController.php on line 164 4) i can't delete customers title in "customers > titles" menu: Notice: Exceptions must be derived from the Exception base class in /home/greenwor/public_html/presta155/classes/controller/AdminController.php on line 1149 Fatal error: Uncaught exception 'Exception' with message 'Could not load data file' in /home/greenwor/public_html/presta155/classes/controller/AdminController.php:1149 Stack trace: #0 /home/greenwor/public_html/presta155/classes/controller/AdminController.php(1149): Gender->__construct('2') #1 /home/greenwor/public_html/presta155/classes/controller/AdminController.php(666): AdminControllerCore->loadObject() #2 /home/greenwor/public_html/presta155/classes/controller/AdminController.php(579): AdminControllerCore->processDelete() #3 /home/greenwor/public_html/presta155/classes/controller/Controller.php(158): AdminControllerCore->postProcess() #4 /home/greenwor/public_html/presta155/classes/Dispatcher.php(348): ControllerCore->run() #5 /home/greenwor/public_html/presta155/Fishkaras/index.php(50): DispatcherCore->dispatch() #6 {main} thrown in /home/greenwor/public_html/presta155/classes/controller/AdminController.php on line 1149 I used softaculous to install PrestaShop; i've checked all the files in the instalation directory and found no differences with last version of script. What am I doing wrong? Edited October 11, 2013 by Fishkaras (see edit history) Link to comment Share on other sites More sharing options...
Mr S Posted September 28, 2013 Share Posted September 28, 2013 Can you post copy of your file Gender.php (/home/greenwor/public_html/presta155/classes/Gender.php) Link to comment Share on other sites More sharing options...
Fishkaras Posted September 28, 2013 Author Share Posted September 28, 2013 (edited) Here is a copy of the Gender.php: http://pastebin.com/UxpyeAZS P.S. I compared the contents of all the installed files and the original: most of them are the same. There were some differences between the hook.php: instaled: http://pastebin.com/344n6JXK original: http://pastebin.com/W4aj970g after replacing the file and clearing the smarty cache nothing has changed. Edited September 28, 2013 by Fishkaras (see edit history) Link to comment Share on other sites More sharing options...
Mr S Posted September 28, 2013 Share Posted September 28, 2013 Hm.. the file looks good see if there is a override file /home/greenwor/public_html/presta155/override/classes/Gender.php I don't think it woud make any difference Also try deleting the file /home/greenwor/public_html/presta155/cache/class_index.php Link to comment Share on other sites More sharing options...
Fishkaras Posted September 28, 2013 Author Share Posted September 28, 2013 > see if there is a override file... nothing changed > Also try deleting the file... nothing changed Link to comment Share on other sites More sharing options...
Fishkaras Posted October 11, 2013 Author Share Posted October 11, 2013 Problem was solved after upgrading from PHP 5.2 to 5.3 Link to comment Share on other sites More sharing options...
Recommended Posts