Score:0

How to find the cause of "Uncaught PHP Exception"

ru flag

When I go to any page, the following error appears in the log:

[proxy_fcgi:error] [pid 20333] [client 172.18.0.6:52608] AH01071: Got error 'PHP message:
 Uncaught PHP Exception Symfony\\Component\\Routing\\Exception\\MethodNotAllowedException:
 "" at /var/www/html/web/core/lib/Drupal/Core/Routing/MethodFilter.php line 46', referer: 
 http://example.dk.ddev.site/da

At first I thought it had something to do with my new theme that I am about to make. But if I change theme, the error is still there. I am using Drupal v9.2.5.

How do I track down the cause of the error?

Jaypan avatar
de flag
It's a `MethodNotAllowedException`. I'd guess it refers to the request method, `GET`, `POST` etc, and that the route in question only allows certain request methods, and the user has accessed the route with an unallowed method.
Kevin avatar
in flag
Is /da a custom route? Start there.
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.