Last modified: 2014-06-23 16:07:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54800, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52800 - Error Code 500 when calling a not existing page (Plesk issue?)
Error Code 500 when calling a not existing page (Plesk issue?)
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.21.x
PC Windows 7
: Unprioritized major (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-13 14:39 UTC by alexanderduda
Modified: 2014-06-23 16:07 UTC (History)
1 user (show)

See Also:
Web browser: Google Chrome
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of Plesk with MediaWiki Version Number (171.41 KB, image/tiff)
2013-08-13 16:59 UTC, alexanderduda
Details
Code of showMissingArticles() (281.32 KB, image/tiff)
2013-08-13 17:03 UTC, alexanderduda
Details

Description alexanderduda 2013-08-13 14:39:51 UTC
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.
Comment 1 Andre Klapper 2013-08-13 16:08:13 UTC
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.
Comment 2 Bawolff (Brian Wolff) 2013-08-13 16:19:40 UTC
(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)
Comment 3 alexanderduda 2013-08-13 16:59:49 UTC
Created attachment 13091 [details]
Screenshot of Plesk with MediaWiki Version Number
Comment 4 alexanderduda 2013-08-13 17:03:09 UTC
Created attachment 13092 [details]
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.
Comment 5 alexanderduda 2013-08-13 17:04:04 UTC
I added two screenshots to give answers to your questions.
Comment 6 Bawolff (Brian Wolff) 2013-08-13 17:14:09 UTC
(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.
Comment 7 alexanderduda 2013-08-13 17:24:17 UTC
Ok then I will tell Plesk about this issue.
Comment 8 Andre Klapper 2013-08-14 09:36:46 UTC
Closing as INVALID for the time being as it seems that the issue might have been created by the webhosting provider.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links