Last modified: 2014-07-30 14:25:56 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 T70814, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68814 - CirrusSearch fatal whilst importing
CirrusSearch fatal whilst importing
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CirrusSearch (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-29 18:27 UTC by Sam Reed (reedy)
Modified: 2014-07-30 14:25 UTC (History)
3 users (show)

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


Attachments

Description Sam Reed (reedy) 2014-07-29 18:27:39 UTC
[2014-07-29 18:20:16] Catchable fatal error: Argument 1 passed to WikiPage::factory() must be an instance of Title, null given, called in /usr/local/apache/common-local/php-1.24wmf14/extensions/CirrusSearch/includes/Hooks.php on line 188 and defined at /usr/local/apache/common-local/php-1.24wmf14/includes/page/WikiPage.php on line 112
Server: mw1174
Method: POST
URL: http://bh.wikipedia.org/w/index.php?title=%E0%A4%B5%E0%A4%BF%E0%A4%B6%E0%A5%87%E0%A4%B7:Import&action=submit
Backtrace:
#0 /usr/local/apache/common-local/php-1.24wmf14/includes/page/WikiPage.php(112): WikiPage::factory()
#1 /usr/local/apache/common-local/php-1.24wmf14/extensions/CirrusSearch/includes/Hooks.php(188): WikiPage::factory(NULL)
#2 [internal function]: CirrusSearch\Hooks::onAfterImportPage(NULL, NULL, 0, 0, Array)
#3 /usr/local/apache/common-local/php-1.24wmf14/includes/Hooks.php(206): call_user_func_array('CirrusSearch\Ho...', Array)
#4 /usr/local/apache/common-local/php-1.24wmf14/includes/GlobalFunctions.php(4051): Hooks::run('AfterImportPage', Array, NULL)
#5 /usr/local/apache/common-local/php-1.24wmf14/includes/Import.php(323): wfRunHooks('AfterImportPage', Array)
#6 [internal function]: WikiImporter->finishImportPage(NULL, NULL, 0, 0, Array)
#7 /usr/local/apache/common-local/php-1.24wmf14/includes/specials/SpecialImport.php(464): call_user_func_array(Array, Array)
#8 [internal function]: ImportReporter->reportPage(NULL, NULL, 0, 0, Array)
#9 /usr/local/apache/common-local/php-1.24wmf14/includes/Import.php(364): call_user_func_array(Array, Array)
#10 /usr/local/apache/common-local/php-1.24wmf14/includes/Import.php(666): WikiImporter->pageOutCallback(NULL, NULL, 0, 0, Array)
#11 /usr/local/apache/common-local/php-1.24wmf14/includes/Import.php(507): WikiImporter->handlePage()
#12 /usr/local/apache/common-local/php-1.24wmf14/includes/specials/SpecialImport.php(179): WikiImporter->doImport()
#13 /usr/local/apache/common-local/php-1.24wmf14/includes/specials/SpecialImport.php(85): SpecialImport->doImport()
#14 /usr/local/apache/common-local/php-1.24wmf14/includes/specialpage/SpecialPage.php(382): SpecialImport->execute(NULL)
#15 /usr/local/apache/common-local/php-1.24wmf14/includes/specialpage/SpecialPageFactory.php(515): SpecialPage->run(NULL)
#16 /usr/local/apache/common-local/php-1.24wmf14/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#17 /usr/local/apache/common-local/php-1.24wmf14/includes/MediaWiki.php(603): MediaWiki->performRequest()
#18 /usr/local/apache/common-local/php-1.24wmf14/includes/MediaWiki.php(452): MediaWiki->main()
#19 /usr/local/apache/common-local/php-1.24wmf14/index.php(46): MediaWiki->run()
Comment 1 Nik Everett 2014-07-29 18:30:38 UTC
The relevant code is:
	public static function onAfterImportPage( $title ) {
...
				array( WikiPage::factory( $title ) ),
...


So we're getting onAfterImportPage called with null.  I'll add a guard but that seems like something is broken on the calling path, not Cirrus.
Comment 2 Gerrit Notification Bot 2014-07-29 18:39:01 UTC
Change 150289 had a related patch set uploaded by Manybubbles:
Catch null titles in import hook

https://gerrit.wikimedia.org/r/150289
Comment 3 Gerrit Notification Bot 2014-07-29 20:31:55 UTC
Change 150289 merged by jenkins-bot:
Catch null titles in import hook

https://gerrit.wikimedia.org/r/150289
Comment 4 Sam Reed (reedy) 2014-07-30 14:21:13 UTC
(In reply to Nik Everett from comment #1)
> So we're getting onAfterImportPage called with null.  I'll add a guard but
> that seems like something is broken on the calling path, not Cirrus.

I guess I should file a core bug about it...
Comment 5 Nik Everett 2014-07-30 14:25:56 UTC
I'm always reticent to change things like this in core in case someone relies on the weird behavior.

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


Navigation
Links