I am having image cache issues with Version 1.5.5.1
In my config file I have set up the image location:
define('HTTP_IMAGE', 'http://static.mydomain.co.uk/image/');
define('DIR_IMAGE', '/var/sites/c/mydomain.co.uk/subdomains/static/image/');
and the domain location:
define('HTTP_CATALOG', 'http://www.mydomain.co.uk/');
This previously worked ok on version 1.5.4.1 but now in the admin panel>Products the image cache location refers to:
http://www.mydomain.co.uk/image/cache/data/
and not
http://static.mydomain.co.uk/image/cache/data/
The front end works perfectly even though the images in the backend do not.
Any help appreciated.
In my config file I have set up the image location:
define('HTTP_IMAGE', 'http://static.mydomain.co.uk/image/');
define('DIR_IMAGE', '/var/sites/c/mydomain.co.uk/subdomains/static/image/');
and the domain location:
define('HTTP_CATALOG', 'http://www.mydomain.co.uk/');
This previously worked ok on version 1.5.4.1 but now in the admin panel>Products the image cache location refers to:
http://www.mydomain.co.uk/image/cache/data/
and not
http://static.mydomain.co.uk/image/cache/data/
The front end works perfectly even though the images in the backend do not.
Any help appreciated.
Same problem on my side, just that it doesn't work for both, backend and front-end. It is referring for all to /image/cache/data/ instead of sub-domain.
I also tried for the default store, installed in on a separate domain, and same thing, doesn't work anymore for 1.5.5.1 to add sub-domain to paralelize downloads across different host-names.
Also noticed that the config file changed a bit:
There is only one variable for HTTP and HTTPS, the second one i added it myself.
I also tried for the default store, installed in on a separate domain, and same thing, doesn't work anymore for 1.5.5.1 to add sub-domain to paralelize downloads across different host-names.
Also noticed that the config file changed a bit:
Code: Select all
// HTTP
define('HTTP_SERVER', 'http://www.testingcom.tk/');
define('HTTP_IMAGE', 'http://static.testingcom.tk/');
// HTTPS
define('HTTPS_SERVER', 'http://www.testingcom.tk/');
define('HTTPS_IMAGE', 'http://static.testingcom.tk/');
define('DIR_IMAGE', '/home/user/domains/www.testingcom.tk/static/');
This looks like a intentional change.
https://github.com/opencart/opencart/co ... 965f89decf
You may be able to undo it by looking at that.
https://github.com/opencart/opencart/co ... 965f89decf
You may be able to undo it by looking at that.
@ADD Creative
You pointed me in the right direction... Sort of...
After looking at the code I discovered that the CATALOG Definition in the admin config file was now pointing to the wrong place after the upgrade to Version 1.5.5.1:
Change:
To:
I re-defined the DIR under the Admin Config file:
Everything works OK now and content can be pulled in form a static domain.
I hope this helps people out there?
Cheers
You pointed me in the right direction... Sort of...
After looking at the code I discovered that the CATALOG Definition in the admin config file was now pointing to the wrong place after the upgrade to Version 1.5.5.1:
Change:
Code: Select all
define('HTTP_CATALOG', 'http://www.mydomain.co.uk/');
Code: Select all
define('HTTP_CATALOG', 'http://static.mydomain.co.uk/');
Code: Select all
define('DIR_IMAGE', '/var/sites/c/mydomain.co.uk/subdomains/static/image/');
define('DIR_CATALOG', '/var/sites/c/mydomain.co.uk/subdomains/static/catalog/');
I hope this helps people out there?
Cheers
Whilst this does fix the product images cache. When you click on "Store Front" from within the admin panel you are directed to:
Something else needs to be looked at.... Fast!
Code: Select all
http://www.static.mydomain.co.uk
There are a few places where replacing:
with
and
with
will put back to using HTTP_IMAGE and HTTPS_IMAGE from your config.
But there is also in catalog\controller\common\header.php which will need putting back to HTTPS_IMAGE or HTTP_IMAGE. Look how this was done in 1.5.4.1.
There may be a few other places where HTTPS_IMAGE or HTTP_IMAGE need putting back in the code. Search for them in 1.5.4.1 and find the same place in 1.5.5.1 and change the code accordingly.
Code: Select all
$this->config->get('config_ssl') . 'image/'
Code: Select all
HTTPS_IMAGE
Code: Select all
$this->config->get('config_url') . 'image/'
Code: Select all
HTTP_IMAGE
But there is also
Code: Select all
$server . 'image/'
There may be a few other places where HTTPS_IMAGE or HTTP_IMAGE need putting back in the code. Search for them in 1.5.4.1 and find the same place in 1.5.5.1 and change the code accordingly.
The final fix had been attached. Indeed Adcreative was right.
After that you don't need to modify catalog var, you need to add
In admin config:
define('HTTP_IMAGE', 'http://img.domain.com/');
define('HTTPS_IMAGE', 'http://img.domain.com/');
define('DIR_IMAGE', '/home/user/public_html/www.domain.com/static/');
This is in case you added the entire image folder on the sub-domain, not sub-domain of sub-folder.
If it is sub-domain of sub-foler than also add the folder
define('HTTP_IMAGE', 'http://static.domain.com/image/');
define('HTTPS_IMAGE', 'http://static.domain.com/image/');
define('DIR_IMAGE', '/home/user/public_html/www.domain.com/static/image/');
Thanks again both: Adcreative and Rhyell.
After that you don't need to modify catalog var, you need to add
In admin config:
define('HTTP_IMAGE', 'http://img.domain.com/');
define('HTTPS_IMAGE', 'http://img.domain.com/');
define('DIR_IMAGE', '/home/user/public_html/www.domain.com/static/');
This is in case you added the entire image folder on the sub-domain, not sub-domain of sub-folder.
If it is sub-domain of sub-foler than also add the folder
define('HTTP_IMAGE', 'http://static.domain.com/image/');
define('HTTPS_IMAGE', 'http://static.domain.com/image/');
define('DIR_IMAGE', '/home/user/public_html/www.domain.com/static/image/');
Thanks again both: Adcreative and Rhyell.
Hello, I know this topic is for 1.5x but I am trying to figure this out days... without success.
I am using 2.0.1.1, I did everything as described, the vqmod's alters are the same for 2x, the image path is successfully change to subdomain which is looking right but the products on the store are broken (not found).
So while you figure this out on 1.5x, there's must be something more to have to alter on 2x to make this work.
Any ideas?
I am using 2.0.1.1, I did everything as described, the vqmod's alters are the same for 2x, the image path is successfully change to subdomain which is looking right but the products on the store are broken (not found).
So while you figure this out on 1.5x, there's must be something more to have to alter on 2x to make this work.
Any ideas?
View the source in a web browser of a page where the image is not showing and check the img tag src is actually correct. If it not correct try and work out where it's wrong.
Who is online
Users browsing this forum: No registered users and 73 guests