Hello list, i have a problem with uploading files. I have editet the LocalSettings.php and insertet $wgDisableUploads = false; Then i chmod my images dir to 777. Of Course meanwhile i uploaded the new LocalSettings.php. But If i want to upload a *.jpg i get errores like this:
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
Warning: move_uploaded_file() [function.move-uploaded-file]: 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/SpecialUpload.php on line 155
The is_dir() and mkdir() Warings com on the Lines: 472 and 274 as well. Finally the wiki itself reports an error like :
Konnte Datei "/home/www/htdocs/bsdhq.de/tmp/phptqUinX" nicht nach "/home/www/htdocs/bsdhq.de/_wiki/images/6/6e/Absolute_openbsd.jpg" kopieren
which is german and says couldnt copy. =)
... what am i doing wrong here ? the wiki runs in subdir of the webroot. as u can see this is /_wiki/ could this be a problem ?
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)
mediawiki-l@lists.wikimedia.org