Page MenuHomePhabricator

Can not upload Image files, Lost some files, error messages on pages
Closed, InvalidPublic

Description

Author: Everythingfoodanddrink

Description:
Warning: file_put_contents(/home/a4629792/public_html/w/images/thumb/Fudge.JPG/400px-Fudge.JPG) [function.file-put-contents]: failed to open stream: Permission denied in /home/a4629792/public_html/w/includes/filerepo/ForeignAPIRepo.php on line 217

Warning: mkdir() [function.mkdir]: Permission denied in /home/a4629792/public_html/w/includes/GlobalFunctions.php on line 2176

Line 2176= $ok = mkdir( $dir, $mode, true ); // PHP5 <3

Line 2179= trigger_error( FUNCTION . ": failed to mkdir \"$dir\" mode $mode", E_USER_WARNING );


Version: 1.15.x
Severity: normal
OS: Windows XP
Platform: PC
URL: http://everythingfoodanddrink.host56.com/w/index.php/Main_Page

Details

Reference
bz26553

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:24 PM
bzimport set Reference to bz26553.
bzimport added a subscriber: Unknown Object (MLST).

Everythingfoodanddrink wrote:

Sometimes the pages load OK, and sometimes not (with error messages)

Before bug existed I uploaded about 10 or 12 files those files are now missing.

Looks like a permissions problem. You need to adjust the permissions of images/thumb so that the webserver can write there.

PS: Seems you added for debugging the lines:
error_reporting(E_ALL);
ini_set("display_errors", 1);

But they should have been added /after/ the <?php

Bryan.TongMinh wrote:

Definitely not a MediaWiki bug but a permissions problem.