Hi,
I am logged on as sysop of my wiki. The directories images and subdirectories archive, temp and thumb exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to "/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this problem. The site is hosted by a computing center of a university. Probably they made some options on their servers that lead to this error?
Anyone any idea to find out what goes wrong?
Thanks, Martin
I just found out that the error message is called in includes/SpecialUpload.php
$success = move_uploaded_file( $tempName, $this->mSavedFile ); if( ! $success ) { $wgOut->fileCopyError( $tempName, $this->mSavedFile ); return false; }
the string in $tempName changes at each upload.
What can I do? Any idea?
Can it have something to do with save mode?
Martin
Martin Baumann schrieb:
Hi,
I am logged on as sysop of my wiki. The directories images and subdirectories archive, temp and thumb exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to "/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this problem. The site is hosted by a computing center of a university. Probably they made some options on their servers that lead to this error?
Anyone any idea to find out what goes wrong?
Thanks, Martin _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Is the uploads (/wiki/images) directory writable by the web server user?
Rob Church
On 30/11/05, Martin Baumann mailsgetlost@web.de wrote:
I just found out that the error message is called in includes/SpecialUpload.php
$success = move_uploaded_file( $tempName, $this->mSavedFile ); if( ! $success ) { $wgOut->fileCopyError( $tempName, $this->mSavedFile ); return false; }
the string in $tempName changes at each upload.
What can I do? Any idea?
Can it have something to do with save mode?
Martin
Martin Baumann schrieb:
Hi,
I am logged on as sysop of my wiki. The directories images and subdirectories archive, temp and thumb exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to "/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this problem. The site is hosted by a computing center of a university. Probably they made some options on their servers that lead to this error?
Anyone any idea to find out what goes wrong?
Thanks, Martin _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I think so. I changed mod to 777. But how can I test if web server user actually can write files to it?
Martin
Rob Church schrieb:
Is the uploads (/wiki/images) directory writable by the web server user?
Rob Church
On 30/11/05, Martin Baumann mailsgetlost@web.de wrote:
I just found out that the error message is called in includes/SpecialUpload.php
$success = move_uploaded_file( $tempName, $this->mSavedFile ); if( ! $success ) { $wgOut->fileCopyError( $tempName, $this->mSavedFile ); return false; }
the string in $tempName changes at each upload.
What can I do? Any idea?
Can it have something to do with save mode?
Martin
Martin Baumann schrieb:
Hi,
I am logged on as sysop of my wiki. The directories images and subdirectories archive, temp and thumb exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to "/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this problem. The site is hosted by a computing center of a university. Probably they made some options on their servers that lead to this error?
Anyone any idea to find out what goes wrong?
Thanks, Martin _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
If you set CHMOD 777 on the images directory, then it ought to be writable, and you shouldn't have to test it; however, to do so, write a small script and see. Something like the following would be adequate:
<?php $stuff = 'This is some text'; echo('Attempting to write...'); if(file_put_contents('file', $stuff) > 0) { echo('done!<br />'); } else { echo('failed!<br />'); } ?>
Pop this in a .php file, place it in the images dir. and call it. It ought to return a success message and produce a file containing some dummy text.
To the original problem; find out if safe mode is on, etc. and whether or not file uploading itself is permitted within the PHP configuration.
Rob Church
On 01/12/05, Martin Baumann mailsgetlost@web.de wrote:
I think so. I changed mod to 777. But how can I test if web server user actually can write files to it?
Martin
Rob Church schrieb:
Is the uploads (/wiki/images) directory writable by the web server user?
Rob Church
On 30/11/05, Martin Baumann mailsgetlost@web.de wrote:
I just found out that the error message is called in includes/SpecialUpload.php
$success = move_uploaded_file( $tempName, $this->mSavedFile ); if( ! $success ) { $wgOut->fileCopyError( $tempName, $this->mSavedFile ); return false; }
the string in $tempName changes at each upload.
What can I do? Any idea?
Can it have something to do with save mode?
Martin
Martin Baumann schrieb:
Hi,
I am logged on as sysop of my wiki. The directories images and subdirectories archive, temp and thumb exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to "/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this problem. The site is hosted by a computing center of a university. Probably they made some options on their servers that lead to this error?
Anyone any idea to find out what goes wrong?
Thanks, Martin _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Thanks for your help. I get the following mwssage:
Attempting to write... *Fatal error*: Call to undefined function: file_put_contents() in */myfolder/.public_html/wiki/images/test.php* on line *4
Martin
* Rob Church schrieb:
If you set CHMOD 777 on the images directory, then it ought to be writable, and you shouldn't have to test it; however, to do so, write a small script and see. Something like the following would be adequate:
<?php $stuff = 'This is some text'; echo('Attempting to write...'); if(file_put_contents('file', $stuff) > 0) { echo('done!<br />'); } else { echo('failed!<br />'); } ?>
Pop this in a .php file, place it in the images dir. and call it. It ought to return a success message and produce a file containing some dummy text.
To the original problem; find out if safe mode is on, etc. and whether or not file uploading itself is permitted within the PHP configuration.
Rob Church
On 01/12/05, Martin Baumann mailsgetlost@web.de wrote:
I think so. I changed mod to 777. But how can I test if web server user actually can write files to it?
Martin
Rob Church schrieb:
Is the uploads (/wiki/images) directory writable by the web server user?
Rob Church
On 30/11/05, Martin Baumann mailsgetlost@web.de wrote:
I just found out that the error message is called in includes/SpecialUpload.php
$success = move_uploaded_file( $tempName, $this->mSavedFile ); if( ! $success ) { $wgOut->fileCopyError( $tempName, $this->mSavedFile ); return false; }
the string in $tempName changes at each upload.
What can I do? Any idea?
Can it have something to do with save mode?
Martin
Martin Baumann schrieb:
Hi,
I am logged on as sysop of my wiki. The directories images and subdirectories archive, temp and thumb exist and all have 777 mode.
I try to upload an image and the following error is shown:
Internal Error: Could not copy file "/tmp/phpjf0ODv" to "/<mywebspace>/wiki/images/test.png".
No other information or comment. I have no idea what could cause this problem. The site is hosted by a computing center of a university. Probably they made some options on their servers that lead to this error?
Anyone any idea to find out what goes wrong?
Thanks, Martin _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Martin Baumann wrote:
Thanks for your help. I get the following mwssage:
Attempting to write... *Fatal error*: Call to undefined function: file_put_contents() in */myfolder/.public_html/wiki/images/test.php* on line *4
file_put_contents() is new in PHP 5.
See http://www.php.net/file_put_contents
-- brion vibber (brion @ pobox.com)
Hi,
Attempting to write... *Warning*: fopen(): SAFE MODE Restriction in effect. The script running as uid 600 is not allowed to write to directory /myfolder/.public_html/wiki/images owned by uid 38106 in */myfolder/.public_html/wiki/images/test.php* on line *8
Oh oh
Sounds bad?
Martin
* Brion Vibber schrieb:
Martin Baumann wrote:
Thanks for your help. I get the following mwssage:
Attempting to write... *Fatal error*: Call to undefined function: file_put_contents() in */myfolder/.public_html/wiki/images/test.php* on line *4
file_put_contents() is new in PHP 5.
See http://www.php.net/file_put_contents
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Not too horrendous, though be aware that if forced to run when PHP is under safe mode, some parts of MediaWiki will not function as expected...
...however, you may be able to get round this particular issue. Please read the PHP documentation on safe mode at http://www.php.net/features.safe-mode.
Rob Church
On 01/12/05, Martin Baumann mailsgetlost@web.de wrote:
Hi,
Attempting to write... *Warning*: fopen(): SAFE MODE Restriction in effect. The script running as uid 600 is not allowed to write to directory /myfolder/.public_html/wiki/images owned by uid 38106 in */myfolder/.public_html/wiki/images/test.php* on line *8
Oh oh
Sounds bad?
Martin
Brion Vibber schrieb:
Martin Baumann wrote:
Thanks for your help. I get the following mwssage:
Attempting to write... *Fatal error*: Call to undefined function: file_put_contents() in */myfolder/.public_html/wiki/images/test.php* on line *4
file_put_contents() is new in PHP 5.
See http://www.php.net/file_put_contents
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I read the articles. But I am not shure what all this means in my case. Do I have to install a module?
As I already mentioned in one of my former postings, my wiki is hosted by a computing center of an university. So I guess I am not allowed to do a lot of changes to the server itself.
What do I have to change? In my wiki settings, to the server settings (I hope I am allowed to) or any other changes (no idea what this could be...)?
This is my first wiki and my first contact to PHP. Sorry if my questions seem stupid.
Thanks for your help,
Martin
Rob Church schrieb:
Not too horrendous, though be aware that if forced to run when PHP is under safe mode, some parts of MediaWiki will not function as expected...
...however, you may be able to get round this particular issue. Please read the PHP documentation on safe mode at http://www.php.net/features.safe-mode.
Rob Church
On 01/12/05, Martin Baumann mailsgetlost@web.de wrote:
Hi,
Attempting to write... *Warning*: fopen(): SAFE MODE Restriction in effect. The script running as uid 600 is not allowed to write to directory /myfolder/.public_html/wiki/images owned by uid 38106 in */myfolder/.public_html/wiki/images/test.php* on line *8
Oh oh
Sounds bad?
Martin
Brion Vibber schrieb:
Martin Baumann wrote:
Thanks for your help. I get the following mwssage:
Attempting to write... *Fatal error*: Call to undefined function: file_put_contents() in */myfolder/.public_html/wiki/images/test.php* on line *4
file_put_contents() is new in PHP 5.
See http://www.php.net/file_put_contents
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I'd talk to your server administrators and explain the situation to them. Show them the error message you're having and get them to help work around it.
Rob Church
On 02/12/05, Martin Baumann mailsgetlost@web.de wrote:
I read the articles. But I am not shure what all this means in my case. Do I have to install a module?
As I already mentioned in one of my former postings, my wiki is hosted by a computing center of an university. So I guess I am not allowed to do a lot of changes to the server itself.
What do I have to change? In my wiki settings, to the server settings (I hope I am allowed to) or any other changes (no idea what this could be...)?
This is my first wiki and my first contact to PHP. Sorry if my questions seem stupid.
Thanks for your help,
Martin
Rob Church schrieb:
Not too horrendous, though be aware that if forced to run when PHP is under safe mode, some parts of MediaWiki will not function as expected...
...however, you may be able to get round this particular issue. Please read the PHP documentation on safe mode at http://www.php.net/features.safe-mode.
Rob Church
On 01/12/05, Martin Baumann mailsgetlost@web.de wrote:
Hi,
Attempting to write... *Warning*: fopen(): SAFE MODE Restriction in effect. The script running as uid 600 is not allowed to write to directory /myfolder/.public_html/wiki/images owned by uid 38106 in */myfolder/.public_html/wiki/images/test.php* on line *8
Oh oh
Sounds bad?
Martin
Brion Vibber schrieb:
Martin Baumann wrote:
Thanks for your help. I get the following mwssage:
Attempting to write... *Fatal error*: Call to undefined function: file_put_contents() in */myfolder/.public_html/wiki/images/test.php* on line *4
file_put_contents() is new in PHP 5.
See http://www.php.net/file_put_contents
-- brion vibber (brion @ pobox.com)
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org