caliprimelb Posted March 10, 2019 Share Posted March 10, 2019 I'm having issue loading Maintenance mode tab on General < Shop Parameters page. I'm getting ContextErrorException while handling Array to string conversion in vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php (line 73) . Can somebody help? Symfony\Component\Debug\Exception\ContextErrorException: Notice: Array to string conversion at vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php:73 at Symfony\Component\Form\ChoiceList\ArrayChoiceList->Symfony\Component\Form\ChoiceList\{closure}(array(false)) at call_user_func(object(Closure), array(false)) (vendor/symfony/symfony/src/Symfony/Component/Form/ChoiceList/ArrayChoiceList.php:158) at Symfony\Component\Form\ChoiceList\ArrayChoiceList->getValuesForChoices(array(array(false))) (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataTransformer/ChoiceToValueTransformer.php:32) at Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer->transform(array(false)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:1100) at Symfony\Component\Form\Form->normToView(array(false)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:352) at Symfony\Component\Form\Form->setData(array(false)) (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:49) at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(array('enable_shop' => array(false), 'maintenance_ip' => array(''), 'maintenance_text' => 'We are currently updating our shop and will be back really soon.&lt;br&gt;Thanks for your patience.'), object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:379) at Symfony\Component\Form\Form->setData(array('enable_shop' => array(false), 'maintenance_ip' => array(''), 'maintenance_text' => 'We are currently updating our shop and will be back really soon.&lt;br&gt;Thanks for your patience.')) (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:49) at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(array('general' => array('enable_shop' => array(false), 'maintenance_ip' => array(''), 'maintenance_text' => 'We are currently updating our shop and will be back really soon.&lt;br&gt;Thanks for your patience.')), object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:379) at Symfony\Component\Form\Form->setData(array('general' => array('enable_shop' => array(false), 'maintenance_ip' => array(''), 'maintenance_text' => 'We are currently updating our shop and will be back really soon.&lt;br&gt;Thanks for your patience.'))) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:483) at Symfony\Component\Form\Form->initialize() (vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php:226) at Symfony\Component\Form\FormBuilder->getForm() (src/Core/Form/FormHandler.php:114) at PrestaShop\PrestaShop\Core\Form\FormHandler->getForm() (src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/MaintenanceController.php:53) at PrestaShopBundle\Controller\Admin\Configure\ShopParameters\MaintenanceController->indexAction(object(Request), null) at call_user_func_array(array(object(MaintenanceController), 'indexAction'), array(object(Request), null)) (var/cache/dev/classes.php:4571) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (var/cache/dev/classes.php:4526) at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, false) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200) at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, false) (admin-1549586535/index.php:88) Link to comment Share on other sites More sharing options...
m_kola Posted June 11 Share Posted June 11 I know this is a very old thread but I currently have the same problem in Prestashop 8.2.1. Do you remember the solution to this problem? Link to comment Share on other sites More sharing options...
El Patron Posted June 14 Share Posted June 14 On 6/11/2025 at 1:22 PM, m_kola said: I know this is a very old thread but I currently have the same problem in Prestashop 8.2.1. Do you remember the solution to this problem? please post your error or is the same as post from six years ago? note: it's best to open a new post rather than post on a very old post. 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