Jump to content

[v 1.5] Error while editing new product, after 'save and stay'


Recommended Posts

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 by pierrem (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

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

  • 3 weeks later...

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

  • 1 year later...
  • 1 year later...

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

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