opencart 2 login not possible with SSL
We just released the new Kollateralschaden Berlin online store and so far it’s really working smoothly. As much as I like opencart, it has serious problems, too. Mostly in terms of lack of documentation and the lack of basic shop functionality, such as SEO urls and easy SSL integration.
The latter screwed my nerves when suddenly the logins weren’t working anymore (admin and customer). There is no error message whatsoever so it was hard to track down.
Beside editing your 2 config.php files (root and in admin folder) to point to the https urls and .htaccess file, you have to edit files in the system/config directory, respectively 2 files:
- admin.php (for admin backend)
- catalog.php (for frontend)
In both files you have to edit the line:
$_[‘site_ssl’] = true;
and set it from “false” to “true”.
This is IMHO undocumented and essential knowledge.