Hey everyone,
I ran into a very strange issue (the first time I run into it, even though I've installed and maintained a lot of moodle installations before).
Error:The requested URL /admin/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
What I did:
- I confirmed the file exists
- I triple checked the permissions and owners of the file and the entire moodle directory. All good.
- I replaced the file with an original one from the moodle repo
- Tried upgrading by pulling the latest weekly release (4.4.3 to 4.4.5). Didn't work so I reverted back
- Cleared the cache (CLI)
- Tried to perform the upgrade via the CLI
- Eventually I undid everything above by just restoring a week old backup... turns out the issue still exists. (note that I did no admin tasks the past 3 weeks at least on the platform)
To reproduce the issue:
- I log in as an admin
- I get redirected to this page: https://ibb.co/mgjg1M1
- The URL in this page is: /admin/index.php , (which is weird because in the next step it says the file is not found)
- I click continue, then get the error mentioned above: https://ibb.co/5X6V6rz9
- The strange thing about this page is the password field. I've never encountered something like this before. I'm not sure what it is and how it got there.
Any help troubleshooting this issue is highly appreciated. And please let me know if I missed something or if more info is required.
Using moodle 4.3.3.