ncandelier Posted February 18, 2010 Share Posted February 18, 2010 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 toI 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 603May be can you help ?Regards,Nicolas Link to comment Share on other sites More sharing options...
muktadir Posted February 19, 2010 Share Posted February 19, 2010 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 serverSee ya Link to comment Share on other sites More sharing options...
ncandelier Posted February 19, 2010 Author Share Posted February 19, 2010 Hello,Thank you for your help.I changed the specified line but it did not make it.I am going to search toward base opendir function on my Linux serverRegards,Nicolas Link to comment Share on other sites More sharing options...
muktadir Posted February 19, 2010 Share Posted February 19, 2010 hi! write your upload_tmp_dir of php settings here.See ya Link to comment Share on other sites More sharing options...
ncandelier Posted February 19, 2010 Author Share Posted February 19, 2010 upload_tmp_dir no value no valueRgds Link to comment Share on other sites More sharing options...
muktadir Posted February 19, 2010 Share Posted February 19, 2010 contact your host to set a value within your home directory. If they don't allow it, request them to turn off open_base_dir option. If they don't allow that either, hire me. I will work out a solution anyway. Link to comment Share on other sites More sharing options...
ncandelier Posted February 19, 2010 Author Share Posted February 19, 2010 Thank you.Keep you informed ! 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