Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Cant Upload Images [maufacturer/products/etc]

Cant Upload Images [maufacturer/products/etc]

Locked

Started by cunningstunt on 9 Jun 2007, 3:59 PM · Views: 2,834

Results 1 to 19 of 19
This thread is locked. New replies are disabled.
9 Jun 2007, 3:59 PM
#1
cunningstunt avatar

cunningstunt

New Zenner

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

Post #1 by cunningstunt

Im posting this in the hope that someone else has had the same problem and managed to resolve it.

I am unable to add images to anything that will allow images added.

Whenever I try to add an images to something i get

The connection was reset
The connection to the server was reset while the page was loading.

I can add a product or manufacturer fine as long as i dont include an image, but as soon as I try to add an image and update the page it does not preview and gives that error message.

I was getting this problem with zen cart running as a xoops module and now im still getting it when I run zen as a standalone site.

Anyone got any ideas? Thanks

All folder permissions are correctly set up.

9 Jun 2007, 4:35 PM
#2
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Post #2 by louis

Speak to your host. Even though it looks like all folder permissions are setup correctly they still have to give the "Guest Web User" account write permission to the folders.

You can create manufacturers and stock items on their own because this only writes info to the database. When you link a picture to it, the web front-end needs to upload a file to your wespace and this is not allowed. Once they correct the permission settings all will work again.

9 Jun 2007, 4:48 PM
#3
cunningstunt avatar

cunningstunt

New Zenner

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

Post #3 by cunningstunt

Thanks Louis

I'll speak to the host.

11 Jun 2007, 1:19 PM
#4
mark_kimsal avatar

mark_kimsal

New Zenner

Join Date:
Jun 2006
Posts:
14
Plugin Contributions:
0

Post #4 by mark_kimsal

Try uploading a really, really small image with one of your products. I bet that there is a short execution timeout on the server and either PHP or Apache isn't getting enough time to process any large image. The hosting company is probably trying to squeeze too much power out of one machine. If you can upload a small image fine, then it is probably some resource limiting that the hosting company is doing, if you can't get them to change it for you you might need to switch.

This is just a hunch, another avenue to check. It really sounds like something isn't getting enough time to run from your error messages about the connection getting reset.

12 Jun 2007, 10:20 PM
#5
cunningstunt avatar

cunningstunt

New Zenner

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

Post #5 by cunningstunt

Same problem even with a 1x1 pixel image :no:

appreciate the help though :smile:

13 Jun 2007, 5:26 PM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #7 by website_rob

If you can upload images to any dir. using your FTP program but not through the script, it is quite possible your Hoster has set a limitation you're not aware of; and can do nothing about. As others have mentioned, talking to your Hoster and describing the problem might be the best (only?) solution to the problem.

The learning is in the doing.

Potent Products

14 Jun 2007, 2:29 PM
#9
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #9 by vger

The correct place to ask for information is by opening a thread of your own on this forum. It is unlikely that people are going to PM you without knowing what help you need.

Vger

14 Jun 2007, 2:33 PM
#10
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #10 by vger

If the original poster is still looking for an answer to their problem - I have known situations where certain hosts have disabled the Image Upload function in PHP, so ask them directly about this.

Vger

14 Jun 2007, 5:12 PM
#11
cunningstunt avatar

cunningstunt

New Zenner

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

Post #11 by cunningstunt

I've spoken to the host but haven't got a reply yet, other than to say they are investigating it.

I can upload images fine with ftp so I can add product images by just giving zen the filename, but the problem is also happening with a file management script which is unrelated to zen, so its looking more and more like the host is restricting something.

I'll keep badgering them until they either fix it or get a restraining order :laugh:

Thanks for all the replies.

14 Jun 2007, 5:39 PM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #12 by vger

Go to your Zen Cart admin panel --> Tools --> Server/Version Info and search within that page for file_uploads. If they are set to 'off' then that is the source of your problem.

Vger

15 Jun 2007, 4:23 PM
#13
cunningstunt avatar

cunningstunt

New Zenner

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

Post #13 by cunningstunt

Thanks for your ideas Vger; but according to that page they are turned On (local and master value).

There are a few things in the list which have a different value for local than they do for master. They are..

max_execution_time local value 60, master value 30
register_globals local value OFF, master value ON

from the session data

session.gc_divisor local value 2, master value 100 ??
session.gc_maxlifetime local value 3600, master value 1440
session.save_handler local value USER, master value FILES

also as it is relevant

post_max_size 8M local and master
upload_max_filesize 2M local and master

Is it possible I could have done this to myself with .htaccess ?? I have a few different htaccess files dotted around the webserver, mainly from following guides to lock directories down, theres also a xoops site on the same domain.

Thanks a lot

15 Jun 2007, 4:39 PM
#14
cunningstunt avatar

cunningstunt

New Zenner

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

Post #14 by cunningstunt

Operating system Linux
Kernel version 2.6.9-55.ELsmp
Machine Type i686
Apache version 1.3.37 (Unix)
PERL version 5.8.7
PHP version 4.4.4
MySQL version 4.1.22-standard
cPanel Build 11.4.2-RELEASE 13422
cPanel Pro 1.0 (RC1)

15 Jun 2007, 6:02 PM
#15
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #15 by vger

You have Register Globals 'On' for Master, but have them 'Off' for Local. However, this should not affect Zen Cart which works with them 'on' or 'off'.

I would increase the upload_max_filesize to 4MB

Vger

15 Jun 2007, 8:39 PM
#16
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #16 by website_rob

CunningStunt:

Thanks for your ideas Vger; but according to that page they are turned On (local and master value).

There are a few things in the list which have a different value for local than they do for master. They are..

max_execution_time local value 60, master value 30
register_globals local value OFF, master value ON

from the session data

session.gc_divisor local value 2, master value 100 ??
session.gc_maxlifetime local value 3600, master value 1440
session.save_handler local value USER, master value FILES

also as it is relevant

post_max_size 8M local and master
upload_max_filesize 2M local and master

Is it possible I could have done this to myself with .htaccess ?? I have a few different htaccess files dotted around the webserver, mainly from following guides to lock directories down, theres also a xoops site on the same domain.

Thanks a lot

The information provided shows nothing out of the ordinary and would not be causing your problem. An important setting not mentioned is that "file_uploads" should be ON for both, Local & Master.

Checking your .htaccess files would be the next area I would look at. For easy testing purposes, you could rename the main .htaccess file (.txt_htaccess for example) and the one in your Admin dir., presuming you have one there.

You could also take your testing to the next level by going to a Script download site and grab a free File Upload script. Using one scripted in Perl and one scripted in PHP would help to narrow down just exactly where the problem would be.

The learning is in the doing.

Potent Products

15 Jun 2007, 11:41 PM
#17
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #17 by vger

Already said:

"Go to your Zen Cart admin panel --> Tools --> Server/Version Info and search within that page for file_uploads. If they are set to 'off' then that is the source of your problem."

Vger

16 Jun 2007, 7:17 AM
#18
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #18 by website_rob

I was referring to the information previously posted by CunningStunt. Be good to know if the 'file_uploads' settings is on.

The learning is in the doing.

Potent Products

18 Jun 2007, 5:15 PM
#19
cunningstunt avatar

cunningstunt

New Zenner

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

Post #19 by cunningstunt

I'm now certain something at my end is causing the problem, most likely htaccess.

I managed to use a pc outside of my network today and could upload files and images with no problem.

Will investigate and post my findings later.