Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2011
    Location
    Australia
    Posts
    23
    Plugin Contributions
    0

    image problem Product image upload fails, suddenly

    I have 3 totally separate zencart sites running with the same remote host server.

    2 are on v 1.3.9d and one on 1.5.1
    All have been working for years with no problems.

    One site ( on v1.3.9d) has suddenly refused to upload product images through the normal catalogue method for adding new products.

    When editing a product - I add the image file as have done previously - click preview - get error message - "error: file upload not saved".

    The html editor for the addition of product text details is working normally.

    I have checked with the host server and settings look identical to the other sites which are still working perfectly - host tech guys suggest and I suspect - file corruption somewhere probably from gratuitous "update" sometime.

    Although for my sins my main computer from which I am uploading is on WIN 8 OS with all the problems that entails - I have tried others on different OS with the same result.

    Internet connections are private wireless and better than ADSL2+ and upload speed is min 1Mbit - images are less than 100 kb - and in any case speed and img size are no different to those of the other working sites.

    The site itself i.e. all the existing products and functions still seems to be working normally.
    Just cannot at present add any new ones.

    Would appreciate any advice particularly some clues to where in the zen folders I should look first
    to repair.

    Thanks,

    Big Ben

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Product image upload fails

    1) Check that the /images/ folder and sub folder permissions are set as '777' (If you get a 'Server 500 error' set them to '775')
    2) If you are trying to upload an image with the same name as an existing image check that the permissions of the existing file is 664 or higher.
    3) If the image folder permissions are correct (777 or 775) and this is a NEW file you are uploading, then seek help from your host. The problem is at their end, and only they will be able to fix it.

    Oh, and before doing anything - Check that you haven't used all of your allocated disk space. :-)

    Cheers
    RodG

  3. #3
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Product image upload fails

    Uploads folder permissions? Able to ftp to the location even though unable to upload via clicking the "button".

    Php version as reported by the applicable ZC admin panel?

    Tried adding product? Tried adding product of different product types? If able to add product with an image, try modifying that product, anything?

    Just some thoughts...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Product image upload fails

    Almost forgot. Make sure the image filenames don't contain a space or any other non-alphaNumeric character.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product image upload fails, suddenly

    Quote Originally Posted by Big Ben View Post
    "error: file upload not saved".
    The 'Error: File upload not saved.' response occurs AFTER the system has already checked that the incoming file "got uploaded" to PHP's temporary upload location, that its size and filename-extension (ie: ".jpg") are okay according to your settings in your admin, and that the destination folder is writable as far as permissions go. (And different error messages would appear if any of those were the problem.)

    So, at this point the most likely cause is that your hosting account has maxed out its storage quota.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  6. #6
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Product image upload fails, suddenly

    Quote Originally Posted by DrByte View Post
    The 'Error: File upload not saved.' response occurs AFTER the system has already checked that the incoming file "got uploaded" to PHP's temporary upload location, that its size and filename-extension (ie: ".jpg") are okay according to your settings in your admin, and that the destination folder is writable as far as permissions go. (And different error messages would appear if any of those were the problem.)
    Excellent info there DrByte.

    I consider this to be one of those things I *should* have known, but didn't.

    It sure narrows down the possible causes of the OP's problem doesn't it.

    Cheers
    RodG

    ps. Do you happen to know offhand what the error response would be if the PHP temp file upload location is unwritable? (as this is/was one of the possible causes that I was thinking it could be)
    Last edited by RodG; 20 Jul 2015 at 10:42 PM.

  7. #7
    Join Date
    Oct 2011
    Location
    Australia
    Posts
    23
    Plugin Contributions
    0

    Default Re: Product image upload fails

    Had this answer from host sever.

    "It looks like you have maxed out the number of files allowed on your server. It is not about the size but it's about the number of files. You're##re only allowed 89999##files. Anything that you no longer need should be removed from the server."

    Where are the easiest files to delete - I have 5 templates in the file system but these don't seem to contain much in the way of file numbers.
    Use only English - should I get rid of all other language files?

    Can't imagine where 90,000 exist!

    Ben

  8. #8
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Product image upload fails

    Quote Originally Posted by Big Ben View Post
    "It looks like you have maxed out the number of files allowed on your server. It is not about the size but it's about the number of files. You're##re only allowed 89999##files. Anything that you no longer need should be removed from the server."

    Where are the easiest files to delete - I have 5 templates in the file system but these don't seem to contain much in the way of file numbers.
    Use only English - should I get rid of all other language files?

    Can't imagine where 90,000 exist!

    Ben
    Yes, you can get rid of the language files that you don't use, but this almost certainly won't be enough for a good/long term solution.

    I'm going to go out on a limb here and say that the majority of these files are log files, and these are the 1st ones to delete (especially if they go back many months, or possibly years).

    The log files will be found in the
    /logs/ folder (latest versions of Zencart)
    and/or the
    /cache/ (older versions of zencart).

    Cheers
    RodG

  9. #9
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Product image upload fails, suddenly

    Quote Originally Posted by RodG View Post
    ps. Do you happen to know offhand what the error response would be if the PHP temp file upload location is unwritable? (as this is/was one of the possible causes that I was thinking it could be)
    The logic is all contained in the 'upload' class file.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Suddenly my site gives 500 error when upload product images to /image
    By Hitech9459 in forum General Questions
    Replies: 5
    Last Post: 27 May 2013, 07:13 AM
  2. Product upload image problème
    By fincosat in forum General Questions
    Replies: 5
    Last Post: 15 May 2010, 09:24 PM
  3. Product image change when product type is chosen- Zoom fails?
    By Ben-B in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 3 Dec 2009, 10:05 AM
  4. Suddenly can't upload images
    By irishsurfculture in forum General Questions
    Replies: 4
    Last Post: 9 Sep 2006, 01:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR