akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
954 stars 514 forks source link

Simple select attributes not loading values #5141

Closed navyon closed 7 years ago

navyon commented 7 years ago

After updating from 1.5.8 to 1.5.9 , I have started to have an issue with the simple select attributes, all the values are in the database but yet, they are not loaded. The browser shows some JS errors. after running the command below. the error persist. could you assist me with this. also below is one line from the log.

rm -rf web/js/routes.js && app/console fos:js-routing:dump --target="web/js/routes.js" --env=prod

[2016-10-19 16:19:21] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /configuration/attribute_option/attribute/PCS_in_Mastercarton/option" (from "http://pim")" at /home/Akeneo/pim/app/cache/prod/classes.php line 2881 {"exception":"[object](Symfony\Component\HttpKernel\Exception\NotFoundHttpException: No route found for "GET /configuration/attribute_option/attribute/PCS_in_Mastercarton/option" %28from "http://pim/"%29 at /home/Akeneo/pim/app/cache/prod/classes.php:2881, Symfony\Component\Routing\Exception\ResourceNotFoundException: at /home/Akeneo/pim/app/cache/prod/appProdUrlMatcher.php:1780)"} []

fabienlem commented 7 years ago

Hello @navyon,

I tried to reproduce but it worked fine for me.

Can you try to execute the following commands?

cd /your/pim/path/ rm -rf app/cache/* ./web/bundles/* ./web/css/* ./web/js/* php app/console --env=prod pim:installer:assets php app/console --env=prod cache:clear php app/console --env=prod cache:warmup

And then clear your browser's cache.

Thank you in advance for your feedback.

Regards

navyon commented 7 years ago

Hello @fabienlem,

Thanks for the reply, after executing those commands I got a http 500 and the pim has stop loading. is there a way that I can restart it ?

Thanks

navyon commented 7 years ago

Hi @fabienlem,

In the end it was a permission issue on the cache folder, I changed the permissions then ran the commands you gave, attributes loading again. Thanks