Jump to content

Error when uploading product images


Recommended Posts

I installed Prestashop on our webspace and now I'm busy entering our products, but whenever I try to upload an image, an error message shows up. It seems the image entry is added to the database, but the image file itself isn't uploaded. When I look at the product in our shop, there's just a blank box where the image should be.

 

The Apache log file on our webspace says the following (I replaced our website information with ***):

 

PHP Warning: stream_copy_to_stream() expects parameter 2 to be resource, boolean given in /home/***/public_html/shop/classes/FileUploader.php on line 167, referer: http://***.***.ch/ad...1fd7cf2889e63b1

 

PHP Warning: tmpfile(): open_basedir restriction in effect. File(/var/tmp) is not within the allowed path(s): (.:/usr/local/share/pear:/home/***:/var/webs/***.***.ch/public_html) in /home/***/public_html/shop/classes/FileUploader.php on line 166, referer: http://***.***.ch/ad...1fd7cf2889e63b1

 

How do I get the images to upload and display correctly?

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