"Wikitravel has a speed and convenience the books' publishers can only envy." Time Europe

Tech:Error uploading large .svg file

From Wikitravel Shared
Jump to: navigation, search

Moved from en:Wikitravel:Bug reports by Evan

What happens[edit]

It appears that en:Image:Paris.svg has outgrown the ability of Mediawiki to handle. When trying to upload I get the following error:


 Internal error

 Could not copy file "" to "/var/www/html/en/upload/5/57/Paris.svg".

And the following PHP error messages are dumped before the HTML is rendered:

 
Warning: fread(): supplied argument is not a valid stream resource in /var/www/html/en/includes/SpecialUpload.php on line 449

Warning: fclose(): supplied argument is not a valid stream resource in /var/www/html/en/includes/SpecialUpload.php on line 450
As a workaround you can try to use compressed .svgz format (svg+gzip). I think it's supported by most svg browsers. For sure by Adobe SVG Viewer. -- JanSlupski 18:09, 28 Jan 2005 (EST)
Good idea. Evan can you add that to the list of acceptable extensions? -- Mark 03:41, 5 Feb 2005 (EST)


I'm starting to do some U.S. maps using the Census Bureau Tigerline data. Since it's done by county the SVG versions work out to be really really big (for now), so the .svgz extension would be really fantastic now. -- Mark 05:48, 11 Mar 2005 (EST)

When it happens[edit]

What should happen[edit]

How to fix it[edit]

I've raised the limits on images considerably since this bug was added. I'm going to mark it fixed; feel free to re-open if it happens again. --Evan 11:07, 26 February 2007 (EST)

Variants

Actions

In other languages