Score:2

Why is MethodNotAllowedException thrown when an image is uploaded with CKEditor 5?

in flag

After updating Drupal to 9.5.3, I had this warning: Deprecated modules found: CKEditor.
So I upgraded from CKEditor to CKEditor 5 following this documentation.
After some setup on text formats, I made some tests creating a basic page.
When I try to insert one image using CKEditor button, the image appears and immediately I get an error message saying Couldn't upload file: enter image description here After validating the message, the picture is not there anymore.
Looking at Recent log messages, I found this error: Symfony\Component\Routing\Exception\MethodNotAllowedException: in Drupal\Core\Routing\MethodFilter->filter() (line 46 of /Users/efalzon/Sites/falzon/core/lib/Drupal/Core/Routing/MethodFilter.php). enter image description here I don't understand how it is relevant...
Any help?

id flag
Welcome to Drupal Answers! This seems to be more of a bug report than the kind of technical question that this site is set up to have answered.
apaderno avatar
us flag
Moving from the CKEditor module to the *CKEditor 5* module is not that simple. There are some settings to be changed.
Score:1
co flag

If you have selected any language in "Administration pages language" in user settings try to set "no preference". This works for me in Drupal 10.

enter image description here

Asme Just avatar
ru flag
This fixed it for me on Drupal 9.5 as well.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.