Topic on Project:Support desk

file_put_contents failed to open stream ForeignAPIRepo.php on line 217 (svg)

3
Spiros71 (talkcontribs)

MW 1.16.5 Apache version 2.2.23 PHP version 5.3.21 MySQL version 5.1.66-cll

I get this error:

Warning: file_put_contents(.../public_html/w/mediawiki-1.16.5/images/ele/thumb/7/7c/Coat_of_arms_of_Greece.svg/30px-Coat_of_arms_of_Greece.svg.png) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied in .../public_html/w/mediawiki-1.16.5/includes/filerepo/ForeignAPIRepo.php on line 217

You can see a similar issue here: http://www.thegunwiki.org/thegunwiki/File:Map_of_current_Interstates.svg

Ciencia Al Poder (talkcontribs)

Looks like the webserver doesn't have permissions to create or write on ../public_html/w/mediawiki-1.16.5/images/ele/thumb/7/7c/Coat_of_arms_of_Greece.svg/30px-Coat_of_arms_of_Greece.svg.png

Check file permissions.

Spiros71 (talkcontribs)

Many thanks, that appears to have fixed the issue.

Reply to "file_put_contents failed to open stream ForeignAPIRepo.php on line 217 (svg)"