Zen Cart Logo
Forums / General Questions / Images won't upload

Images won't upload

Locked

Views: 2,603

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
28 Aug 2007, 3:08 PM
#1
chrfrost avatar

chrfrost

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Images won't upload

Been uploading product images for years without any problems.
Just starting inputting this seasons new products and I can't seem to upload any images.
Click the "Browse" button next to "product image", find the image, click "Open"
The source path and filename show but when I click "preview" the image does not show.
There is no error message.
I click update and the style code is shown on the website but there is no product image.
I have checked if the image has been uploaded to the images folder and it has not.

I have checked all permissions on the folders and they are correct. (images folder and sub-folders set to 777)

I have checked disk space availability and there is lots of free space.

Any help greatly appreciated, this is losing me orders now.

28 Aug 2007, 8:52 PM
#2
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Images won't upload

I am experiencing image problems too, as of yesterday. I am wondering if it is a hosting issue?

Please PM me your Host name and we can see if it is the same host. Maybe that will narrow it down if they are the same host. I have not had problems until yesterday.

Shirley

28 Aug 2007, 11:05 PM
#3
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Images won't upload

I found out that my problem was caused because I used a # in the file name. My issue is solved.

28 Aug 2007, 11:13 PM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Images won't upload

Thanks for the update ... :smile:

Always avoid the use of spaces, special characters and the like in filenames ...

28 Aug 2007, 11:38 PM
#5
superprg avatar

superprg

Totally Zenned

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

Re: Images won't upload

tolefairy:

I found out that my problem was caused because I used a # in the file name. My issue is solved.

Just wondering how using a # in the filename can cause any problem at all
Was it because of the ftp client used or its a php problem?

29 Aug 2007, 4:49 AM
#6
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

Re: Images won't upload

Given those two choices, I would say it has to do with FTP, not php. It happens that I uploaded the same images (with # in the filename) to a totally different site on a totally different server and the other site kicked back errors. I re-uploaded and the second time they accepted the images. I guess they just don't like special characters in file names...........

29 Aug 2007, 2:42 PM
#7
chrfrost avatar

chrfrost

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Images won't upload

There are no #'s, spaces or other unusual characters in any of my file names.

29 Aug 2007, 2:45 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Images won't upload

What is the setting in the Tools ... Server Info ... for:
file_uploads

Have you checked with your hosting site about upload issues?

29 Aug 2007, 5:51 PM
#9
chrfrost avatar

chrfrost

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Images won't upload

Checked that - set to "on"

I can manually ftp files onto the server so I don't see it being a hosting issue

29 Aug 2007, 6:20 PM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Images won't upload

If you manually load an image ... and type in its name on the add/edit Product ... does it show?

30 Aug 2007, 12:48 PM
#11
chrfrost avatar

chrfrost

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Images won't upload

Negatory on that last suggestion too.
I manually FTP'd the image, then created a product using same name.
Product created successfully but no pic.

30 Aug 2007, 1:26 PM
#12
ajeh avatar

ajeh

Oba-san

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

Re: Images won't upload

And you are positive that /images and all subdirectories are set to 777?

30 Aug 2007, 5:15 PM
#13
chrfrost avatar

chrfrost

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Images won't upload

Yes, double checked
images and all subdirectories set to 777

30 Aug 2007, 5:51 PM
#14
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Images won't upload

Ask your host about your disk space.

30 Aug 2007, 5:53 PM
#15
kim avatar

kim

Obaa-san

Join Date:
Jun 2003
Posts:
26,593
Plugin Contributions:
0

Re: Images won't upload

What is the URL?

31 Aug 2007, 1:07 PM
#16
chrfrost avatar

chrfrost

New Zenner

Join Date:
Aug 2007
Posts:
6
Plugin Contributions:
0

Re: Images won't upload

Diskspace is a fine

URL -

https://www.judasjeans.com/shop

Thanks

26 Sep 2007, 3:27 PM
#17
benr avatar

benr

New Zenner

Join Date:
Jun 2007
Posts:
13
Plugin Contributions:
0

Re: Images won't upload

I'm having a similar issue. I created a new product type (by copying the music product type and following the tutorial on creating it) and for some reason it's not uploading images anymore.

I never touched anything that had to do with image handling. All the other product types have no trouble uploading images so it's not a server configuraiton issue.

I have done a file comparison and nothing relating to images is different.

I tried tracing it back and for some reasons I'm not finding how the image is uploaded. I put some debug code in the handler file (the file that the form is posting to in it's action) to dump the $_POST variables to see if the file is even getting passed. Turns out the that variable isn't even in the post array. The input is a file type and the name is products_image. But that variable name is nowhere to be found in the post array... this is the same for both the product type that's working and the product type that's not, so it's not like I dropped it somewhere.

It's odd, I see no image processing code in any of the files really (the typical file move/copy php functions). I see where the name is getting placed in the db but nowhere is the file being moved that I can see.

I'm seriously banging my head against the desk trying to figure this out. I'm pretty comfortable with zen-cart and php/mysql, I'm sure I'm missing something pretty obvious... any suggetions would be much appreciated.

Thanks!

Ben

:frusty:

26 Sep 2007, 3:37 PM
#18
benr avatar

benr

New Zenner

Join Date:
Jun 2007
Posts:
13
Plugin Contributions:
0

Re: Images won't upload

<--- idiot

I figured it out... somehow I had a custom new_product_preview.php file in my new product type folder and it was blank. I guess I forgot to copy and paste over the code for that. Alas, there is the mysterious file upload code and if it's in there it actually works. ;)

Thanks.

Ben