Closed dimitri-koenig closed 7 years ago
Hi @dimitri-koenig,
Thanks for notice that. If you want to use the HttpCache you need to add this line in the app.php file Request::enableHttpMethodParameterOverride();
You can also check this PR as an example: https://github.com/akeneo/pim-community-dev/pull/4945/files
Thanks a lot,
Have a nice day.
Thanks, that fixes it.
Why isn't this included in the app.php file, commented/deactivated like all those other caching lines? Any idea?
@dimitri-koenig you're right this line was missing in the app.php file, in fact when we updated from sf2.3 to 2.7 we forgot to update the app.php file.
We will fix this thanks for the feedback.
Have a nice day.
Akeneo Version: latest 1.5.x
Steps to reproduce:
Frontend Message: The element could not be deleted
Log Message:
request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: "No route found for "POST /configuration/family/8/attribute/113/remove": Method Not Allowed (Allow: DELETE)" at /...../app/cache/prod/classes.php line 2884 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException: No route found for \"POST /configuration/family/8/attribute/113/remove\": Method Not Allowed (Allow: DELETE) at /...../app/cache/prod/classes.php:2884, Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException: at /...../app/cache/prod/appProdUrlMatcher.php:2339)"} []
request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException: "No route found for "POST /configuration/attribute-group/9/attribute/6/remove": Method Not Allowed (Allow: DELETE)" at /...../app/cache/prod/classes.php line 2884 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\MethodNotAllowedHttpException: No route found for \"POST /configuration/attribute-group/9/attribute/6/remove\": Method Not Allowed (Allow: DELETE) at /...../app/cache/prod/classes.php:2884, Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException: at /...../app/cache/prod/appProdUrlMatcher.php:2339)"} []
Deactivating apc caching solves this problem, but of course has an impact on performance.