A temporary solution is to go into the database and change each order's "store_url" back to "http://www.storeurl.com" from "https://www.storeurl.com"
Not sure why when store_url is https it causes the error.
Not sure why when store_url is https it causes the error.
oc version 2.2 has a bug regarding ssl.
You just need to fix a couple off files to make it work.
find:
system/library/url.php
open in editor
search
change to
}
find admin/controller/sale/order.php
around line 850
change to
You just need to fix a couple off files to make it work.
find:
system/library/url.php
open in editor
search
Code: Select all
public function link($route, $args = '', $secure = false) {
if ($this->ssl && $secure) {
$url = 'https://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/.\\') . '/index.php?route=' . $route;
} else {
$url = 'http://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/.\\') . '/index.php?route=' . $route;
}
Code: Select all
public function link($route, $args = '', $secure = false) {
if ($this->ssl && $secure) {
$url = 'https://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/.\\') . '/index.php?route=' . $route;
} else {
$url = 'https://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['SCRIPT_NAME']), '/.\\') . '/index.php?route=' . $route;
find admin/controller/sale/order.php
around line 850
Code: Select all
$data['store_url'] = $this->request->server['HTTPS'] ? str_replace("http", "https", $order_info['store_url']) : $order_info['store_url'];
Code: Select all
$data['store_url'] = $this->request->server['HTTPS'] ? preg_replace("/^http:\/\//", "https://", $order_info['store_url']) : $order_info['store_url'];
Koeltechnische deurrubbers eenvoudig online op maat bestellen.
Alle niet stekplichtige onderdelen zoals scharnieren, sloten, randverwarming en verlichting voor alle typen koelingen en vriezers.
https://koelcel-onderdelen.com
This may be because you have not made changes to all files.
Have you changed the SSL variable as true in opencart/system/config/admin.php ?
You have to check if all pages in your admin panel are having SSL URL.
Have you changed the SSL variable as true in opencart/system/config/admin.php ?
You have to check if all pages in your admin panel are having SSL URL.
Regards,
Knowband Team
Opencart Plugins: Knowband Store
Email: support@knowband.com
@victorj, this was exactly what I've been seeking! I followed the textbook changes for SSL implementation and after numerous htaccess mods I had to step away from resolving this. I found your post today and am happy to report our SSL resolves on the front side and on the admin. Thank you.
Who is online
Users browsing this forum: No registered users and 12 guests