Page MenuHomePhabricator

message error when editing any page
Closed, ResolvedPublic

Description

When you edit anypage we have the following message error :

Fatal error: Call to a member function getNamespace() on a non-object in /var/www/wiki/extensions/Translate/TranslateEditAddons.php on line 5

In line 5 in TranslateEditAddons.php we read :

if( $object->mTitle->getNamespace() == NS_MEDIAWIKI ) {

			$object->editFormTextTop .= self::editBoxes( $object );
			//$object->editFormTextTop .= self::messageFormat( $object );

Version: unspecified
Severity: blocker

Details

Reference
bz11844

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 9:58 PM
bzimport set Reference to bz11844.
bzimport added a subscriber: Unknown Object (MLST).

robert wrote:

This bug is due to r27091 which removes the mTitle property from EditPage.

Correcting bug.

I've changing mTitle by dbTible and it seems that runs.

Attached:

robert wrote:

This might not be commited as r27091 is probably going to be reverted, although if it isn't this will be an acceptable patch - however I believe the extension author has already fixed his code and is just waiting until he knows if he needs to commit it or not. Thanks regardless.