Page MenuHomePhabricator

PHP fatal error: Call to a member function getTitle() on a non-object in /includes/Feed.php:309
Closed, DeclinedPublic

Description

Author: taraathan

Description:
I just installed 1.23.3 using Softaculous. I am seeing an error in my log:

PHP Fatal error: Call to a member function getTitle() on a non-object in /home/rulemlso/public_html/wiki.ruleml.org/includes/Feed.php on line 309

This error message seems odd because line 309 in Feed.php reads

return gmdate( 'D, d M Y H:i:s \G\M\T', wfTimestamp( TS_UNIX, $ts ) );

There is no obvious affect on the wiki itself - I'm not really sure where to look for it.

I have the following extensions installed:
Multi-Category Search (1.66)
Replace Text (1.0)
Cite (-)
ParserFunctions(1.6.0)
Privacy(1.2.3)
SyntaxHighlight(1.0.8.11-wmfm1)
Lockdown (d08bc8)
WikiEditor (0.4.0)

PHP is 5.3.29 (litespeed)
MYSQL is 5.5.36-cll-lve


Version: 1.23.3
Severity: minor
Platform: Other
Whiteboard: aklapper-moreinfo
URL: https://www.mediawiki.org/w/index.php?title=Project:Support_desk#PHP_Fatal_errors_after_installing_Version_1.23.3_47970

Details

Reference
bz70709

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:52 AM
bzimport set Reference to bz70709.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

http://www.mediawiki.org/wiki/Manual:How_to_debug might help to get a bit more info, and I'd also recommend to ask on https://www.mediawiki.org/wiki/Project:Support_desk

Tara: Did you ask on the support desk? Could you link to that request?

"The errors seem to have disappeared on their own, so this seems like a likely culprit."

taraathan wrote:

I was mistaken about the errors disappearing - I was just looking for them in the wrong place. The errors continue to appear, at a rate of between 2-8 times per day, in the error_log file in my wiki directory.

A stack trace would be useful for debugging this further.

Can you add "$wgShowExceptionDetails = true;" (without the ") to your LocalSettings.php?

(In reply to Tara Athan from comment #6)

The errors continue to appear

-> Ropen

taraathan wrote:

I have added $wgShowExceptionDetails = true; to LocalSettings.php
Where do I look for the stack trace?

taraathan wrote:

Based on my webhost's suggestion, I added

$wgCacheEpoch = '20140924154644';

to my LocalSettings.php

This has had no effect on the errors.

(In reply to taraathan@gmail.com from comment #9)

I have added $wgShowExceptionDetails = true; to LocalSettings.php
Where do I look for the stack trace?

https://www.mediawiki.org/wiki/Manual:How_to_debug states that more details (like a stack trace) should be shown on the "Fatal error" page itself.

taraathan wrote:

So far I haven't figured out what the page is that triggers this "Fatal error". The frequency pattern in the log file, and the absence of users reporting problems, suggests that it happens when some bot is crawling our site.

(In reply to taraathan@gmail.com from comment #12)

suggests that it happens when some bot is crawling our site.

You might have server logs with timestamps to compare with? :)

Aklapper changed the task status from Open to Stalled.Nov 25 2014, 7:47 PM
Aklapper edited subscribers, added: Taraathan; removed: wikibugs-l-list.

Unfortunately closing this Phabricator task as no stacktrace has been provided.

@Taraathan: After you have provided a stacktrace and if this still happens, please set the status of this task back to "Open" via the Add Action...Change Status dropdown. Thanks!