Jump to content

Unable to Upload Image : Please check my Message error


Recommended Posts

Dear All,

I successfully setup prestashop but when i create a product and try to upload a picture, the storefront does not displays it.

I checked my php conf and mod_rewrite is enabled.

I presume this is a .htaccess to build, but don't know how to

I check my Message error on my linux server and here it is :

Feb 18 18:00:22 micronaute httpd: PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/tmp/phpMyjhN6) is not within the allowed path(s): (/home/e-smith/files/ibays/Primary/) in /home/e-smith/files/ibays/Primary/html/shop/admin534/tabs/AdminProducts.php on line 603

May be can you help ?

Regards,

Nicolas

Link to comment
Share on other sites

hi!

if you are using 1.2.5. Try the following.

Open AdminProducts.php file in a editor. if you go to line 603 you will get this line:


if (!isset($_FILES['image_product']['tmp_name']) OR !file_exists($_FILES['image_product']['tmp_name']))

Replace the 603 line with this one:

if (!isset($_FILES['image_product']['tmp_name']) OR ($_FILES['image_product']['error']!=0))

Confirm me if it works. If it doesn't work, you need to hire someone to diagnose your server and fix the problem.

**back up the file before editing it. Be sure to replace the edited file in your server

See ya

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