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
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
Attachments
Untitled-1.png (74.63 KiB) Viewed 10297 times
see my post
http://forum.opencart.com/viewtopic.php?f=190&t=152819
change /admin/config in: all line https
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/');
notchange still the same
see below
admin/config.php
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./');
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
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
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....
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....
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.Gunzanrozes wrote:i too have this problem. I don't want to run whole site in SSL. Any fix?
Hope this helps.
Did you try this : viewtopic.php?f=190&t=155210#p594669bassam wrote:Is there any solution?
Hi had the same but the problem is with firefox and ie.
see link to me post
viewtopic.php?f=190&t=155210
see link to me post
viewtopic.php?f=190&t=155210
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']);
}
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']);
}
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
any help please
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>
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']);
}
Who is online
Users browsing this forum: No registered users and 15 guests