my-idlers icon indicating copy to clipboard operation
my-idlers copied to clipboard

Unsupported method GET for dashboard

Open Gamerboy59 opened this issue 3 years ago • 11 comments

Since v2.1.2 I'm getting the following error when trying to access https://domain.com/ (or /dashboard): The GET method is not supported for this route. Supported methods: HEAD. This error appears before being logged in (e.g. private tab) as well as after having logged in (/login is working).

Gamerboy59 avatar Jul 21 '22 16:07 Gamerboy59

Did you run

php artisan route:cache

php artisan cache:clear

After updating?

cp6 avatar Jul 22 '22 00:07 cp6

Yes, all steps of the upgrade instructions in the README.md have been executed. I just executed them again but this didn't fix it. Doing a completely new installation and just copying over the sqlite-db and the .env lead to the same result.

Gamerboy59 avatar Jul 22 '22 10:07 Gamerboy59

Ok, thanks. Interesting, these arent happening with MySQL ill switch over to Sqlite and have a look

cp6 avatar Jul 22 '22 13:07 cp6

Possibly fixed now: 20058cb9c9147105e5187fdccb9ea1e9bd55bd09 ?

Needed to define the keys as a string for Sqlite

cp6 avatar Jul 22 '22 13:07 cp6

This has fixed many issues but not: The GET method is not supported for this route. Supported methods: HEAD. on route ("/" or dashboard)

Gamerboy59 avatar Jul 22 '22 14:07 Gamerboy59

Searching that error up just brings commands:

php artisan optimize

and/or

php artisan cache:clear php artisan route:cache
php artisan config:cache
php artisan view:clear

cp6 avatar Jul 22 '22 14:07 cp6

What environment are you hosting it in?

cp6 avatar Jul 22 '22 14:07 cp6

It's a standard cPanel shared hosting. my-idlers used to work until the recent update. I just executed the optimize command but this didn't help.

Gamerboy59 avatar Jul 22 '22 14:07 Gamerboy59

Only the index / home page is effected. The pages for server, shared, resellers, settings etc. are working fine.

Gamerboy59 avatar Jul 22 '22 14:07 Gamerboy59

I noticed this issue is happening on new installations only. Upgrading my existing installation works fine. Maybe a bug at the dependencies?

Gamerboy59 avatar Jul 23 '22 13:07 Gamerboy59

@Gamerboy59 I'm really unsure, I cant reproduce it. Was thinking it was something to do with the shared hosting handling redirects weirdly.

cp6 avatar Jul 28 '22 13:07 cp6

I just found the solution. The optimization has an additional cache which needs to be wiped too. Now it's working.

php artisan optimize:clear
php artisan route:clear

Gamerboy59 avatar Apr 24 '23 23:04 Gamerboy59