FriendsOfAkeneo / ExtendedAttributeTypeBundle

Extra attribute types for Akeneo PIM
23 stars 19 forks source link

Attempted to call an undefined method named "setTextCollection" #35

Closed tsolenthaler closed 7 years ago

tsolenthaler commented 7 years ago

I'm reporting a Bug

Hi. I test your bundle on a test server, so I can use this on the live server.

But I get the following error:

[2017-08-18 04:58:27] request.INFO: Matched route "pim_enrich_product_rest_post". {"route_parameters":{"_controller":"pim_enrich.controller.rest.product:postAction","_format":"json","id":"2","_route":"pim_enrich_product_rest_post"},"request_uri":"http://35.195.230.254/enrich/product/rest/2"} [] [2017-08-18 04:58:27] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "setTextCollection" of class "Pim\Component\Catalog\Model\ProductValue"." at /opt/bitnami/apps/akeneo/htdocs/vendor/akeneo/pim-community-dev/src/Pim/Component/Catalog/Model/AbstractProductValue.php line 285 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\UndefinedMethodException(code: 0): Attempted to call an undefined method named \"setTextCollection\" of class \"Pim\\Component\\Catalog\\Model\\ProductValue\". at /opt/bitnami/apps/akeneo/htdocs/vendor/akeneo/pim-community-dev/src/Pim/Component/Catalog/Model/AbstractProductValue.php:285)"} []

akeneo-pim-system-info_2017-08-18_05_10.txt

Can you help me to fix this? thx

jmleroux commented 7 years ago

Hello @tsolenthaler , did you override the product value like specified in the documentation here