[Mediawiki-l] Problem uploading files

Brion Vibber brion at pobox.com
Tue Apr 27 19:14:06 UTC 2004


On Apr 27, 2004, at 09:12, Manuel Schmidt wrote:
> Warning: is_dir() [function.is-dir]: SAFE MODE Restriction in effect.
>          The script whose uid is 10731 is not allowed to access 
> /home/www/htdocs/bsdhq.de/_wiki/images/6
>          owned by uid 30 in 
> /home/www/htdocs/bsdhq.de/_wiki/includes/GlobalFunctions.php on line 
> 452
>
> Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect.
>          The script whose uid is 10731 is not allowed to access 
> /home/www/htdocs/bsdhq.de/_wiki/images/6
>          owned by uid 30 in 
> /home/www/htdocs/bsdhq.de/_wiki/includes/GlobalFunctions.php on line 
> 452
>

It looks like PHP's 'safe mode' is on. Either turn it off or try to 
work within its limitations.

Try creating the following directories yourself under the images/ dir:
0/00
0/01
0/02
...
0/0f
1/10
1/11
...
f/ff

There should be 256 directories total. Normally they are created only 
when needed, but safe mode imposes weird restrictions that seem to mean 
that you can't create directories and then use them from the script.

-- brion vibber (brion @ pobox.com)




More information about the MediaWiki-l mailing list