Page MenuHomePhabricator

HTTP 500 Server Error: Argument 1 passed to ContentHandler::getContentText() must implement interface Content, boolean given
Closed, ResolvedPublic

Description

Author: ka.hing.chan

Description:
In version 1.21.1, the special pages get an Server Error HTTP Error 500.


Version: REL1_21-branch
Severity: normal

Details

Reference
bz49774

Event Timeline

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

Hi Linux4ever,
unfortunately this report is not very useful because it does not describe the problem well. If you have time and can still reproduce the problem, please read https://www.mediawiki.org/wiki/How_to_report_a_bug and add a more useful description to this report.

ka.hing.chan wrote:

I was looking at the code in AccessControl.php. Seems it is using Article::fetchContent which has been deprecated in version 1.21. I am wondering if that would cause AccessControl not working?

For the HTTP Error, can you please check the server log and paste the corresponding error?

ka.hing.chan wrote:

[Mon Jun 17 13:06:12 2013] [error] [client 172.31.38.160] PHP Catchable fatal error: Argument 1 passed to ContentHandler::getContentText() must implement interface Content, boolean given, called in /u01/www/html/wiki/includes/Article.php on line 388 and defined in /u01/www/html/wiki/includes/content/ContentHandler.php on line 95, referer: http://ltapp06/wiki/index.php/CityWiki

Yes - bug 43727 is the very same bug in a different extension.

I just posted the diff link on the other bug, if anyone is interested.

kapica wrote:

Yes, I know about this issue - on the site for AccessControl in the Mediawiki web is notice about it. But I now was not time to fix this problem.

kapica wrote:

In the latest version of the extension 2.3 should be this problem solved.

Aklapper triaged this task as Lowest priority.Dec 14 2014, 10:18 PM
Kghbln closed this task as Resolved.EditedJun 4 2016, 12:36 PM
Kghbln claimed this task.
Kghbln added subscribers: bzimport, Kghbln.

kapica wrote:

In the latest version of the extension 2.3 should be this problem solved.

Per the maintainers note. In the meantime MW 1.21 is obsolete anyways so it is suggested to update to AccessControl 2.5 [!sic] and a supported version of MediaWiki. Please open a new issue report in case you are observing this behaviour after the upgrades.