sublix Posted August 2, 2018 Share Posted August 2, 2018 When I upgrade a multistore from 1.7.3.4 to 1.7.4.2 I get inside the backend a 500 error. If I click under configure - shop parameters - product settings, this is a bug or am I missing a link somewhere? For the upgrade it just worked Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. Link to comment Share on other sites More sharing options...
ksaan Posted August 2, 2018 Share Posted August 2, 2018 An error 500 means something wrong happened on the server. To know what, you need to be able to see error messages.You can enable "see error messages" like this: https://zemez.io/prestashop/support/how-to/prestashop-1-7-enable-debug-mode-display-errors/ Link to comment Share on other sites More sharing options...
Andersen Posted August 2, 2018 Share Posted August 2, 2018 (edited) I have this issue I run the "product Settings" it was error as below problem INFO19:38:01 request Matched route "admin_product_preferences". DEBUG19:38:01 security Read existing security token from the session. DEBUG19:38:01 security User was reloaded from a user provider. DEBUG19:38:02 doctrine SELECT name FROM CO_module WHERE active = 1 INFO19:38:02 php User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". CRITICAL19:38:02 php Uncaught Exception: Expected argument of type "object, array or empty", "string" given CRITICAL19:38:02 request Uncaught PHP Exception Symfony\Component\Form\Exception\UnexpectedTypeException: "Expected argument of type "object, array or empty", "string" given" at /home/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php line 41 What is this problem meaning? Edited August 2, 2018 by Andersen (see edit history) Link to comment Share on other sites More sharing options...
sublix Posted August 3, 2018 Author Share Posted August 3, 2018 I run the debug mode on "product Settings" it was error as below Level Channel Message INFO09:27:17 request Matched route "admin_product_preferences". DEBUG09:27:17 security Read existing security token from the session. DEBUG09:27:17 security User was reloaded from a user provider. DEBUG09:27:17 doctrine SELECT name FROM pr_module WHERE active = 1 INFO09:27:17 php User Deprecated: Implementing "Symfony\Component\HttpKernel\DataCollector\DataCollectorInterface" without the "reset()" method is deprecated since Symfony 3.4 and will be unsupported in 4.0 for class "Csa\Bundle\GuzzleBundle\DataCollector\GuzzleCollector". CRITICAL09:27:17 php Uncaught Exception: Expected argument of type "object, array or empty", "string" given CRITICAL09:27:17 request Uncaught PHP Exception Symfony\Component\Form\Exception\UnexpectedTypeException: "Expected argument of type "object, array or empty", "string" given" at /home/user/domains/domainname/public_html/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php line 41 Link to comment Share on other sites More sharing options...
Mateo Posted September 6, 2018 Share Posted September 6, 2018 (edited) I have exactly also the same issue. "exception" => UnexpectedTypeException {#1978 ▼ #message: "Expected argument of type "object, array or empty", "string" given" #code: 0 #file: "/home/ .. ... . ...yPathMapper.php" #line: 41 trace: {▼ /home................/vendor/symfony/symfony/src/Symfony/Component/Form/Extension/Core/DataMapper/PropertyPathMapper.php:41 {▼ › if (!$empty && !is_array($data) && !is_object($data)) { › throw new UnexpectedTypeException($data, 'object, array or empty'); › } } Could anybody help ? Edited September 6, 2018 by Mateo corecting (see edit history) Link to comment Share on other sites More sharing options...
Chandler123 Posted September 15, 2018 Share Posted September 15, 2018 I'm seeing the same issue after migrating to 1.7.4.2, any idea on how to fix this issue? Link to comment Share on other sites More sharing options...
Andersen Posted September 23, 2018 Share Posted September 23, 2018 remove all of it, and install again, and it fixed. Link to comment Share on other sites More sharing options...
sublix Posted September 25, 2018 Author Share Posted September 25, 2018 Removing and reinstalling everything is not a solution, especially if you have been working for months to setup a new shop. The problem came after the update to 1.7.4.2. Link to comment Share on other sites More sharing options...
Jontee Posted September 28, 2018 Share Posted September 28, 2018 Any solution to this?? I am having the same issue… Thanks in advance, Link to comment Share on other sites More sharing options...
Mateo Posted October 1, 2018 Share Posted October 1, 2018 I steel waiting for new update or something. Now I have php 5.6 but if I tried changed PHP on 7.0, 7.1, and 7.2 then I had more problems. Link to comment Share on other sites More sharing options...
sublix Posted October 1, 2018 Author Share Posted October 1, 2018 We are now running on version 1.7.4.2 with php 7.1. in multistore and multi language mode. We already have many problems that we encountered and have circumvented them in other ways so that we still have a working store. (www.sublix.nl) A number of problems we are running into are: product settings(this tread) - linklist - not being able to remove product combinations - mailtemplate that are not saved after adjustments, - Duplicate products where the quantity is not included in de copy and some more, Just to name a few problems with this version in multistore mode. Link to comment Share on other sites More sharing options...
sublix Posted October 1, 2018 Author Share Posted October 1, 2018 Problem solved on my website. BO A solution by Peter Visser.Link to Artikel Peter Visser added a comment - 16/Jul/18 1:39 PM OK thanks. With this information i was able to fix the problem for my upgraded webshop. I fix the problem in the upgraded webshop by adding 2 sql lines. id_lang Id's must be the active language id's in the webshop. I have 4 languages so I have to insert 4 lines. The values in the configuration_lang table must be inserted in for the values PS_LABEL_IN_STOCK_PRODUCTS (id 279 in my store) and PS_LABEL_OOS_PRODUCTS_BOA (id 280 in my store). So I have to insert these two sql queries: INSERT INTO `ps_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES (279, 1, '', NULL), (279, 2, '', NULL), (279, 3, '', NULL), (279, 4, '', NULL); INSERT INTO `ps_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES (280, 1, '', NULL), (280, 2, '', NULL), (280, 3, '', NULL), (280, 4, '', NULL); In my case I added INSERT INTO `pr_configuration_lang` (`id_configuration`, `id_lang`, `value`, `date_upd`) VALUES (280, 1, '', NULL), (280, 2, '', NULL), (280, 3, '', NULL), (280, 4, '', NULL); Problem fixed.. Thanks 1 Link to comment Share on other sites More sharing options...
wzzy Posted October 2, 2018 Share Posted October 2, 2018 Hello, i have same problem but i can`t find in my database PS_LABEL_IN_STOCK_PRODUCTS or PS_LABEL_OOS_PRODUCTS_BOA. i instaled a fresh copy of 1.4.2 and still can`t find it Link to comment Share on other sites More sharing options...
Mateo Posted October 2, 2018 Share Posted October 2, 2018 (edited) Sorry for language. Rozwiązane: Trzeba w sql tabeli configuration_lang Wstawić (wstaw u góry) Przed wstawieniem sprawdź w tabeli configuration czy masz takie samo id i czy język pl w PS ma id 1 I wypełnij tabelę takie ustawienia dla 279 a potem jeszcze raz dla 280 taki efekt Po wpisaniu mamy takie dodane tabele I Preferencje > produkty działa. Dziękuję za pomoc koledze Rafał Sxxxx z grupy FB Prestashop polska Edited October 10, 2018 by Mateo add think (see edit history) 1 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