geraldkoo Posted August 23, 2019 Share Posted August 23, 2019 Hi there I got this error and i am not sure how to resolve please help thanks, i am using prestashop 1.7.5.2 Describe the bug Error 500 when I click on the invoice item in the backend menu. To Reproduce Steps to reproduce the behavior: in backend Click on invoice item menu: /index.php/sell/orders/invoices/ Symfony\Component\Form\Exception\UnexpectedTypeException: Expected argument of type "object, array or empty", "string" given at vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:41 at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms('', object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:379) at Symfony\Component\Form\Form->setData('') (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:49) at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => array('#KING', '#KING', '#KING', '#KING'), 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => null, 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false), object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:379) at Symfony\Component\Form\Form->setData(array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => array('#KING', '#KING', '#KING', '#KING'), 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => null, 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false)) (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:49) at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(array('invoice_options' => array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => array('#KING', '#KING', '#KING', '#KING'), 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => null, 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false)), object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:379) at Symfony\Component\Form\Form->setData(array('invoice_options' => array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => array('#KING', '#KING', '#KING', '#KING'), 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => null, 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false))) (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/Sell/Order/InvoicesController.php:57) at PrestaShopBundle\Controller\Admin\Sell\Order\InvoicesController->indexAction(object(Request)) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:151) at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1) (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68) 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) (adminking2013/index.php:88) 1 Link to comment Share on other sites More sharing options...
S-Corp Posted March 2, 2021 Share Posted March 2, 2021 Same Problem...did you fixed it? Link to comment Share on other sites More sharing options...
maria.alberola Posted November 7, 2023 Share Posted November 7, 2023 Same problem... please can you tell me how dis you fixed it? Thanks 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