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

FarmConfigLoader should display 404 on nonexistent URLs #399

Open
hexmode opened this issue May 4, 2024 · 0 comments
Open

FarmConfigLoader should display 404 on nonexistent URLs #399

hexmode opened this issue May 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hexmode
Copy link
Contributor

hexmode commented May 4, 2024

The 404 handler can end up with a white page. It wasn't until I enabled display of exceptions that I saw:


Fatal error: Uncaught Exception: Error: staging.icannwiki.org/Special:Version does not exist in urlToWikiIdMap. in /var/www/mediawiki/w/FarmConfigLoader.php:109
Stack trace:
#0 /var/www/mediawiki/w/CanastaDefaultSettings.php(97): require_once()
#1 /var/www/mediawiki/w/LocalSettings.php(8): require_once('...')
#2 /var/www/mediawiki/w/includes/Setup.php(218): require_once('...')
#3 /var/www/mediawiki/w/includes/WebStart.php(86): require_once('...')
#4 /var/www/mediawiki/w/index.php(44): require('...')
#5 {main}
thrown in /var/www/mediawiki/w/FarmConfigLoader.php on line 109

@hexmode hexmode added the bug Something isn't working label May 4, 2024
@yaronkoren yaronkoren changed the title FarmConfigLoader should not end up with white page FarmConfigLoader should display 404 on nonexistent URLs May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant