Opencart unable to access admin after updating

Spent this morning updating a client’s site to Opencart All went well until I tried to log in to admin, when the admin login screen just refreshed, no error message, nothing in error log. After some digging, I identified that although the site was ussing SSL, the form was being submitted to a non-SSL URL. So it failed. The solution was to edit the admin config.php file to set the HTTP_SERVER constant to use https.

define('HTTP_SERVER', '');

There are lots of mutterings on various boards about this, but didn’t see this as a solution…Hope it helps.


One response to “Opencart unable to access admin after updating”

  1. andrea says:

    thank you! it helped me, I was going crazy….

Useful? Interesting? Leave me a comment

I've yet to find a way of allowing code snippets to be pasted into Wordpress comments - so if you're trying to do this you'd be better off using the contact form.