Page MenuHomePhabricator

Missing SVG image causing fatal errors
Closed, DeclinedPublic

Description

Author: snooze210904

Description:
Hi,
This page in Commons is completely blank, and it's impossible to see pages directly linked to it, such as its history, or pages in any wiki containing a link to this image, as you can see in http://tools.wikimedia.de/~daniel/WikiSense/CheckUsage.php?i=English_language.svg&w=_100000. It's affecting thousands of pages.


Version: unspecified
Severity: major
URL: http://commons.wikimedia.org/wiki/Image:English_language.svg

Details

Reference
bz10795

Event Timeline

bzimport raised the priority of this task from to High.Nov 21 2014, 9:51 PM
bzimport set Reference to bz10795.
  • Bug 10797 has been marked as a duplicate of this bug. ***

The metadata cache entry for this image contained a bogus entry, triggering a fatal error:

PHP Fatal error: Cannot access property started with '\0' in /usr/local/apache/common-local/php-1.5/includes/filerepo/LocalFile.php on line 114

The breaking point is where the cached values are poked back into the object:

foreach ( $cachedValues as $name => $value ) {
        $this->$name = $value;
}

The bogus entry had no name:

return $wgMemc->get('commonswiki:file:0b94e4b5bc7078e5bb837a6110c79610');

array(11) {

["version"]=>
int(4)
["fileExists"]=>
bool(true)
["size"]=>
string(4) "9529"
["width"]=>
string(4) "1330"
["height"]=>
string(3) "700"
["bits"]=>
string(1) "0"
["media_type"]=>
string(7) "DRAWING"
["major_mime"]=>
string(5) "image"
["minor_mime"]=>
string(7) "svg+xml"
["metadata"]=>
string(0) ""
[""]=>
NULL

}

Looks a bit odd, eh.

Clearing the cache entry got the image and pages using it working again, but I don't know what would have caused it originally. Possibly a bug, possibly random borkage.

jeluf wrote:

Removed "shell" keyword. No immediate shell action needed.

Assigning SVG bugs to Ariel -- need a cleanup pass to see what's fixed up by a librsvg upgrade, what can be resolved with fixes to our font configuration, what can be fixed on our end, and what still needs to be pushed upstream.

does not seem as if this has re occured in the past 3 years. closing as worksforme.