Last modified: 2013-04-22 16:14:38 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 T45964, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 43964 - Parser Fatal error: Call to a member function getLocalURL() on a non-object
Parser Fatal error: Call to a member function getLocalURL() on a non-object
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.21.x
All All
: Normal normal (vote)
: ---
Assigned To: Alexandre Emsenhuber [IAlex]
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-14 18:12 UTC by Sam Reed (reedy)
Modified: 2013-04-22 16:14 UTC (History)
4 users (show)

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


Attachments

Description Sam Reed (reedy) 2013-01-14 18:12:11 UTC
Fatal error:  Call to a member function getLocalURL() on a non-object in /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php on line 5004
Comment 1 Sam Reed (reedy) 2013-01-14 18:14:54 UTC
[14-Jan-2013 17:07:08] Fatal error: Call to a member function getLocalURL() on a non-object at /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php on line 5004
Server: mw35
Method: POST
URL: http://en.wikipedia.org/w/index.php?title=User:Fraserlaidlaw/sandbox&action=submit
Backtrace:
#0 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php(5004): Parser::renderImageGallery()
#1 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/CoreTagHooks.php(120): Parser->renderImageGallery('?File:southern-...', Array)
#2 [internal function]: CoreTagHooks::gallery('?File:southern-...', Array, Object(Parser), Object(PPFrame_DOM))
#3 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php(3863): call_user_func_array(Array, Array)
#4 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Preprocessor_DOM.php(1151): Parser->extensionSubstitution(Array, Object(PPFrame_DOM))
#5 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php(3086): PPFrame_DOM->expand(Object(PPNode_DOM), 0)
#6 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php(1157): Parser->replaceVariables('<gallery>?File:...')
#7 /usr/local/apache/common-local/php-1.21wmf7/includes/parser/Parser.php(385): Parser->internalParse('<gallery>?File:...')
#8 /usr/local/apache/common-local/php-1.21wmf7/includes/content/WikitextContent.php(299): Parser->parse('<gallery>?File:...', Object(Title), Object(ParserOptions), true, true, NULL)
#9 /usr/local/apache/common-local/php-1.21wmf7/includes/EditPage.php(2987): WikitextContent->getParserOutput(Object(Title), NULL, Object(ParserOptions))
#10 /usr/local/apache/common-local/php-1.21wmf7/includes/EditPage.php(2013): EditPage->getPreviewText()
#11 /usr/local/apache/common-local/php-1.21wmf7/includes/EditPage.php(421): EditPage->showEditForm()
#12 /usr/local/apache/common-local/php-1.21wmf7/includes/actions/EditAction.php(51): EditPage->edit()
#13 /usr/local/apache/common-local/php-1.21wmf7/includes/actions/EditAction.php(71): EditAction->show()
#14 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(429): SubmitAction->show()
#15 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#16 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(555): MediaWiki->performRequest()
#17 /usr/local/apache/common-local/php-1.21wmf7/includes/Wiki.php(448): MediaWiki->main()
#18 /usr/local/apache/common-local/php-1.21wmf7/index.php(59): MediaWiki->run()
#19 /usr/local/apache/common-local/live-1.5/index.php(3): require('/usr/local/apac...')
#20 {main}
Comment 2 Sam Reed (reedy) 2013-01-14 18:16:31 UTC
Looks to be 4997 in master:

if(!preg_match( "/^($prots)$chars+$/u", $link)){
	$localLinkTitle = Title::newFromText($link);
	$link = $localLinkTitle->getLocalURL();
}

newFromText() can return null
Comment 3 Alexandre Emsenhuber [IAlex] 2013-01-14 21:11:51 UTC
Fix pending in Gerrit change #43885.
Comment 4 Alex Monk 2013-01-28 17:22:36 UTC
(In reply to comment #3)
> Fix pending in Gerrit change #43885.

Merged by Aaron Schulz on the 24th.

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


Navigation
Links