Hi,
I read the INSTALL and did it all and setup seemed to go perfectly and the main page comes up... however... When I try to do edit this page, I get:
br> <b>Warning</b>: stat failed for /home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR (errno=2 - No such file or directory) in <b>/home/justin/justin.com/htdocs/wiki/GlobalFunctions.php</b> on line <b>161</b><br> <br> <b>Warning</b>: stat failed for /home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR (errno=2 - No such file or directory) in <b>/home/justin/justin.com/htdocs/wiki/GlobalFunctions.php</b> on line <b>161</b><br> <br>
and some more failurel lines but these are the first two.
/home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR
doesn't exist.
/home/justin/justin.com/htdocs/wiki/upload
is world writeable
and I'm no php expert but have looked at line 161 in the mentioned file and I'm sure there is nothing wrong with it.
I am using
mediawiki-1.1.0 apache-1.3.23-142 php 4.1.0 SuSE Linux 8.0
Any ideas, I don't even know much about wiki, I'm setting it up for someone else to use, just a dumb sysadmin here trying to finish all my task for one day, can anybody please help?
Thanks
Bill
On Jan 31, 2004, at 11:57, William Dossett wrote:
<b>Warning</b>: stat failed for /home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR (errno=2 - No such file or directory) in <b>/home/justin/justin.com/htdocs/wiki/GlobalFunctions.php</b> on line <b>161</b><br>
[snip]
php 4.1.0
Looking through the docs... looks like on PHP 4.1.0 is_file() prints a warning message if the file doesn't exist. How... helpful. :P
Try changing the line to: return @is_file( $wgReadOnlyFile );
or if that doesn't help, return file_exists( $wgReadOnlyFile );
Note that we mainly target PHP 4.3.x, though we try not to break compatibility with 4.1.x and 4.2.x.
-- brion vibber (brion @ pobox.com)
Thanks, the first incantation did the trick... will have to see if I can upgrade php on the server as well, thanks again for your prompt help!
Cheers Bill
Brion Vibber wrote:
On Jan 31, 2004, at 11:57, William Dossett wrote:
<b>Warning</b>: stat failed for /home/justin/justin.com/htdocs/wiki/upload/lock_yBgMBwiR (errno=2 - No such file or directory) in <b>/home/justin/justin.com/htdocs/wiki/GlobalFunctions.php</b> on line <b>161</b><br>
[snip]
php 4.1.0
Looking through the docs... looks like on PHP 4.1.0 is_file() prints a warning message if the file doesn't exist. How... helpful. :P
Try changing the line to: return @is_file( $wgReadOnlyFile );
or if that doesn't help, return file_exists( $wgReadOnlyFile );
Note that we mainly target PHP 4.3.x, though we try not to break compatibility with 4.1.x and 4.2.x.
-- brion vibber (brion @ pobox.com)
Wikitech-l mailing list Wikitech-l@Wikipedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org