Jump to content

HTTP ERROR 500 on prestashop 1.6.1.13


Gurnboy

Recommended Posts

Hi All 

 

I hope someone can help me. I have 2 shops and both were working fine. I had been logged in and hadn't logged out but was working on something else for about a week, and when I went back to do some work on them I got the HTTP ERROR 500. I can't access the FO or the BO. Below is the error log but I don't know what to do next. 

 

Your help would be much appreciated.

 

Many thanks

 

Jamie

 

[Fri Sep 15 09:24:13.874098 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: PHP Fatal error:  Uncaught Error: Call to undefined function mcrypt_encrypt() in /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/Rijndael.php:51
[Fri Sep 15 09:24:13.874762 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: Stack trace:
[Fri Sep 15 09:24:13.874768 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #0 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/Cookie.php(334): RijndaelCore->encrypt('checksum|333075...')
[Fri Sep 15 09:24:13.874774 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #1 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/Cookie.php(375): CookieCore->_setcookie('checksum|333075...')
[Fri Sep 15 09:24:13.874776 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #2 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/Employee.php(385): CookieCore->write()
[Fri Sep 15 09:24:13.874778 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #3 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/controller/AdminController.php(2717): EmployeeCore->logout()
[Fri Sep 15 09:24:13.874780 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #4 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/controller/Controller.php(170): AdminControllerCore->init()
[Fri Sep 15 09:24:13.874782 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #5 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/Dispatcher.php(367): ControllerCore->run()
[Fri Sep 15 09:24:13.874784 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #6 /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/admin9973/index.php(58): DispatcherCore->dispatch()
[Fri Sep 15 09:24:13.874785 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr: #7 {main}
[Fri Sep 15 09:24:13.874787 2017] [fcgid:warn] [pid 5773] [client 5.65.92.248:35504] mod_fcgid: stderr:   thrown in /home/hp3-linc3-nfs2-y/060/1397060/user/htdocs/bookings/classes/Rijndael.php on line 51
Link to comment
Share on other sites

Ok so the code has been deprecated

 

return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $this->_key, $plaintext, MCRYPT_MODE_CBC, $this->_iv)).sprintf('%06d', $length);

 

Any ideas on what should replace it?

 

Or I can change the PHP version to 5.6, would this have any adverse effects to my site?

 

Many thanks

 

Jamie

Edited by Gurnboy (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...