Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P279
404 and 500 error pages
Active
Public
Actions
Authored by
greg
on Feb 10 2015, 9:21 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Release-Engineering-Team
Referenced Files
F39102: 404_and_500_error_pages
Feb 10 2015, 9:21 PM
2015-02-10 21:21:06 (UTC+0)
Subscribers
None
From an email by @bd808:
The production and beta clusters use custom Apache config and
supporting files to handle the various error pages. MediaWiki-Vagrant
not-so-helpfully in your case uses sightly different files. The
operations/mediawiki-config.git repostitory [0] holds the files you
will want to modify:
* mediawiki-config/404.html
* mediawiki-config/503.html
* mediawiki-config/w/404.php
* mediawiki-config/hhvm-fatal-error.php
* mediawiki-config/wmf-config/missing.php
I think that I have figured out a way that you can setup a working
copy of the files used in production to test under MediaWiki-Vagrant:
$ cd DIRECTORY_WHERE_YOU_INSTALLED_MWVAGRANT
$ git clone ssh://YOUR_GERRIT_SHELL_USERNAME@gerrit.wikimedia.org:29418/operations/mediawiki-config.git
$ vagrant ssh
$ cd /var/www
$ sudo ln -s /vagrant/mediawiki-config mediawiki-config
$ cd /srv
$ sudo ln -s /vagrant/mediawiki-config mediawiki
$ exit
This clones the mediawiki-config repo and symlinks it to the Apache
docroot directory inside the VM so that we can see the files served
from the VM's web server. Now you can hit the various error pages
directly:
* http://127.0.0.1:8080/mediawiki-config/404.html
* http://127.0.0.1:8080/mediawiki-config/503.html
* http://127.0.0.1:8080/mediawiki-config/w/404.php
* http://127.0.0.1:8080/mediawiki-config/hhvm-fatal-error.php
* http://127.0.0.1:8080/mediawiki-config/wmf-config/missing.php
The 404.html page is served up as a 404 response by the
secure.wikimedia.org vhost which acts as a legacy redirection domain
for URLs from before SSL was available on the individual domains.
The 503.html page is served up on 503 errors (Service unavailable)
which can have various causes.
The w/404.php page is served up as the 404 response for most projects.
The hhvm-fatal-error.php page is served up as the http 500 status
response by the application servers.
The wmf-config/missing.php page is kind of a meta 404 page that is
served when the URL requests a non-existing language for an existing
project. There are actually multiple output paths in this file and
triggering all of them in a test environment will take some trickery I
imagine.
There may be other 404/500 pages that I'm not finding while grepping
the Apache configs. I'm CC'ing Sam so he can give a sanity check on
that and my explanations are not complete lies. :)
[0]: https://github.com/wikimedia/operations-mediawiki-config
Event Timeline
greg
edited the content of this paste.
(Show Details)
Feb 10 2015, 9:21 PM
2015-02-10 21:21:06 (UTC+0)
greg
changed the title of this paste from untitled to
404 and 500 error pages
.
greg
updated the paste's language from
autodetect
to
autodetect
.
greg
added a project:
Release-Engineering-Team
.
Multichill
mentioned this in
T93017: Add skip option to claimit.py
.
Mar 17 2015, 9:36 PM
2015-03-17 21:36:28 (UTC+0)
kaldari
mentioned this in
T97566: Provide another way to surface usage instructions besides tacking them onto descriptions
.
Apr 29 2015, 7:20 PM
2015-04-29 19:20:25 (UTC+0)
Addshore
mentioned this in
T119074: Reproduce the data needed for Wikidata:Statistics pie chart in an automated way
.
Nov 19 2015, 2:27 PM
2015-11-19 14:27:09 (UTC+0)
Multichill
mentioned this in
T129037: Wikidata Query Service should provide a way to retrieve all items without a statement on a certain wiki
.
Mar 6 2016, 4:55 PM
2016-03-06 16:55:49 (UTC+0)
Smalyshev
mentioned this in
T133316: Prefixes converted to full URLs when I edit query explanation
.
Apr 21 2016, 5:48 PM
2016-04-21 17:48:01 (UTC+0)
Smalyshev
mentioned this in
T133317: [BUG] WDQS GUI auto completion doesn't work with unicode
.
Apr 21 2016, 8:26 PM
2016-04-21 20:26:38 (UTC+0)
Esc3300
mentioned this in
T139824: [feature request] allow selection by East and West corners on Wikidata Query Service wikibase:box
.
Jul 9 2016, 5:03 AM
2016-07-09 05:03:11 (UTC+0)
Esc3300
mentioned this in
T77972: [Story] Always show P248 (stated in), P854 (reference URL) and P813 (date of retrieval) when adding sources
.
Aug 20 2016, 3:30 PM
2016-08-20 15:30:33 (UTC+0)
Esc3300
mentioned this in
T132839: [RfC] Property suggester suggests human properties for non-human items
.
Nov 8 2016, 2:23 PM
2016-11-08 14:23:34 (UTC+0)
Esc3300
mentioned this in
T159106: Show P31 in the Wikidata search results
.
Feb 27 2017, 8:32 AM
2017-02-27 08:32:24 (UTC+0)
ChristianKl
mentioned this in
T166211: The request for deletion page should use the {{Q|...}} template for listing the items
.
May 24 2017, 9:45 AM
2017-05-24 09:45:54 (UTC+0)
abian
mentioned this in
T166379: Value type constraints show errors even when they shouldn't
.
May 28 2017, 7:38 PM
2017-05-28 19:38:18 (UTC+0)
Glorian_WD
mentioned this in
T164994: Enable wbgetsuggestions API to get recommended properties even if they have existed in an item
.
Jun 5 2017, 8:29 PM
2017-06-05 20:29:55 (UTC+0)
daniel
mentioned this in
T168434: Property suggester data treats P279 as classifying, while the PropertySuggester extension does not
.
Jun 20 2017, 5:28 PM
2017-06-20 17:28:10 (UTC+0)
Lucas_Werkmeister_WMDE
mentioned this in
T168867: Prepare tasks for usertesting input widgets: Setup test on Wiki
.
Jun 27 2017, 1:30 PM
2017-06-27 13:30:08 (UTC+0)
Esc3300
mentioned this in
T170422: Property suggester should offer P31/P279 for items that only have P641
.
Jul 12 2017, 2:18 PM
2017-07-12 14:18:06 (UTC+0)
ArthurPSmith
mentioned this in
T170614: constraint gadget always shows an error for P279 (subclass of) statements
.
Jul 13 2017, 6:08 PM
2017-07-13 18:08:58 (UTC+0)
gerritbot
mentioned this in
T169057: Change default value of $wgPropertySuggesterClassifyingPropertyIds to [ 31, 279 ]
.
Jul 21 2017, 4:18 PM
2017-07-21 16:18:34 (UTC+0)
gerritbot
mentioned this in
T169060: Set $wgPropertySuggesterClassifyingPropertyIds to [ 31, 279 ] for wikidata.org
.
Jul 21 2017, 4:42 PM
2017-07-21 16:42:19 (UTC+0)
Smalyshev
mentioned this in
T140131: Show text from Wikidata usage instructions property (P2559) when auto-suggesting properties or items
.
Jul 25 2017, 6:31 PM
2017-07-25 18:31:10 (UTC+0)
Bugreporter
mentioned this in
T169858: Add support for “instance or subclass of” relation (days: 1)
.
Aug 21 2017, 6:36 PM
2017-08-21 18:36:47 (UTC+0)
Ivan_A_Krestinin
mentioned this in
T141859: [Task] Contemporary constraint check
.
Aug 22 2017, 7:48 PM
2017-08-22 19:48:46 (UTC+0)
GoranSMilovanovic
mentioned this in
T181035: Run WDCM (non-productionized) updates
.
Dec 1 2017, 4:40 AM
2017-12-01 04:40:43 (UTC+0)
GoranSMilovanovic
mentioned this in
T174896: WDCM Structure Dashboard: Refining the WDCM Taxonomy
.
Dec 5 2017, 10:06 AM
2017-12-05 10:06:58 (UTC+0)
RolandUnger
mentioned this in
T182147: more convenience functions for Lua
.
Mar 15 2018, 12:39 PM
2018-03-15 12:39:42 (UTC+0)
•
RazShuty
mentioned this in
T193134: Syncing local properties with properties from another Wikibase (Wikidata by default)
.
Apr 26 2018, 10:45 AM
2018-04-26 10:45:48 (UTC+0)
Pintoch
mentioned this in
T194194: Add possibility to check constraints on unsaved statements
.
May 15 2018, 2:16 PM
2018-05-15 14:16:47 (UTC+0)
MichaelSchoenitzer
mentioned this in
T179879: Provide a 5-minute timeout in WDQS for trusted users using OAuth
.
Jun 4 2018, 10:49 PM
2018-06-04 22:49:05 (UTC+0)
•
Jonas
mentioned this in
T198228: Investigate improvements for item suggester in property values
.
Jun 26 2018, 4:21 PM
2018-06-26 16:21:47 (UTC+0)
Pintoch
mentioned this in
T204024: Store WikibaseQualityConstraint check data in persistent storage instead of in the cache
.
Sep 19 2018, 8:03 AM
2018-09-19 08:03:31 (UTC+0)
Pietro
mentioned this in
T206539: Query timeout when using double path queries, but not when using path + subquery
.
Oct 9 2018, 1:56 PM
2018-10-09 13:56:37 (UTC+0)
Salgo60
mentioned this in
T199798: Identify modelling issues and design solutions in Wikdata/Wikipedia for Församlingar
.
Oct 17 2018, 6:56 AM
2018-10-17 06:56:16 (UTC+0)
GoranSMilovanovic
mentioned this in
T204440: analyze and visualize the identifier landscape of Wikidata
.
Apr 19 2019, 9:58 PM
2019-04-19 21:58:42 (UTC+0)
Multichill
mentioned this in
T230569: General SDC data modelling session
.
Sep 29 2019, 4:39 PM
2019-09-29 16:39:46 (UTC+0)
Jsamwrites
mentioned this in
T240726: Timeout error on InteGraality
.
Dec 13 2019, 9:58 PM
2019-12-13 21:58:35 (UTC+0)
Lea_Lacroix_WMDE
mentioned this in
T247923: Add more topics to the Wikidata Datamodel Statements Grafana board
.
Mar 18 2020, 8:21 AM
2020-03-18 08:21:13 (UTC+0)
Alicezou26
mentioned this in
T257876: redirected Q & deleted P Not Consistant in the json dump and web front end
.
Jul 13 2020, 9:32 PM
2020-07-13 21:32:13 (UTC+0)
matthiasmullie
mentioned this in
T258055: [L] [SPIKE] Investigate traversing entities tree to include more entities with more detail
.
Jul 24 2020, 2:31 PM
2020-07-24 14:31:21 (UTC+0)
Ladsgroup
mentioned this in
T272168: Result error: Incorrect display of the query result
.
Jan 15 2021, 6:37 PM
2021-01-15 18:37:28 (UTC+0)
Ladsgroup
mentioned this in
T272140: Duplicates in the result set
.
Jan 18 2021, 7:46 PM
2021-01-18 19:46:04 (UTC+0)
AKhatun_WMF
mentioned this in
T282129: Test triple-analysis functions over a large dataset with Spark
.
May 19 2021, 11:15 AM
2021-05-19 11:15:46 (UTC+0)
GoranSMilovanovic
mentioned this in
T285458: Generate inputs for 1st sensemaking session about ORES quality score distributions across the Wikidata classes
.
Jun 24 2021, 9:42 AM
2021-06-24 09:42:11 (UTC+0)
JAllemandou
mentioned this in
T291205: Analysis: Property usage by items' P31
.
Sep 16 2021, 4:53 PM
2021-09-16 16:53:31 (UTC+0)
So9q
mentioned this in
T290839: Evaluate a double backend strategy for WDQS
.
Sep 27 2021, 8:10 PM
2021-09-27 20:10:02 (UTC+0)
Manuel
mentioned this in
T295275: Dedicated section on Wikidata Item and Property pages for classifying Properties
.
Nov 8 2021, 10:41 AM
2021-11-08 10:41:02 (UTC+0)
hashar
mentioned this in
T336952: Wikibase\DataModel\Services\Lookup\ReferencedEntityIdLookupException: Referenced entity id lookup failed. Tried to find a referenced entity out of Q16334295 linked from Q13406463 via P279
.
May 19 2023, 9:39 AM
2023-05-19 09:39:22 (UTC+0)
daniel
mentioned this in
rEPSe6f5b197ad14: Add P279 to PropertySuggesterClassifyingPropertyIds per default.
.
May 25 2023, 6:46 PM
2023-05-25 18:46:09 (UTC+0)
Manuel
mentioned this in
T342123: [Analytics] Find out the size of the Q13442814 (scholarly article) subgraph (including instances of subclasses)
.
Jul 24 2023, 4:02 PM
2023-07-24 16:02:32 (UTC+0)
ROdonnell-WMF
mentioned this in
T340032: [Investigation] Entity type using Wikidata
.
Aug 23 2023, 12:23 PM
2023-08-23 12:23:55 (UTC+0)
Log In to Comment