Jump to content

multistore upgrade 1.7.3.4 to 1.7.4.2 product settings 500 error


sublix

Recommended Posts

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

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 by Andersen (see edit history)
Link to comment
Share on other sites

 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

  • 1 month later...

I have exactly also the same issue.

image.thumb.png.5a2ba7ae941afbb42a581ad14c54214f.png

 

"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 by Mateo
corecting (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

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

Problem solved on my website. BO

A solution by Peter Visser.Link to Artikel

MARK-APPPeter 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 

 

  • Thanks 1
Link to comment
Share on other sites

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

image.thumb.png.1e9a41fd61b9d4262a646b0ee88dfb35.png

i czy język pl w PS ma id 1

image.png.d8c6e358afced3ee0589f156ec808601.png

I wypełnij tabelę

image.png.a0ffa82ac16b729cb704681cb1ca3092.png

takie ustawienia dla 279  a potem jeszcze raz dla  280

image.png.ea4b12cd1b90a793794121268d1d556f.png

taki efekt

image.thumb.png.45b1e85347d0380ea9fe7bf56f3259eb.png

 

Po wpisaniu  mamy takie dodane tabele

image.png.21da7eb92d52f32988987d1bd98f9e0f.png

I Preferencje > produkty działa.

Dziękuję za pomoc koledze Rafał Sxxxx z grupy FB Prestashop polska

Edited by Mateo
add think (see edit history)
  • Like 1
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...