Jump to content

Cannot upload manufacturer/category image


Recommended Posts

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!

post-452527-0-92592400-1356883672_thumb.png

Link to comment
Share on other sites

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

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

@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

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

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 by argamanza (see edit history)
  • Like 2
Link to comment
Share on other sites

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

  • 3 weeks later...

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

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

  • 1 year later...

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

  • 1 month later...
  • 4 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...