pierrem Posted October 4, 2012 Share Posted October 4, 2012 (edited) Hi, Surprising error ... When creating a new product, I can type in the name and then 'save and stay' (I'm using the frenc version ...). But when I, for example, add a new information like quantity and click again 'save and stay' ... I have the following error : Warning: Invalid argument supplied for foreach() in /var/www/vhosts/XXXXXX/httpdocs/classes/Product.php on line 1658 Nb : at this time, the (example) quantity if really saved ... I also have, before secondly clicking 'save and stay' the following message on the top of screen : Warning : file_exists() [ function.file-exists ]: open_basedir restriction in effect. File(/js/tiny_mce/langs/fr.js) is not within the allowed path(s): (/var/www/vhosts/XXXXXXX/httpdocs/:/tmp/) in /var/www/vhosts/XXXXXXXX/httpdocs/controllers/admin/AdminProductsController.php on line 3351 Don't know if it's related .... ? (the same Prestashop is working perfectly on local wamp) So, it should be a misconfiguration somewhere ... Any suggestion ? Edited October 4, 2012 by pierrem (see edit history) Link to comment Share on other sites More sharing options...
Netpreneur Posted October 16, 2012 Share Posted October 16, 2012 Hi I'm having same problem with the 'save and stay' after editing product quantity. Here is the error message: Invalid argument supplied for foreach() in /home/lkc/public_html/classes/Product.php on line 1658 Hopefully someone can help. I also have the advanced stock management feature enabled. Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted November 1, 2012 Share Posted November 1, 2012 I am having this problem as well. It is also giving me another error too. Warning: Invalid argument supplied for foreach() in /home/content/17/9925617/html/classes/Product.php on line 1658 Warning: Invalid argument supplied for foreach() in /home/content/17/9925617/html/classes/Product.php on line 1658 Warning: Cannot modify header information - headers already sent by (output started at /home/content/17/9925617/html/classes/Product.php:1658) in /home/content/17/9925617/html/classes/controller/AdminController.php on line 1094 Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 2, 2012 Share Posted November 2, 2012 Hello, are these shops on 1.5.2? If so, were they upgraded from an earlier verison (even 1.5.?) Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted November 2, 2012 Share Posted November 2, 2012 Mine was a fresh install. 1.5.1.0 Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 2, 2012 Share Posted November 2, 2012 Hello Jessica, You have since then upgraded to 1.5.2? Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted November 2, 2012 Share Posted November 2, 2012 No, that is the version I am still using. I have not upgraded. Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted November 2, 2012 Share Posted November 2, 2012 I just upgraded to 1.5.2 and am about to test it. Link to comment Share on other sites More sharing options...
benjamin utterback Posted November 2, 2012 Share Posted November 2, 2012 That could be a reason for some issues. I do recommend a fresh install of version 1.5.2 if possible. Sometimes if the database has problems in 1.5.1 it may transfer over. However, it seems you have done some customization to your site which would make a fresh install time consuming. Link to comment Share on other sites More sharing options...
AFemaleProdigy Posted November 3, 2012 Share Posted November 3, 2012 Updating to 1.5.2 solved my problem. Thanks! Link to comment Share on other sites More sharing options...
tresorier.renault25@ Posted January 11, 2014 Share Posted January 11, 2014 Hi, i'm under prestashop 1.5.3.1 ans same problem for me Link to comment Share on other sites More sharing options...
NewIntern Posted August 4, 2015 Share Posted August 4, 2015 Hi, I'm not really sure if my problem is related to this topic. I having problem with my AdminProductsController.php file. where after I edited the file even with a single space, the page goes blank after I press the save button in my product detail page. Anyone can help?? 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