Error 405 Method not allowed

100 views
Skip to first unread message

Didier Gasser-Morlay

unread,
Jun 5, 2019, 5:12:09 PM6/5/19
to Fat-Free Framework
I have a very weird problem with routing :  all my routes are in a config file which has 115 lines

(these are the first few lines)
[routes]
GET /testogeane/@server=emailsManager->testEmailOgeane
GET /clear=BaseController->clear
GET|POST /search=search->searchProducts
GET /gettree=Ajax->gettree

GET /=Main->renderAdmin
....

but this route : 
GET /fragments/@parentid=fragments->list

if typed within the first 20 lines of the config file, works perfectly, (ie list is called, data is returned ...) 

if at it's normal position (line 94 of my config file) I get an Error 405 Method not allowed

note that routes after this line are working fine, so it does not seem to be a problem with config file too large

Didier Gasser-Morlay

unread,
Jun 5, 2019, 5:26:59 PM6/5/19
to Fat-Free Framework
After fighting with this I found that there was a dodgy character at the end of the previous line (which I believed to be empty), once deleted it works fine.
Reply all
Reply to author
Forward
0 new messages