https://bugzilla.wikimedia.org/show_bug.cgi?id=58436

       Web browser: ---
            Bug ID: 58436
           Summary: Call to a member function isError() on a non-object in
                    includes/filerepo/file/File.php on line 907
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: File management
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Observed at translatewiki.net: PHP Fatal error:  Call to a member function
isError() on a non-object in
/www/translatewiki.net/w/includes/filerepo/file/File.php on line 907

Code snippet:

        $thumb = $this->transform( $params );
        if ( is_null( $thumb ) || $thumb->isError() ) {
            return '';
        }

Happens when $thumb is false, which means that $thumb->isError() is called on a
non-object.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to