Jump to content
thirty bees forum

Recommended Posts

Posted

Hi

I have one shop more on a prestashop 1.6, but suddenly I can't login on backoffice anymore.
I have recieved an mail about a new payment from the shop and I should see what was ordred, but I can't get in.
I get an HTTP 500 error when i try.

My errorlog on the server reports:
[Fri Apr 17 11:46:32.695892 2026] [fastcgi:error] [pid 57442:tid 57463] [client 127.0.0.1:9196] FastCGI: server "/usr/local/apache/cgi-bin/php7-fcgi116" stderr: PHP message: PHP Deprecated:  Function get_magic_quotes_gpc() is deprecated in /home/t/e/ftp_textiltryk-skiltedk/shop/config/defines.inc.php on line 143PHP message: PHP Deprecated:  array_key_exists(): Using array_key_exists() on objects is deprecated. Use isset() or property_exists() instead in /home/t/e/ftp_textiltryk-skiltedk/shop/Adapter/Adapter_EntityMapper.php on line 84PHP message: PHP Fatal error:  Declaration of AdminLoginControllerCore::viewAccess() must be compatible with AdminControllerCore::viewAccess($disable = false) in /home/t/e/ftp_textiltryk-skiltedk/shop/controllers/admin/AdminLoginController.php on line 153

Anyone who can help me here?

 

 

Posted

Hi Alex,

did you install some new module, or changed you PHP version recently?

Anyway, this issue is caused by an override. You need to edit file

/override/controllers/admin/AdminLoginController.php

and replace code

 public function viewAccess()

with

 public function viewAccess($disable = false)

That should do the trick

Posted
30 minutes ago, datakick said:

Hi Alex,

did you install some new module, or changed you PHP version recently?

Anyway, this issue is caused by an override. You need to edit file

/override/controllers/admin/AdminLoginController.php

and replace code

 public function viewAccess()

with

 public function viewAccess($disable = false)

That should do the trick

 

Thanx a lot Datakick - That did the trick.

We had updated the PHP version lately, and that must be the reason, but now it works again 😄

Posted
44 minutes ago, Alex Hansen said:

We had updated the PHP version lately, and that must be the reason

With an outdated version like PrestaShop 1.6, you shouldn't change the PHP version, as it will cause a whole host of errors.

The maximum supported PHP version for PS 1.6 is 7.1

Posted

Oh, I didn't even noticed this was ps16. 

Yeah, Alex, you should thoroughly test your store, because this will not be the only problem. If possible, downgrade your php version. Or even better, migrate to thirtybees.

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...