Jump to content

[SOLVED] Problem with customers: Gender::getImage()


Recommended Posts

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 by Fishkaras (see edit history)
Link to comment
Share on other sites

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 by Fishkaras (see edit history)
Link to comment
Share on other sites

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

  • 2 weeks later...
×
×
  • Create New...