Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem after creating a new table attribute #40

Open
KryptoKnight opened this issue Oct 10, 2019 · 7 comments
Open

Problem after creating a new table attribute #40

KryptoKnight opened this issue Oct 10, 2019 · 7 comments
Assignees

Comments

@KryptoKnight
Copy link

Hello,

First of all let me say thank you for taking the time to release and maintain this bundle.

Secondly, I'd like to outline the problem I'm having...

I recently installed a fresh version of Akeneo (3.2.12 CE) and then on top of this installation I installed the akeneo-table-attribute-bundle - visually everything looked good.

I then created by first table attribute and clicked save to see the "columns" option display... this also looked good.

The issues came when I started to add column values - upon clicking save I see a red alert icon which has a tooltop saying "500". and in the logs I have the following error:

[2019-10-10 15:42:55] request.INFO: Matched route "pim_enrich_attributeoption_create". {"route":"pim_enrich_attributeoption_create","route_parameters":{"_controller":"pim_enrich.controller.attribute_option:createAction","_format":"json","attributeId":"11","_route":"pim_enrich_attributeoption_create"},"request_uri":"https://pim.example.com/configuration/attribute-option/11","method":"POST"} [] [2019-10-10 15:42:55] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function setValue() on null" at /var/www/pim.example.com/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php line 167 {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function setValue() on null at /var/www/pim.example.com/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php:167)"} []

Any help or pointers would be appreciated.

Many Thanks,

@scivray
Copy link

scivray commented Oct 25, 2019

Hello,
Nearly same error with version pim v3.0.49.
I create a new attribute but when I click on Columns tab I got error 500 with this in logs :

[2019-10-25 14:48:48] request.INFO: Matched route "pim_enrich_attributeoption_index". {"route":"pim_enrich_attributeoption_index","route_parameters":{"_controller":"pim_enrich.controller.attribute_option:indexAction","_format":"json","attributeId":"207","_route":"pim_enrich_attributeoption_index"},"request_uri":"https://mycompany:port/configuration/attribute-option/207","method":"GET"} []
[2019-10-25 14:48:48] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalThrowableError: "Call to a member function setValue() on null" at /srv/app/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php line 168 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Call to a member function setValue() on null at /srv/app/vendor/doctrine/orm/lib/Doctrine/ORM/PersistentCollection.php:168)"} []
[2019-10-25 14:48:48] request.CRITICAL: Exception thrown when handling an exception (RuntimeException: Failed to start the session because headers have already been sent by "/srv/app/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php" at line 1773. at /srv/app/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php line 141) {"exception":"[object] (RuntimeException(code: 0): Failed to start the session because headers have already been sent by "/srv/app/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php" at line 1773. at /srv/app/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php:141)"} []

@allanhansen-vaimo
Copy link

Same issue as @scivray.

Running Akeneo CE v. 3.2.31. Fresh install of both Akeneo CE and Flagbit table attribute.

@amansilla amansilla self-assigned this Jan 20, 2020
@allanhansen-vaimo
Copy link

@amansilla any updates on this?

Same issue as @scivray.

Running Akeneo CE v. 3.2.31. Fresh install of both Akeneo CE and Flagbit table attribute.

@onlyapproved
Copy link

We are having the same issue as @scivray and @allanhansen-vaimo

@onlyapproved
Copy link

onlyapproved commented Feb 17, 2020

@allanhansen-vaimo @scivray -> I found the issue being the apache service after installing the module. It probably affects all who are using Akeneo from a Bitnami image.

Restart apache service and php-fpm, and then it should be all ok.

@flagbird
Copy link
Collaborator

flagbird commented Mar 2, 2020

@scivray @allanhansen-vaimo Can you verify that this issue depends on the environment?

@allanhansen-vaimo
Copy link

@scivray @allanhansen-vaimo Can you verify that this issue depends on the environment?

Yes, but it isn't related to Bitnami, it is also necessary to restart Apache and PHP-FPM containers in the Docker env. that Akeneo supplies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants