Page 1 of 1

Moved from HTTP to HTTPS and I Have a Problem

Posted: Mon Apr 30, 2018 1:27 pm
by dol4er
Hello,

Opencart 2.1.0.1 - I moved entirely from HTTP to HTTPS and I have a problem because of this.

I cannot edit the status of orders which were made before I switched to HTTPS. When I open the order in the admin panel, I get an error Undefined. I can review the order, I can even edit any of its details but I cannot change the status to DELIVERED.

Can you please tell me a fix or a workaround until we edit all older orders?

EDIT: I found out that if I edit the order, then I can change its status. However, If I edit every order before changing the status, people will get pointless emails about it. Any ideas?

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Mon Apr 30, 2018 2:36 pm
by xxvirusxx
You have changed from http in https in admin/config.php ?
But in .httacces ?

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Mon Apr 30, 2018 3:35 pm
by dol4er
The admin's .htaccess has only this: ErrorDocument 403 / order deny,allow.

The .htaccess in the public_html was edited to redirect all pages to HTTPS.

The puzzling part is that after editing an order, it starts working perfectly fine with no errors. Also orders which were made after I had switched to HTTPS work perfectly fine.

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Mon Apr 30, 2018 5:02 pm
by xxvirusxx
config.php from admin directory...not .httacces..

You have this?

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'https://you_website/admin/');
define('HTTP_CATALOG', 'https://you_website/');

// HTTPS
define('HTTPS_SERVER', 'https://you_website/admin/');
define('HTTPS_CATALOG', 'https://you_website/');
Also clear ocmod cache and vqmod if you have.

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Mon Apr 30, 2018 7:22 pm
by dol4er
I've done all that...

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Tue May 01, 2018 12:28 am
by ioannisgr
Change
admin/system/config/catalog.php
and
admin/system/config/admin.php
Set
Code: Select all
$_['site_ssl'] = false;
to
Code: Select all
$_['site_ssl'] = true;

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Tue May 01, 2018 12:54 am
by dol4er
/system/config/ is empty, no such files. Actually, there is no admin.php file in any folder.

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Tue May 01, 2018 1:32 am
by Rob Assink
I think your answer is in this post,
viewtopic.php?t=153203

regards,

Re: Moved from HTTP to HTTPS and I Have a Problem

Posted: Tue May 01, 2018 6:05 am
by dol4er
Rob Assink wrote:
Tue May 01, 2018 1:32 am
I think your answer is in this post,
viewtopic.php?t=153203

regards,
Thank you! There is the solution!