Page MenuHomePhabricator

Error Code 500 when calling a not existing page (Plesk issue?)
Closed, InvalidPublic

Description

Author: alexanderduda

Description:
When calling a not existing page in version 1.21.1 it comes with an internal server error (Error Code 500).

The bug is in the Articles.php file in the function showMissingArticle(). To fix the problem the $wgRequest-variable has to be declared as global.


Version: 1.21.x
Severity: major
OS: Windows 7
Platform: PC

Details

Reference
bz52800

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:11 AM
bzimport set Reference to bz52800.
bzimport added a subscriber: Unknown Object (MLST).

I'm aware of some 1.21 installations where this is not the case, hence slightly surprised.

Looking at https://git.wikimedia.org/blob/mediawiki%2Fcore.git/41acf893f61e0e56e0becbac56c336b03d81096c/includes%2FArticle.php#L1158 I fail to see any wgRequest around there.

(In reply to comment #0)

When calling a not existing page in version 1.21.1 it comes with an internal
server error (Error Code 500).

Are you sure you have mediawiki 1.21.1? $wgRequest global is generally no longer used, and should not be mentioned anywhere in that file. (It hasn't been in that file since mediawiki 1.20)

alexanderduda wrote:

Screenshot of Plesk with MediaWiki Version Number

Attached:

alexanderduda wrote:

Code of showMissingArticles()

The call of $wgRequest->response() on line 1141 is the reason for the 500 error code.

I added $wgRequest on line 1091 to fix this error.

Attached:

alexanderduda wrote:

I added two screenshots to give answers to your questions.

(In reply to comment #5)

I added two screenshots to give answers to your questions.

That's not our code. Plesk must of added it. As far as I can tell, at no point did that code appear in our repository.

alexanderduda wrote:

Ok then I will tell Plesk about this issue.

Closing as INVALID for the time being as it seems that the issue might have been created by the webhosting provider.