Last modified: 2010-07-04 17:19:35 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 T19304, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 17304 - PHP Fatal error: Call to a member function toHtml() on a non-object in /var/www/w/includes/ImagePage.php on line 921
PHP Fatal error: Call to a member function toHtml() on a non-object in /var/...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.15.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-02-01 17:25 UTC by Niklas Laxström
Modified: 2010-07-04 17:19 UTC (History)
2 users (show)

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


Attachments

Description Niklas Laxström 2009-02-01 17:25:07 UTC
PHP Fatal error:  Call to a member function toHtml() on a non-object in /var/www/w/includes/ImagePage.php on line 921

The request URL was: /wiki/File:Wikimedia_Community_Logo.svg
Does not happen again when going to that URL, so it probably has to do something with caching.
Comment 1 Brion Vibber 2009-02-01 22:17:29 UTC
Looks like this can happen if the transform call for the history line thumbnails fails.

Should be checking the return value on it.
Comment 2 Chad H. 2009-02-01 23:11:39 UTC
Done in r46691. ForeignApiRepo::transform() already returns false on failure, so I threw a quick check to do the same into File::transform(). ImagePage now checks to see if $thumbnail is false before calling toHtml().

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


Navigation
Links