Last modified: 2008-09-11 09:13:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 7655 - Error on calling $wgTitle or addWikitext
Error on calling $wgTitle or addWikitext
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
PC Windows XP
: Normal critical (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-21 14:21 UTC by Dirk Beetstra
Modified: 2008-09-11 09:13 UTC (History)
1 user (show)

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


Attachments
the files giving the error (13.55 KB, text/plain)
2006-10-21 14:25 UTC, Dirk Beetstra
Details

Description Dirk Beetstra 2006-10-21 14:21:43 UTC
Error message when calling either $wgTitle or $wgOut->addWikitext (but not addHTML!):

$wgTitle results in: Call to a member function escapeLocalUrl() on a non-object in e:\\my 
homepages\\ChemWiki\\extensions\\Chemistry\\SpecialListPage.php on line 74

disabling this line gives:

Internal error

Parser::replaceInternalLinks: $this->mTitle is null 

Backtrace:

#0 e:\my homepages\ChemWiki\includes\Parser.php(977): Parser->replaceInternalLinks('<_SearchExpl...')
#1 e:\my homepages\ChemWiki\includes\Parser.php(300): Parser->internalParse('<_SearchExpl...')
#2 e:\my homepages\ChemWiki\includes\OutputPage.php(299): Parser->parse('<_SearchExpl...', NULL, 
Object(ParserOptions), true, true, NULL)
#3 e:\my homepages\ChemWiki\includes\OutputPage.php(286): OutputPage->addWikiTextTitle
('<_SearchExpl...', NULL, true)
#4 e:\my homepages\ChemWiki\extensions\Chemistry\SpecialListPage.php(76): OutputPage->addWikiText
('<_SearchExpl...')
#5 e:\my homepages\ChemWiki\extensions\Chemistry\SpecialListPage.php(46): SpecialListPage->getParams()
#6 e:\my homepages\ChemWiki\extensions\Chemistry\SpecialChemicalsources2.php(49): SpecialListPage-
>ShowListPage()
#7 e:\my homepages\ChemWiki\extensions\Chemistry\SpecialChemicalsources2.php(31): 
SpecialChemicalsources2->SpecialChemicalsources2()
#8 [internal function]: wfSpecialChemicalsources2()
#9 e:\my homepages\ChemWiki\includes\Setup.php(189): call_user_func('wfSpecialChemic...')
#10 e:\my homepages\ChemWiki\includes\WebStart.php(80): require_once('e:\my homepages...')
#11 e:\my homepages\ChemWiki\index.php(4): require_once('e:\my homepages...')
#12 {main}

(code to follow in next post)
Comment 1 Dirk Beetstra 2006-10-21 14:25:46 UTC
Created attachment 2530 [details]
the files giving the error

both SpecialListPage.php and SpecialChemicalsources2.php must be activated in
localsettings.php.  Calling the new specialpage (special:Chemicalsources2)
should result in the error.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-10-21 23:28:44 UTC
Did you intend to resolve this as LATER?
Comment 3 Dirk Beetstra 2006-10-22 09:01:06 UTC
I'd still like to try and generalise the extension (see chemistry extensions in svn, the specialpage) 
further than I am currently capable of, but this seems not to be the way, problems in inheritage of 
classes, I guess.  Shortly, the thing has not been resolved, I don't know where or why it exactly breaks, 
and yes, I will try again and make it work, later.  I'll repost if I know whát goes wrong, and how to 
work around.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-10-22 18:19:40 UTC
LATER is more for "it's not possible to do at present", because
standards/browsers don't support or whatever.  Like a bug opened asking for
routine inline SVG display or something.
Comment 5 Aaron Schulz 2008-09-11 09:13:55 UTC
Fixed in r40724

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


Navigation
Links