{"id":3136,"date":"2018-06-13T12:33:35","date_gmt":"2018-06-13T11:33:35","guid":{"rendered":"https:\/\/www.simonbattersby.com\/blog\/?p=3136"},"modified":"2018-06-13T12:33:35","modified_gmt":"2018-06-13T11:33:35","slug":"opencart-unable-to-access-admin-after-updating","status":"publish","type":"post","link":"https:\/\/www.simonbattersby.com\/blog\/2018\/06\/opencart-unable-to-access-admin-after-updating\/","title":{"rendered":"Opencart unable to access admin after updating"},"content":{"rendered":"<p>Spent this morning updating a client&#8217;s site to Opencart 1.5.6.4.\r\nAll went well until I tried to log in to admin, when the admin login screen just refreshed, no error message, nothing in error log.\r\nAfter some digging, I identified that although the site was ussing SSL, the form was being submitted to a non-SSL URL. So it failed.\r\nThe solution was to edit the admin config.php file to set the HTTP_SERVER constant to use https.<\/p>\r\n\r\n<pre>define('HTTP_SERVER', 'http:\/\/yourdomain.com\/admin\/');<\/pre>\r\n\r\n<p>There are lots of mutterings on various boards about this, but didn&#8217;t see this as a solution&#8230;Hope it helps.<\/p>","protected":false},"excerpt":{"rendered":"<p>Spent this morning updating a client&#8217;s site to Opencart 1.5.6.4. 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 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[28],"class_list":["post-3136","post","type-post","status-publish","format-standard","hentry","category-web-design-and-build","tag-opencart"],"_links":{"self":[{"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/posts\/3136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/comments?post=3136"}],"version-history":[{"count":3,"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/posts\/3136\/revisions"}],"predecessor-version":[{"id":3139,"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/posts\/3136\/revisions\/3139"}],"wp:attachment":[{"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/media?parent=3136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/categories?post=3136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.simonbattersby.com\/blog\/wp-json\/wp\/v2\/tags?post=3136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}