سؤال

I have a following issue: if I try to delete something in sonata admin in prod enviroment after confirmation screen and pressing "yes, delete" nothing happens. In dev everything works fine. Could it be a caching issue? Any settings I could try?

هل كانت مفيدة؟

المحلول

The problem is in the code that detecting the request method. It should detect DELETE method but it detects all delete operations as POST method instead.

Add this line of code in your app.php to fix this:

Request::enableHttpMethodParameterOverride();

it can be after $request = Request::createFromGlobals();

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top