Zen Cart Logo
Forums / General Questions / Moved to new host - images not showing

Moved to new host - images not showing

Locked

Views: 3,522

Results 1 to 17 of 17
This thread is locked. New replies are disabled.
5 Jul 2006, 7:13 AM
#1
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Moved to new host - images not showing

Hello, I just moved my site to a new host/server and everything is working except the images. No images are showing, not the layout images and not the product images.

I've checked that everything is uploaded.

What is wrong? Why aren't they showing?

Thanks!

5 Jul 2006, 9:47 AM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

Do you have the images/ folder in the cart folder?

5 Jul 2006, 9:54 AM
#3
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

In admin\includes\configure.php
See for the line
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
It might be pointing to the wrong path

5 Jul 2006, 10:24 AM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

Sorry the line is
define('DIR_WS_IMAGES', 'images/');

5 Jul 2006, 4:25 PM
#5
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moved to new host - images not showing

Everything in the configure file should be pointing to the write path. The only thing I changed in that file from my old host is the cart path.

You can check out the site at http://www.swefoods.com

No images at all show, not the product images and not even the template/layout images.

Can anyone help me?

Many thanks!

5 Jul 2006, 4:28 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Moved to new host - images not showing

I would suspect that during the move that the file permissions or group permissions were incorrectly set ...

I cannot pull up your images directly in the browser ...

Example: http://swefoods.com/images/Strobrod.gif

5 Jul 2006, 7:43 PM
#7
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moved to new host - images not showing

Ajeh:

I would suspect that during the move that the file permissions or group permissions were incorrectly set ...

I cannot pull up your images directly in the browser ...

Example: http://swefoods.com/images/Strobrod.gif

What file and group permissions would that be? I don't understand!?

Thanks!

6 Jul 2006, 12:28 AM
#8
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

Give 755 permissions to images folder and then try

6 Jul 2006, 5:16 AM
#9
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moved to new host - images not showing

I did that and nothing changed. Still no images. :(

???

6 Jul 2006, 5:48 AM
#10
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

Before we go on this
Just do one thing
Go to the folder images
Check that there is an image with the name Strobrod.gif
If its not there, then you know where the problem is :)
If its there, make sure that is has 755 and then access:
http://swefoods.com/images/Strobrod.gif

Even then if it doesnt shows up please post here, we will investigate more
Thanks! :)

6 Jul 2006, 6:55 AM
#11
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moved to new host - images not showing

Yes, I am sorry to say that the image is there and the folder is set to 755.

Thanks for helping me out guys! I hope we can fix this soon.

6 Jul 2006, 7:02 AM
#12
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

Hi mate
Can you please select all the files in image folder and then give 755 permission to them?
Thanks

6 Jul 2006, 7:06 AM
#13
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moved to new host - images not showing

Yup, done that now.

6 Jul 2006, 7:12 AM
#14
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

I am not sure how you did it so I have to ask you again

See here and let me try to explain
If I go here

http://swefoods.com/images/
I can see the listing of all the images

and click on 1_small.jpg

http://swefoods.com/images/1_small.jpg

I get
You don't have permission to access /images/1_small.jpg on this server

When I give something like

http://swefoods.com/images/1_small.jpg1
The requested URL /images/1_small.jpg1 was not found on this server.
(because the file is not there)

Anyways, can you please give 777 permissions to both folder images and the files and then try
There is something wrong going on with the permissions as I can see it

6 Jul 2006, 5:11 PM
#15
amagab avatar

amagab

New Zenner

Join Date:
May 2006
Posts:
10
Plugin Contributions:
0

Re: Moved to new host - images not showing

Okay, finally it is working now. My webhost fixed the problem. Their reply was:


The problem was the following line in your .htaccess file under folder /home/********/public_html RewriteRule .*.(jpg|jpeg|gif|png|bmp|JPG)$ - [F,NC]

I have commented it out and all images are showing up fine now.


8 Jul 2006, 11:33 AM
#16
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Moved to new host - images not showing

Glad to see its resolved!

8 Jul 2006, 3:54 PM
#17
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Moved to new host - images not showing

Note: you really do not want people browsing your /images directory

Zen Cart comes with an index.html file to prevent this ...

You should add the index.html to your /images or build an .htaccess file to protect these directories from outside sources ...