Page 1 of 2
V2.1.0.1 SSL View Admin Order Issue
Posted: Sat Oct 10, 2015 4:18 pm
by mRC
I have found an issue with admin/orders when SSL is enabled.
When viewing customer orders a pop up message appears as shown in the picture
If SSL is turned off or going to http:// not https:// it works fine
the error I have found is shown below
[Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame ::
https://www./view/javascript/jquery/jquery-2.1.1.min.js :: .send :: line 4" data: no]
[Exception... "<no message>" nsresult: "0x805e0006 (<unknown>)" location: "JS frame ::
https://www./view/javascript/jquery/jquery-2.1.1.min.js :: .send :: line 4" data: no]
undefined
any fix for this
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Sun Oct 11, 2015 2:28 am
by mr.teray
see my post
http://forum.opencart.com/viewtopic.php?f=190&t=152819
change /admin/config in: all line https
Code: Select all
define('HTTP_SERVER', 'https://12/panel/');
define('HTTP_CATALOG', 'https://12/');
// HTTPS
define('HTTPS_SERVER', 'https://12/panel/');
define('HTTPS_CATALOG', 'https://12/');
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Sun Oct 11, 2015 2:47 am
by mRC
notchange still the same
see below
admin/config.php
Code: Select all
// HTTP
define('HTTP_SERVER', 'https://www./');
define('HTTP_CATALOG', 'https://www./');
// HTTPS
define('HTTPS_SERVER', 'https://www./');
define('HTTPS_CATALOG', 'https://www./');
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Mon Oct 12, 2015 9:58 pm
by mRC
anyone else got a fix for this issue
thankss
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Tue Oct 27, 2015 6:35 pm
by dwains
I also have this bug

Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Oct 28, 2015 9:57 pm
by dpit
The problem is that at various points the code grabs the store URL from the database and you're administrating on a different protocol to that order.
You've probably made your site HTTPS only, but the original order was on HTTP.
So to fix, either:
UPDATE ocorder setting the store_url to the HTTPS version
or
Update the necessary code to dynamically change the protocol
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Oct 28, 2015 10:48 pm
by mRC
I never had this issue until OC V2.1.0.1
so your saying run the whole site in SSL or change the code
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Nov 04, 2015 12:24 am
by herman2p
Here is a fix that worked for me. (note this only corrects new orders)
1) change all servers to https:\\ in config files (catalog and admin)
// HTTP
define('HTTP_SERVER', '
https://www./');
define('HTTP_CATALOG', '
https://www./');
// HTTPS
define('HTTPS_SERVER', '
https://www./');
define('HTTPS_CATALOG', '
https://www./');
2) I also forced login in admin area to be secure (as it should be)
https://portal.my-tss.com/knowledgebase ... -mode.html
3) For old orders, when you are in the admin section. Click on the order and then configure your browser to allow mixed content (here are directions for chrome)
http://wiki.sln.suny.edu/display/SLNKB/ ... gle+Chrome
Now I can edit and update history....
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Nov 11, 2015 9:15 am
by Gunzanrozes
i too have this problem. I don't want to run whole site in SSL. Any fix?
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Mon Nov 16, 2015 6:22 am
by CreativeA
Gunzanrozes wrote:i too have this problem. I don't want to run whole site in SSL. Any fix?
I did the step suggested above regarding changing all servers in the admin config file to https. However, a quick Google showed a similar non-Opencart related query on StackOverflow, which identified the bug as Firefox specific. I switched to Safari and we're all good.
Hope this helps.
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Mon Nov 16, 2015 3:29 pm
by mRC
the same problem with IE11 too
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Mon Nov 23, 2015 6:33 pm
by pm-netti
mRC wrote:the same problem with IE11 too
Can you look extensions? Do test.
Is your extensions do modification to files sale/order.php?
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Fri Nov 27, 2015 8:52 pm
by bassam
Is there any solution?
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Dec 16, 2015 7:49 pm
by OCyvon2
bassam wrote:Is there any solution?
Did you try this :
viewtopic.php?f=190&t=155210#p594669
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Jan 20, 2016 5:46 am
by twd247
Hi had the same but the problem is with firefox and ie.
see link to me post
viewtopic.php?f=190&t=155210
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Thu Jan 21, 2016 7:47 am
by chameleon121
THIS IS THE FIX:
In admin/controller/sale/order.php Find this line:
$data['store_url'] = $order_info['store_url'];
You'll notice it pulls the url from the order, and not from your browsing context.
I'm not sure if I'm over riding some other functionality, but I added this:
$data['store_url'] = $order_info['store_url'];
# add the following
if( isset($_SERVER['HTTPS'] ) ) {
$data['store_url'] = str_replace('http://','https://',$data['store_url']);
}
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Thu Jan 21, 2016 11:24 pm
by mRC
Hi
nice fix if I could get it working, im trying a vqmod to do this I have the following but don't seem to be working
Code: Select all
modification>
<id>SSL Admin Order Fix</id>
<version>1.0</version>
<vqmver>2.x</vqmver>
<author>mRC</author>
<file name="admin/controller/sale/order.php">
<operation>
<search position="replace"><![CDATA[$data['store_url'] = $order_info['store_url'];]]></search>
<add><![$data['store_url'] = $order_info['store_url']; if( isset($_SERVER['HTTPS'] ) ) {$data['store_url'] = str_replace('http://','https://',$data['store_url']);}]]></add>
</operation>
</file>
</modification>
any help please
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Fri Apr 29, 2016 10:28 pm
by LuboUzunov
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Fri May 27, 2016 9:19 pm
by sidneysavary
THANKS! IT WORKED!!
Re: V2.1.0.1 SSL View Admin Order Issue
Posted: Wed Jul 20, 2016 5:32 pm
by Lemmey
Glad I found this and just wanted to add my thanks to chameleon121. I was having the same problem and it worked!
chameleon121 wrote:THIS IS THE FIX:
In admin/controller/sale/order.php Find this line:
$data['store_url'] = $order_info['store_url'];
You'll notice it pulls the url from the order, and not from your browsing context.
I'm not sure if I'm over riding some other functionality, but I added this:
$data['store_url'] = $order_info['store_url'];
# add the following
if( isset($_SERVER['HTTPS'] ) ) {
$data['store_url'] = str_replace('http://','https://',$data['store_url']);
}