Page 1 of 1

HTTP_IMAGE removed in 1.5.5 why?

Posted: Thu Jan 24, 2013 6:01 pm
by exactweb

Code: Select all

define('HTTP_IMAGE', 'http://www.opencart.local/image/');
has been completely removed from the latest Opencart and wondering why?

I found this very useful for loading images under a separate sub-domain e.g: http://forum.opencart.com/viewtopic.php?f=138&t=40573

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Sat Feb 23, 2013 12:56 am
by aurevilly
Really. Nobody replies to this? We're dealing with the same problem here.

We might just add it back inside the config, but an answer from the developers would be appreciated.

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Tue Apr 02, 2013 7:16 am
by Conquistadore
Same here!
Is this really removed?

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Tue Apr 02, 2013 9:43 am
by butte
Drawing from http://forum.opencart.com/viewtopic.php?f=138&t=40573 you can presumably put it back in and see whether it conflicts with anything that might have prompted decision to remove it. You'll want to be sure that you haven't omitted any body parts and stitches.

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Wed Jun 26, 2013 2:49 am
by garuda
Can anyone answer this question, or provide a link, or even a guess as to why HTTP_IMAGE was removed?

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Wed Jun 26, 2013 9:19 am
by MarketInSG
If I'm not wrong, because the base codes doesn't need it anymore and he decided to remove it? You can just place it back, it doesn't harm anything.

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Wed Jun 26, 2013 9:57 am
by butte
I routinely restore it, partly because as raised to by a song long ago, "it's my teddy bear and I will if I want to," and otherwise because there will probably be vqmod usages of it that not even seeing it will trip even if it doesn't do anything any more.

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Sat Jul 13, 2013 10:55 am
by Awaken
To anyone like me that's been trying to setup an image subdomain, you might wanna checkout this chaps post:

http://forum.opencart.com/viewtopic.php ... 25#p397866

Attached the VQ mod here for handiness. Works a treat! You'll need to go and re-add the HTTP_IMAGE and HTTPS_IMAGE lines to both config.php files again.

For anyone using SSL on your domain (probably lots!) you might want to think laterally like I did, and point the subdomain to a subfolder of public_html. You can then have something like this:


define('HTTP_SERVER', 'http://www.yourdomain.co.uk/');
define('HTTP_IMAGE', 'http://image.yourdomain.co.uk/');

// HTTPS
define('HTTPS_SERVER', 'https://www.yourdomain.co.uk/');
define('HTTPS_IMAGE', 'https://www.yourdomain.co.uk/image/');

This won't break the padlock or green https:// when people move to secure parts of the site, images just get served from the image folder (over SSL) rather than the image.yourdomain.co.uk subdomain.

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Tue Sep 15, 2015 6:02 pm
by arnisraido
There is one more thing left unclear: HTTP_IMAGE has been left in cli_install.php file.

https://github.com/opencart/opencart/issues/3346

But it seems, that Opencart does not use this variable, so it is not possible to use any domain alias as image link for Opencart out-of-the-box?

Re: HTTP_IMAGE removed in 1.5.5 why?

Posted: Tue Sep 15, 2015 8:17 pm
by IP_CAM
easy to make it work again:
http://www.opencart.com/index.php?route ... n_id=23506
Ernie
bigmax.ch/shop/