cedschmidt Posted February 22, 2017 Share Posted February 22, 2017 I got the following error when I try to order my cart. I use Prestashop 1.7 installed from scratch. Please help me.... ContextErrorException in CustomerFormatter.php line 215: Warning: Invalid argument supplied for foreach()in CustomerFormatter.php line 215 at ErrorHandler->handleError('2', 'Invalid argument supplied for foreach()', '/home/aquamaew/www/boutique/classes/form/CustomerFormatter.php', '215', array('format' => array('id_customer' => object(FormField), 'id_gender' => object(FormField), 'firstname' => object(FormField), 'lastname' => object(FormField), 'email' => object(FormField), 'password' => object(FormField), 'birthday' => object(FormField), 'optin' => object(FormField), 'ps_emailsubscription_newsletter' => object(FormField)), 'genderField' => object(FormField), 'gender' => object(Gender), 'additionalCustomerFormFields' => array('ps_emailsubscription' => array(object(FormField)), 'an_staticblocks' => ''), 'additionnalFormFields' => '', 'moduleName' => 'an_staticblocks', 'formField' => object(FormField))) in CustomerFormatter.php line 215 at CustomerFormatterCore->getFormat() in AbstractForm.php line 153 at AbstractFormCore->fillWith(array('controller' => 'orderconfirmation', 'id_cart' => '30', 'id_module' => '58', 'id_order' => '22', 'key' => '13a4f870d4b8fb652eeee8234dc63ec5', 'check_url_warn' => 'yes', 'prod_info' => 'yes')) in OrderConfirmationController.php line 88 at OrderConfirmationControllerCore->initContent() in Controller.php line 201 at ControllerCore->run() in Dispatcher.php line 366 at DispatcherCore->dispatch() in index.php line 28 Link to comment Share on other sites More sharing options...
gunril Posted June 16, 2017 Share Posted June 16, 2017 I get exactly the same error, does anyone have a solution ?? Link to comment Share on other sites More sharing options...
al_saher250 Posted September 28, 2017 Share Posted September 28, 2017 the same problem, any solution?? Link to comment Share on other sites More sharing options...
El Patron Posted September 28, 2017 Share Posted September 28, 2017 this is not an 'error' but a 'warning'. the php script continues to execute. if you do not have feature issue, then you can disregard. NOTE: disable PrestaShop debug mode! you can pretty much ignore 'warnings' 'notices' unless there is fundamental issue with that area of your shop. also please post your PS versions as this makes it easier for community to search for bug related to your version. Link to comment Share on other sites More sharing options...
LuisMY Posted July 2, 2018 Share Posted July 2, 2018 On 22/2/2017 at 7:17 PM, cedschmidt said: I got the following error when I try to order my cart. I use Prestashop 1.7 installed from scratch. Please help me.... ContextErrorException in CustomerFormatter.php line 215: Warning: Invalid argument supplied for foreach() in CustomerFormatter.php line 215 at ErrorHandler->handleError('2', 'Invalid argument supplied for foreach()', '/home/aquamaew/www/boutique/classes/form/CustomerFormatter.php', '215', array('format' => array('id_customer' => object(FormField), 'id_gender' => object(FormField), 'firstname' => object(FormField), 'lastname' => object(FormField), 'email' => object(FormField), 'password' => object(FormField), 'birthday' => object(FormField), 'optin' => object(FormField), 'ps_emailsubscription_newsletter' => object(FormField)), 'genderField' => object(FormField), 'gender' => object(Gender), 'additionalCustomerFormFields' => array('ps_emailsubscription' => array(object(FormField)), 'an_staticblocks' => ''), 'additionnalFormFields' => '', 'moduleName' => 'an_staticblocks', 'formField' => object(FormField))) in CustomerFormatter.php line 215 at CustomerFormatterCore->getFormat() in AbstractForm.php line 153 at AbstractFormCore->fillWith(array('controller' => 'orderconfirmation', 'id_cart' => '30', 'id_module' => '58', 'id_order' => '22', 'key' => '13a4f870d4b8fb652eeee8234dc63ec5', 'check_url_warn' => 'yes', 'prod_info' => 'yes')) in OrderConfirmationController.php line 88 at OrderConfirmationControllerCore->initContent() in Controller.php line 201 at ControllerCore->run() in Dispatcher.php line 366 at DispatcherCore->dispatch() in index.php line 28 Hi, did you finally solve this issue? we have exactly the same problem on our Prestashop (1.7.2.0). Link to comment Share on other sites More sharing options...
Igbarah Posted July 27, 2020 Share Posted July 27, 2020 Hi, we have the same problem in our Numismatica Shop, can you solve it? 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