Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported method GET for dashboard #57

Closed
Gamerboy59 opened this issue Jul 21, 2022 · 12 comments
Closed

Unsupported method GET for dashboard #57

Gamerboy59 opened this issue Jul 21, 2022 · 12 comments

Comments

@Gamerboy59
Copy link
Contributor

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).

@cp6
Copy link
Owner

cp6 commented Jul 22, 2022

Did you run

php artisan route:cache

php artisan cache:clear

After updating?

@Gamerboy59
Copy link
Contributor Author

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.

@cp6
Copy link
Owner

cp6 commented Jul 22, 2022

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

@cp6
Copy link
Owner

cp6 commented Jul 22, 2022

Possibly fixed now: 20058cb9c9147105e5187fdccb9ea1e9bd55bd09 ?

Needed to define the keys as a string for Sqlite

@Gamerboy59
Copy link
Contributor Author

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

@cp6
Copy link
Owner

cp6 commented Jul 22, 2022

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
Copy link
Owner

cp6 commented Jul 22, 2022

What environment are you hosting it in?

@Gamerboy59
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@Gamerboy59
Copy link
Contributor Author

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

@cp6
Copy link
Owner

cp6 commented Jul 28, 2022

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

@Gamerboy59
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants