I have reinstalled a fresh copy of open cart as i had major issues when moving my images to a subdomain...
I had successfully edited the 2 config.php files and pointed them to my NEW subdomain which was fine for all images other than ones I had personally uploaded: (Product Images and logo ohh and favicon) they are not working!!
stlysheet images (../images/example.jpg) - ALL OK!!
Logo (Not Visable)
Products (Not Visable)
Favicon (Not Visable)
Now in my admin i can upload any image and it saves to the new dir but the store front is using the old dir to ask for the file names... the image below explains it all...
p.s
I have copied all the images to my new subdomain but opencart will not load them... im 100% their is something missing in this problem to move images onto another subdomain. (Someone further in the thread mentioned the imapge.php file!!) >>>???????????
I had successfully edited the 2 config.php files and pointed them to my NEW subdomain which was fine for all images other than ones I had personally uploaded: (Product Images and logo ohh and favicon) they are not working!!
stlysheet images (../images/example.jpg) - ALL OK!!
Logo (Not Visable)
Products (Not Visable)
Favicon (Not Visable)
Now in my admin i can upload any image and it saves to the new dir but the store front is using the old dir to ask for the file names... the image below explains it all...
p.s
I have copied all the images to my new subdomain but opencart will not load them... im 100% their is something missing in this problem to move images onto another subdomain. (Someone further in the thread mentioned the imapge.php file!!) >>>???????????
Last edited by Adrian666 on Wed Nov 03, 2010 6:18 am, edited 2 times in total.
I have something similar. The missing image thing kind of resolved itself after a while, it was replaced by the standard no_image image in the admin panel. But I still have 3000 images that won't show on the front page. The image names are all fine in the database, but appear blank (img src="") on the front page. Is this what you have?
I didn't edit the configs. I installed a new opencart on the web server, downloaded the two configs, deleted the new opencart, then uploaded my opencart and replaced the two configs with the new ones.
Also keep in mind that you have to go to the settings in Admin and change the URL of the site from localhost to the new URL.
Also keep in mind that you have to go to the settings in Admin and change the URL of the site from localhost to the new URL.
Adrian,
The setting I was talking about is in system - settings - general tab - store URL.
If you still have problems, can you FTP to your site,
Go to System - settings - image tab.
What is the "product image thumb size" set to?
Then FTP to your site and look in the image/cache/data folder. What are the last parts of the file names of the images in this folder? Do they match up to your image size settings?
(mine do not)
Just a thought: http://code.google.com/p/opencart/issues/detail?id=188
The setting I was talking about is in system - settings - general tab - store URL.
If you still have problems, can you FTP to your site,
Go to System - settings - image tab.
What is the "product image thumb size" set to?
Then FTP to your site and look in the image/cache/data folder. What are the last parts of the file names of the images in this folder? Do they match up to your image size settings?
(mine do not)
Just a thought: http://code.google.com/p/opencart/issues/detail?id=188
I know my store is the problem but Im sure its doen to a single file.
After i have uploaded an image.... the file gets uploaded to:
http://img.mydomain.co.uk/data/fav.png - and i can see it in the admin!
Basically on all aspects of the backend...
But when i look at the store front its still requesting the old url. I
http://www.mydomain.co.uk/data/fav.png
it is the image.php that still needs changing - can anyone suggest what to change......
After i have uploaded an image.... the file gets uploaded to:
http://img.mydomain.co.uk/data/fav.png - and i can see it in the admin!
Basically on all aspects of the backend...
But when i look at the store front its still requesting the old url. I
http://www.mydomain.co.uk/data/fav.png
it is the image.php that still needs changing - can anyone suggest what to change......
How difficult can it be!
* Always mention version of your OpenCart!
*Always include a link if you are having a store front issue!
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
To me it seems as if you're having a theme issue mate...
When I select something on your navigation bar, I get the following:
As you can see, your categories are showing up twice in the list.
I guess your imaging problem is not the only thing you should worry about.
Did you create the theme yourself, or did someone create it for you?
Greets
When I select something on your navigation bar, I get the following:
As you can see, your categories are showing up twice in the list.
I guess your imaging problem is not the only thing you should worry about.
Did you create the theme yourself, or did someone create it for you?
Greets
Dimitri Backaert
Web Development, Application Development, OOP, .NET, IBM Cognos BI
Not fully sure what is happening here. It looks like you are using a subdomain for images, haven't tried that myself but should work. Did you have these in another store at some point? Images used to be stored in image/ root path until 1.4.4 I think. The filemanager was added and for some reason it would not work with images in the root image/ path so they had to be added to image/data.
But if you upgraded from an existing store, the db record would look for just "image.jpg". While new products would use "data/image.jpg"
So it is possible if you moved your db over that is looking for images in the root, but uploaded all images to the data subfolder. But maybe I'm wrong.
If you can set me up with temp ftp I can take a look
But if you upgraded from an existing store, the db record would look for just "image.jpg". While new products would use "data/image.jpg"
So it is possible if you moved your db over that is looking for images in the root, but uploaded all images to the data subfolder. But maybe I'm wrong.
If you can set me up with temp ftp I can take a look
ok the issue is kind of a bad design in the later versions of opencart. You renamed your image directory to "img" and changed the filepath "DIR_IMAGE" as well as the HTTP_IMAGE path in the admin/config.php. That is all fine.
But since the multistore was added, the root config.php no longer has a definable HTTP_IMAGE path. Instead it grabs the url from the database for the store you are visiting and just assumes that "/image/" should be added to the end of it.
So the index.php file code had to be changed for
to
This still doesn't make it use the subdomain, instead just the subfolder "img" instead of "image" which still works since by default "img.site.com" is the same as "site.com/img"
The only other issue I saw was that the images you have set for each product just don't exist anywhere yet so I assume they were not uploaded.
So once you upload those images, you should be all set.
If you really want to change the url to use img.site.com then you will likely need to just hardcode that in for now until we think of a better method
But since the multistore was added, the root config.php no longer has a definable HTTP_IMAGE path. Instead it grabs the url from the database for the store you are visiting and just assumes that "/image/" should be added to the end of it.
So the index.php file code had to be changed for
Code: Select all
define('HTTP_IMAGE', HTTP_SERVER . 'image/');
Code: Select all
define('HTTP_IMAGE', HTTP_SERVER . 'img/');
The only other issue I saw was that the images you have set for each product just don't exist anywhere yet so I assume they were not uploaded.
So once you upload those images, you should be all set.
If you really want to change the url to use img.site.com then you will likely need to just hardcode that in for now until we think of a better method
Code: Select all
define('HTTP_IMAGE', 'img.site.com/');
Who is online
Users browsing this forum: Bing [Bot] and 332 guests