argamanza Posted December 30, 2012 Share Posted December 30, 2012 Hello, I'm new to prestashop, I'm using the latest (1.5.3) version. Everything is alright and working perfectly, My only problem is when i'm trying to add a new manufacturer image or edit an existing one to change it's picture i get an error saying: An error occurred while uploading image. And that's it, Everything i edit (Name, Description etc.) is changing but i have no image. I have Safe_mode OFF I've looked everywhere for a solution and i couldn't find anything. Thanks for the help! Link to comment Share on other sites More sharing options...
ferit88 Posted December 30, 2012 Share Posted December 30, 2012 i have te same problem so I returned to previous version 1.5.2.0 Does anyone know the reason of this problem? I gave the 777 permissions to related folders and subfolders Hosting is dreamhost In Prestashop Version 1.5.3.0 i can not upload category images but in version 1.5.2.0 there is no problem I wonder why :s Link to comment Share on other sites More sharing options...
danlee Posted December 30, 2012 Share Posted December 30, 2012 (edited) same problem! @products: img upload is no problem @categories & image diagramm: img upload doses NOT work also URL rewrite does not work.. dan Edited December 30, 2012 by danlee (see edit history) Link to comment Share on other sites More sharing options...
danlee Posted December 30, 2012 Share Posted December 30, 2012 Good evening I've found a solution: - The image upload problem is with the php versions 5.3.18, 5.3.19, 5.4.8 and 5.4.9. After downgrade to php 5.2.17 the upload works everywhere. -URL rewrite parameters still not work. I wish everyone a happy new year! Dan Link to comment Share on other sites More sharing options...
archproject Posted December 31, 2012 Share Posted December 31, 2012 I confirm the upload is not working with PHP version 3 and when I down load like what danlee said, the uploading of images works. I was trying to upload the carriers logo and was failing then after downgrading it works nicely. Link to comment Share on other sites More sharing options...
guest* Posted December 31, 2012 Share Posted December 31, 2012 @arproject. which php-Version do you mean ? The mentioned problem is NOT available on PHP-Versions 5.3.0 5.3.1 5.3.2 5.3.3 5.3.4 5.3.5 5.3.6 5.3.8 PHP-Versions 5.4.X I cannot test, because my provider didn't released them due to many bugs on this version. So please use one of the 5.3 series mentioned. The best and stable versions running without any problems with PS 1.5.X are PHP 5.3.6 or 5.3.8. I do not recommend to use old PHP Versions 5.2.X, because some of new coding is not working with this old PHP-versions (mainly bought modules ajax-script based are not working correct)... Link to comment Share on other sites More sharing options...
archproject Posted December 31, 2012 Share Posted December 31, 2012 Sorry i was in a hurry when i typed and left out the version its 5.3.18 Link to comment Share on other sites More sharing options...
flotyi Posted December 31, 2012 Share Posted December 31, 2012 Hello, I keep getting this massage when trying to upload images in the Catalog menu, as a logo and as slide images. I can upload images in the Products menu. I changed the /img permissions to 777 but nothing changed. I cannot download php 5.2.17. since it depends on my host server. Can you help me please? Thanks. Link to comment Share on other sites More sharing options...
argamanza Posted December 31, 2012 Author Share Posted December 31, 2012 (edited) Hey, Here's a solution i've found (No need to downgrade or change any version of MySQL or PHP) Edit "Classes/ImageManager.php" Replace - (Supposed to be in line 122) if (!file_exists($src_file) || !filesize($src_file)) With: if (!file_exists($src_file)/* || !filesize($src_file)*/) Worked perfectly for me! (Of course i'm taking no responsibility for any harm that happens as a result, Backup anyway) Hope it helps! Edited December 31, 2012 by argamanza (see edit history) 2 Link to comment Share on other sites More sharing options...
archproject Posted December 31, 2012 Share Posted December 31, 2012 ok argamanza, I tried your solution and it worked and I upgraded my php version to 5.4.8. First I upgraded my php version and then tried to upload a carrier logo and failed. then I change the ImageManager.php file just like argamanza said and then tried to upload another carrier logo and it worked. I hope by commenting out the statement will not break any other features? Link to comment Share on other sites More sharing options...
guest* Posted December 31, 2012 Share Posted December 31, 2012 Bare in mind that all changes on script should be done only as an emergency case. Each upgrade will overwrite the changes and bugs should be reported on the bug-tracker in order to that prestashop developer can fix them. I've not yet reported, so please somebody else... http://forge.prestas.../Dashboard.jspa Link to comment Share on other sites More sharing options...
argamanza Posted December 31, 2012 Author Share Posted December 31, 2012 I Still have not encountered any other problem, Update here if you find anything, will as well Link to comment Share on other sites More sharing options...
argamanza Posted December 31, 2012 Author Share Posted December 31, 2012 Alright, Seems like there's a new and fixed version of PrestaShop (1.5.3.1) I will also recommend to upgrade to this version instead of editing your own code. http://www.prestashop.com/en/developers-versions/changelog/1.5.3.1 Link to comment Share on other sites More sharing options...
flotyi Posted December 31, 2012 Share Posted December 31, 2012 It worked for me and no other problems. Link to comment Share on other sites More sharing options...
gaankdoank Posted January 18, 2013 Share Posted January 18, 2013 Good evening I've found a solution: - The image upload problem is with the php versions 5.3.18, 5.3.19, 5.4.8 and 5.4.9. After downgrade to php 5.2.17 the upload works everywhere. -URL rewrite parameters still not work. I wish everyone a happy new year! Dan i'm using php 5.4.10 but the problem is same, "an error occured while uploading images" Link to comment Share on other sites More sharing options...
gaankdoank Posted January 18, 2013 Share Posted January 18, 2013 Hey, Here's a solution i've found (No need to downgrade or change any version of MySQL or PHP) Edit "Classes/ImageManager.php" Replace - (Supposed to be in line 122) if (!file_exists($src_file) || !filesize($src_file)) With: if (!file_exists($src_file)/* || !filesize($src_file)*/) Worked perfectly for me! (Of course i'm taking no responsibility for any harm that happens as a result, Backup anyway) Hope it helps! Hey bro, you're good boy... thanks absolutely for your solving. in bahasa indonesia,"Sakti lo" Link to comment Share on other sites More sharing options...
rr10o Posted July 26, 2014 Share Posted July 26, 2014 Hi guys, New to prestashop but already having this issue with the image uploader. I am using the default theme so far/on a Mac/ broweser Chrome - everytime I try to upload an image I get: "An error occurred during the image upload" I tried editing "Edit "Classes/ImageManager.php" as suggested above and it didn't make any difference.... any thoughts?? Link to comment Share on other sites More sharing options...
coventrycampers Posted August 29, 2014 Share Posted August 29, 2014 having the same problem in 1.6.0.9 but this class doesnt appear to be there, having problems uploading all images including main logo anyone have a fix? Link to comment Share on other sites More sharing options...
Xtaz411 Posted September 26, 2014 Share Posted September 26, 2014 Same issue here with version 1.6.0.9 Tried adding an image to the home hook and simply get the same message : An error occurred during the image upload. Looking forward to a fix. Thank you Link to comment Share on other sites More sharing options...
lateral Posted September 26, 2014 Share Posted September 26, 2014 I had problems updloading images and then I decided to install a trial version of Store Commander to see if I could upload images using a third party tool and I could! From then on I could also upload images using the Back Office...I have no idea why but this worked for me...you've got nothing to lose.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now