Last modified: 2014-02-10 12:00:18 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 59791 - PHP Fatal error: Call to a member function setFragment() on a non-object in ThreadPermalinkView.php on line 168
PHP Fatal error: Call to a member function setFragment() on a non-object in ...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
LiquidThreads (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 54670 (view as bug list)
Depends on:
Blocks: 17553
  Show dependency treegraph
 
Reported: 2014-01-07 20:33 UTC by Sam Reed (reedy)
Modified: 2014-02-10 12:00 UTC (History)
2 users (show)

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


Attachments

Description Sam Reed (reedy) 2014-01-07 20:33:23 UTC
[07-Jan-2014 20:25:35] Fatal error: Call to a member function setFragment() on a non-object at /usr/local/apache/common-local/php-1.23wmf9/extensions/LiquidThreads/pages/ThreadPermalinkView.php on line 168
Server: mw1075
Method: GET
URL: http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Enter_information_for_Leon_Turner_of_Life_in_Wikipedia_database./reply_(2)
Backtrace:
#0 /usr/local/apache/common-local/php-1.23wmf9/extensions/LiquidThreads/pages/ThreadPermalinkView.php(168): ThreadPermalinkView::getSubtitle()
#1 /usr/local/apache/common-local/php-1.23wmf9/extensions/LiquidThreads/pages/ThreadPermalinkView.php(231): ThreadPermalinkView->getSubtitle()
#2 /usr/local/apache/common-local/php-1.23wmf9/extensions/LiquidThreads/classes/Dispatch.php(100): ThreadPermalinkView->show()
#3 /usr/local/apache/common-local/php-1.23wmf9/extensions/LiquidThreads/classes/Dispatch.php(220): LqtDispatch::threadPermalinkMain(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest))
#4 [internal function]: LqtDispatch::tryPage(Object(OutputPage), Object(Article), Object(Title), Object(User), Object(WebRequest), Object(MediaWiki))
#5 /usr/local/apache/common-local/php-1.23wmf9/includes/Hooks.php(199): call_user_func_array('LqtDispatch::tr...', Array)
#6 /usr/local/apache/common-local/php-1.23wmf9/includes/GlobalFunctions.php(4032): Hooks::run('MediaWikiPerfor...', Array)
#7 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(423): wfRunHooks('MediaWikiPerfor...', Array)
#8 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(305): MediaWiki->performAction(Object(Article), Object(Title))
#9 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(596): MediaWiki->performRequest()
#10 /usr/local/apache/common-local/php-1.23wmf9/includes/Wiki.php(460): MediaWiki->main()
#11 /usr/local/apache/common-local/php-1.23wmf9/index.php(49): MediaWiki->run()
#12 /usr/local/apache/common-local/w/index.php(3): require('/usr/local/apac...')
#13 {main}
Comment 1 Sam Reed (reedy) 2014-01-07 20:35:45 UTC
		if ( $this->thread->hasSuperthread() ) {
			$topmostTitle = $this->thread->topmostThread()->title();
			$topmostTitle->setFragment( $fragment );

			$linkText = wfMessage( 'lqt_discussion_link' )->parse();
			$permalink = Linker::link( $topmostTitle, $linkText );

			return wfMessage( 'lqt_fragment' )->rawParams( $permalink, $talkpage_link )->parse();
		} else {
			return wfMessage( 'lqt_from_talk' )->rawParams( $talkpage_link )->parse();
		}


Can and will return null:
$topmostTitle = $this->thread->topmostThread()->title();
Comment 2 Andre Klapper 2014-02-10 11:58:00 UTC
*** Bug 54670 has been marked as a duplicate of this bug. ***
Comment 3 Andre Klapper 2014-02-10 12:00:18 UTC
Both reported tickets and one reported today in #wikimedia-tech are a link ending with
 /reply_(2)

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


Navigation
Links