Jump to content

PS 1.7.5.0 Symfony\Component\Form\Exception\ UnexpectedTypeException


Recommended Posts

Hola

He actualizado una teinda en versión Ps 1.6.1.23 a PS 1.7.5.0

Solo me ha queado por sulocionar un error que aparece al pulsar sobre orders-> invoices

En ese momento aparece el siguiente error, por si alguien puede ayudarme, por favor.

Exception Logs 2 Stack Trace
Symfony\Component\Form\Exception\
UnexpectedTypeException
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php (line 41)
PropertyPathMapper->mapDataToForms('#IN', object(RecursiveIteratorIterator))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php (line 379)
Form->setData('#IN')
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php (line 49)
PropertyPathMapper->mapDataToForms(array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => '#IN', 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => '', 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false), object(RecursiveIteratorIterator))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php (line 379)
Form->setData(array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => '#IN', 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => '', 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false))
in vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php (line 49)
PropertyPathMapper->mapDataToForms(array('invoice_options' => array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => '#IN', 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => '', 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false)), object(RecursiveIteratorIterator))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php (line 379)
Form->setData(array('invoice_options' => array('enable_invoices' => true, 'enable_tax_breakdown' => false, 'enable_product_images' => false, 'invoice_prefix' => '#IN', 'add_current_year' => false, 'reset_number_annually' => false, 'year_position' => 0, 'invoice_number' => 0, 'legal_free_text' => '', 'footer_text' => '', 'invoice_model' => 'invoice', 'use_disk_cache' => false)))
in vendor/symfony/symfony/src/Symfony/Component/Form/Form.php (line 483)
Form->initialize()
in vendor/symfony/symfony/src/Symfony/Component/Form/FormBuilder.php (line 226)
FormBuilder->getForm()
in src/Core/Form/FormHandler.php (line 114)
FormHandler->getForm()
in src/PrestaShopBundle/Controller/Admin/Sell/Order/InvoicesController.php (line 57)
InvoicesController->indexAction(object(Request))
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 151)
HttpKernel->handleRaw(object(Request), 1)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
HttpKernel->handle(object(Request), 1, false)
in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)
Kernel->handle(object(Request), 1, false)
in adminlabs/index.php (line 88)

 

 

error.JPG

Link to comment
Share on other sites

  • 1 month later...

I have the same issue, I resolve it by delete configuration keys named PS_INVOICE_LEGAL_FREE_TEXT and PS_INVOICE_FREE_TEXT because the error is due to missing related translation in ps_configuration_lang. So before execute this queries, please make a backup of ps_configuration
 

DELETE FROM `ps_configuration` WHERE `name` = 'PS_INVOICE_LEGAL_FREE_TEXT';

DELETE FROM `ps_configuration` WHERE `name` = 'PS_INVOICE_FREE_TEXT';

After that the page work fine

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