Jump to content

Maintenance Mode Error Upgrade 1.7.5.1 from 1.6


Recommended Posts

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? 

 

image.thumb.png.2b065f8885760ffa0165a8f0abd5e852.png

image.thumb.png.df17f593243c4bfd4062f25e087f6855.png

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.&amp;lt;br&amp;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.&amp;lt;br&amp;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.&amp;lt;br&amp;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.&amp;lt;br&amp;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

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