Last modified: 2012-04-10 17:07:24 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 T37297, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35297 - Fatal PHP Error in Translate/tag/RenderJob.php on line 48 on marking content as translatable
Fatal PHP Error in Translate/tag/RenderJob.php on line 48 on marking content ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
unspecified
All Linux
: Normal major (vote)
: ---
Assigned To: Niklas Laxström
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-18 13:05 UTC by opensource
Modified: 2012-04-10 17:07 UTC (History)
3 users (show)

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


Attachments

Description opensource 2012-03-18 13:05:06 UTC
After adding '<translate>' and '</translate>' around the content of an existing page (within no namespace), clicking "Mark this site for translation" and "Mark this version for translation", I'm getting this fatal PHP error:

Fatal error: Call to a member function initCollection() on a non-object in /srv/www/htdocs/wiki/extensions/Translate/tag/RenderJob.php on line 48 

PHP 5.3.5
MySQL 5.1.57
MediaWiki 1.18.1
Translate 2011-07-09
Replace Text 0.9.1
Babel 1.7.1
ParserFunctions 1.4.0
Clean Changes 2008-10-16
ConfirmEdit 1.0
Language Names 1.9.0 (CLDR 1.9M2)
Narayam 0.1
Comment 1 Sam Reed (reedy) 2012-03-18 15:54:20 UTC
yeah... $page->getMessageGroup() can return null

I was going to add

		if ( !$collection ) {
			$this->setLastError( 'RenderJob: Invalid collection' );
			return false;
		}

but with the error handling as 

		if ( !$page ) {
			var_dump( $this->params );
			var_dump( $title );
			throw new MWException( "Oops, this should not happen!" );
		}

just above it...
Comment 2 Siebrand Mazeland 2012-03-19 05:43:30 UTC
The steps to reproduce are not clear to me. Can you please provide them? I would also advise you to use the latest trunk version of Translate. It should work on MediaWiki 1.18.1 (or the latest stable version). A lot has changed since 2011-07-09. You can download it at https://www.mediawiki.org/wiki/Special:ExtensionDistributor/Translate.
Comment 3 opensource 2012-04-10 17:07:24 UTC
Could not reproduce this bug with the recent version. Thus closing it.

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


Navigation
Links