Post by tgdonohue » Fri Jun 15, 2018 6:22 am

In OC 2.1

After installing a Commodo SSL I get this error on trying to log into the admin area:
Notice: Use of undefined constant HTTPS_CATALOG - assumed 'HTTPS_CATALOG' in D:\CustomerData\webspaces\webspace_00103141\wwwroot\shop.axelradart.com\catalog\controller\module\ecslideshow.php on line 36

The code looks like:


if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
$base = $this->config->get('config_ssl');
$base = empty($base)?HTTPS_CATALOG:$base;
} else {
$base = $this->config->get('config_url');
$base = empty($base)?HTTP_CATALOG:$base;
}
$data['base'] = $base;

$data['enable_async'] = $setting['enable_async'];

if($setting['enable_async']){
$data['script_migrate'] = $data['base'].'catalog/view/javascript/ecslideshow/jquery-migrate-1.2.1.min.js';
$data['script'] = $data['base'].'catalog/view/javascript/ecslideshow/ecslideshow.min.js';
}else{
$this->document->addScript('catalog/view/javascript/ecslideshow/jquery-migrate-1.2.1.min.js');
$this->document->addScript('catalog/view/javascript/ecslideshow/jquery.mobile.customized.min.js');
$this->document->addScript('catalog/view/javascript/ecslideshow/jquery.easing.1.3.js');
$this->document->addScript('catalog/view/javascript/ecslideshow/camera.min.js');
}

The Cart side is fine.

New member

Posts

Joined
Sat Mar 12, 2016 3:03 am

Post by IP_CAM » Fri Jun 15, 2018 10:08 am

Well did you try, to change all Sequences to HTTPS,
what originally comes like this ?
$base = empty($base)?HTTP_CATALOG:$base;
Ernie

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by tgdonohue » Sat Jun 16, 2018 4:47 am

Thanks for the suggestion, but insuring that all references were HTTPS had no effect.

New member

Posts

Joined
Sat Mar 12, 2016 3:03 am

Post by jason84 » Sat Jun 16, 2018 11:00 pm

I try any way to solve problem โหลด Star Vegas but I can't solve it :-[

Newbie

Posts

Joined
Wed Jan 31, 2018 4:43 am

Post by IP_CAM » Sun Jun 17, 2018 12:47 am

โหลด Star Vegas
Well, that link has nothing to do with OpenCart, it's a Wordpress Software...
Ernie

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/
Image


User avatar
Guru Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by tgdonohue » Tue Jun 19, 2018 5:37 am

I was able to find a fix in my config file but that raised a new issue posted in another thread.

New member

Posts

Joined
Sat Mar 12, 2016 3:03 am
Who is online

Users browsing this forum: No registered users and 3 guests