Jump to content

[Solved] Unable to upload product pictures


Recommended Posts

Hey!

I am unable to upload product pictures. I'm running PS 1.4 and after I select a product picture and hit the Save button, the page reloads and shows just the admin tabs at the top and underneath the error

Fatal error: Call to undefined function checkImageUploadError() in /administrator/tabs/AdminProducts.php on line 925

I tried to delete those rows, mentioned in the error (row 925 and 926 in that file), but then I got two other errors - one stating that product must be at least in one category and it must be in the default category, the other error appears as popup and states some ajax error. I then reinserted the two rows.

It happens for every product - new or already entered ones. But I can upload eg. category images.

I made (by some forum suggestions) a new tmp folder in my root folder, and gave it 777 chmod, the same rights I have assigned to the /img folder and even to the /img/tmp folder.

Any help would be appreciated! If more info needed, some screenshots maybe or if I left something out, please let me know.

Best regards,
Dean

Link to comment
Share on other sites

have you confirmed that the product is in a category? and that there is a default category?

also please provide the exact version of 1.4 that you are using.

The error you are receiving is simply saying it cannot locate that function checkImageUploadError, which exists in /images.inc.php. So you could confirm that you see the function in the images.inc.php class.

Link to comment
Share on other sites

I have PS 1.4.2.5.

I got the product attached to 2 categories - the default one (Home) and another one I created.

And yes - the right point of you. In the file images.inc.php was no checkImageUploadError function. Could be, that I screwed it up by adding some other sutff (modules maybe). I now copied this function from an original PS installation over to mine and it works like a charm :)

Thanks for the hint!

Regards,
Dean

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...