Prestashop 1.5 can't enable SSL

612 views Asked by At

I have strange problem. I have enabled SSL in my provider settings. I am using Let's encrypt certificate. But I cannot enable https in prestashop backoffice. If I check Enable SSL button to Yes and click save, following error shows up:

Fatal error: Uncaught Error: Access to undeclared static property: Validate::$values in /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/AdminController.php:1026 Stack trace: #0 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/AdminController.php(581): AdminControllerCore->processUpdateOptions() #1 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/Controller.php(158): AdminControllerCore->postProcess() #2 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/Dispatcher.php(348): ControllerCore->run() #3 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/admin16/index.php(53): DispatcherCore->dispatch() #4 {main} thrown in /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/AdminController.php on line 1026

I tried to force enable redirect http to https in .htaccess file, but with no luck.

Can you help please?

Thanks a lot.

Eduard

1

There are 1 answers

6
SmAster On

Web Hosting company should mix something to your php

Like this at settings.inc.php

if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ) {
    $_SERVER['HTTPS'] = 'on';
    $_SERVER['SERVER_PORT'] = 443;
}