Page MenuHomePhabricator

After running rebuildall.php, Error: Call to a member function getArticleID() on a non-object
Closed, DuplicatePublic

Description

Error messages are follows.

  • Rebuilding links tables -- this can take a long time. It should be safe to abort via ctrl+C if you get bored.

Refreshing redirects table.
Starting from page_id 1 of 149.
100
Refreshing links tables.
Starting from page_id 1 of 149.
PHP Fatal error: Call to a member function getArticleID() on a non-object in /var/www/w/extensions/Comments/CommentsHooks.php on line 80


At Wiki Family environment, each Wiki Family member has their own Comments table. But extension's source codes are shared with /var/www/w/extensions by symbolic link.

MediaWiki version: 1.24
Comments version: 3.10

Event Timeline

Comseong raised the priority of this task from to Needs Triage.
Comseong updated the task description. (Show Details)
Comseong added a subscriber: Comseong.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Comseong set Security to None.
Aklapper renamed this task from Running rebuildall.php maintenance script, there is an error. to After running rebuildall.php, Error: Call to a member function getArticleID() on a non-object.Sep 28 2015, 9:50 AM

@UltrasonicNXT Can you think of a reason why CommentsHooks::displayComments() calls the global OutputPage there? Of course I can't figure out why on Earth $wgOut->getTitle() would return something that's not a valid Title, but given that we already use the Parser-supplied Title (lines 45-46), maybe we could fix this bug by using that and hope it works?