Flying Dutchman Posted July 13, 2018 Share Posted July 13, 2018 Hello, I just updated my prestahop installation from 1.7.3 to 1.7.4, using "autoupgrade-v4.0.0-beta.3.zip". Everything seems to work fine, except from some labels on top of each other in the BackOffice. When I try to open "preferences -> article" (Backoffice/index.php/configure/shop/product_preferences), I get an error: "Expected argument of type "object, array or empty", "string" given" I added the stacktrace as file. How can I fix this error? stacktrace.txt Link to comment Share on other sites More sharing options...
Flying Dutchman Posted July 18, 2018 Author Share Posted July 18, 2018 (edited) I updated my prestashop to 1.7.4.1. The error still persists. Stacktrace: 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('In Stock', object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:383) at Symfony\Component\Form\Form->setData('In Stock') (vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:49) at Symfony\Component\Form\Extension\Core\DataMapper\PropertyPathMapper->mapDataToForms(array('allow_ordering_oos' => false, 'stock_management' => true, 'in_stock_label' => 'In Stock', 'oos_allowed_backorders' => 'Product available for orders', 'oos_denied_backorders' => array('Nicht auf Lager'), 'delivery_time' => array(), 'oos_delivery_time' => array(), 'pack_stock_management' => '0'), object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:383) at Symfony\Component\Form\Form->setData(array('allow_ordering_oos' => false, 'stock_management' => true, 'in_stock_label' => 'In Stock', 'oos_allowed_backorders' => 'Product available for orders', 'oos_denied_backorders' => array('Nicht auf Lager'), 'delivery_time' => array(), 'oos_delivery_time' => array(), 'pack_stock_management' => '0')) (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('catalog_mode' => false, 'new_days_number' => '1000', 'short_description_limit' => '800', 'quantity_discount' => null, 'force_friendly_url' => false, 'default_status' => false), 'pagination' => array('products_per_page' => '12', 'default_order_by' => '4', 'default_order_way' => '0'), 'page' => array('display_quantities' => true, 'display_last_quantities' => '3', 'display_unavailable_attributes' => true, 'allow_add_variant_to_cart_from_listing' => true, 'attribute_anchor_separator' => '-', 'display_discount_price' => false), 'stock' => array('allow_ordering_oos' => false, 'stock_management' => true, 'in_stock_label' => 'In Stock', 'oos_allowed_backorders' => 'Product available for orders', 'oos_denied_backorders' => array('Nicht auf Lager'), 'delivery_time' => array(), 'oos_delivery_time' => array(), 'pack_stock_management' => '0')), object(RecursiveIteratorIterator)) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:383) at Symfony\Component\Form\Form->setData(array('general' => array('catalog_mode' => false, 'new_days_number' => '1000', 'short_description_limit' => '800', 'quantity_discount' => null, 'force_friendly_url' => false, 'default_status' => false), 'pagination' => array('products_per_page' => '12', 'default_order_by' => '4', 'default_order_way' => '0'), 'page' => array('display_quantities' => true, 'display_last_quantities' => '3', 'display_unavailable_attributes' => true, 'allow_add_variant_to_cart_from_listing' => true, 'attribute_anchor_separator' => '-', 'display_discount_price' => false), 'stock' => array('allow_ordering_oos' => false, 'stock_management' => true, 'in_stock_label' => 'In Stock', 'oos_allowed_backorders' => 'Product available for orders', 'oos_denied_backorders' => array('Nicht auf Lager'), 'delivery_time' => array(), 'oos_delivery_time' => array(), 'pack_stock_management' => '0'))) (vendor/symfony/symfony/src/Symfony/Component/Form/Form.php:487) 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:95) at PrestaShop\PrestaShop\Core\Form\FormHandler->getForm() (src/PrestaShopBundle/Controller/Admin/Configure/ShopParameters/ProductPreferencesController.php:66) at PrestaShopBundle\Controller\Admin\Configure\ShopParameters\ProductPreferencesController->indexAction(object(Request)) at call_user_func_array(array(object(ProductPreferencesController), 'indexAction'), array(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) (Backoffice/index.php:88) Edited July 18, 2018 by Flying Dutchman (see edit history) Link to comment Share on other sites More sharing options...
ksaan Posted July 19, 2018 Share Posted July 19, 2018 Hello, You can create a ticket to prestashop bug reporting tool http://forge.prestashop.com/ ? Link to comment Share on other sites More sharing options...
mic69 Posted July 23, 2018 Share Posted July 23, 2018 Same here, also after updating last friday from 1.7.3 to 1.7.4 by using autoupgrade-v4.0.0 beta. Everything works smoothly execpt the configure/shop/product_preferences which gives a general 500 error Link to comment Share on other sites More sharing options...
Rolcsi Posted July 25, 2018 Share Posted July 25, 2018 same issue... Link to comment Share on other sites More sharing options...
mic69 Posted July 25, 2018 Share Posted July 25, 2018 Sollution is here: http://forge.prestashop.com/browse/BOOM-5982 Works great 1 Link to comment Share on other sites More sharing options...
jpg_es Posted August 9, 2018 Share Posted August 9, 2018 Thank you very much Link to comment Share on other sites More sharing options...
MEG Venture Posted December 9, 2020 Share Posted December 9, 2020 On 7/25/2018 at 3:50 PM, mic69 said: Sollution is here: http://forge.prestashop.com/browse/BOOM-5982 Works great This link needs autehentication. Not reachable. Link to comment Share on other sites More sharing options...
Romeo.Tran Posted June 17, 2021 Share Posted June 17, 2021 Please paste content in BOOM-5982 i can not read, thank you 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