Post by Bg-foxx » Tue Oct 29, 2013 12:28 am

I upgraded to OC v 1.5.6 and when I turned on the SSL from Admin->Settings my pictures stopped working in Admin. Inspecting the code revealed revealed "HTTPS_CATALOG" inserted in to the URi like this:

https://mysite.com/admin/HTTPS_CATALOGimage/image.jpg

Turning off SSL fixed things.

I tracked the issue to this file: /public_html/admin/model/tool/image.php
There is an "if" statement at the end that looks like this:

Code: Select all

if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
			return HTTPS_CATALOG . 'image/' . $new_image;
		} else {
			return HTTP_CATALOG . 'image/' . $new_image;
		}	
I took the same statement from the previous OC version's same file which was:

Code: Select all

if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) {
			return HTTPS_IMAGE . $new_image;
		} else {
			return HTTP_IMAGE . $new_image;
		}
This fixed the issue with the images not showing in Admin.

New member

Posts

Joined
Wed Feb 22, 2012 7:55 am
Who is online

Users browsing this forum: No registered users and 12 guests