Hey Everyone,
I've been looking around all day and all the solutions I have tried did not work. My issue is a fairly common one. After uploading a file I get:
Internal Error Could not rename file "C:\wamp\tmp\php16F.tmp" to "public/c/c7/test.png"
media wiki creates the folders "c" and "c7" inside of the images folder, but fails to move the image. During the upload i can see the file "C:\wamp\tmp\php16F.tmp" being created, then disappearing.
I tried changing directory permissions in windows, changing the upload dir for mediawiki and changing the the mediawiki upload permissions. file upload is enabled in PHP.
This is a wamp virtual host, the sites are located on the D: and wamp is installed (obviously) to the C:.
The windows issues I found seemed to be related to IIS, which doesn't apply here since apache runs under whatever user opens wamp.
Any help would be great, Thanks!
-Rob
On 8/16/09 3:45 PM, Rob Isakson wrote:
Internal Error Could not rename file "C:\wamp\tmp\php16F.tmp" to "public/c/c7/test.png"
[snip]
This is a wamp virtual host, the sites are located on the D: and wamp is installed (obviously) to the C:.
I don't think PHP likes renaming files across volumes on Windows, so it's unable to move the file from the temp dir on C: to the permanent dir on D:.
Try editing your php.ini and changing the upload_tmp_dir setting to something on your D: drive; that should clear it up. (Make sure file permissions on that dir are set appropriately of course!)
-- brion
AMAZING! thanks Brion for the help, much appreciated! Worked like a charm. Thanks Again! Rob
On Mon, Aug 17, 2009 at 3:55 PM, Brion Vibber brion@wikimedia.org wrote:
On 8/16/09 3:45 PM, Rob Isakson wrote:
Internal Error Could not rename file "C:\wamp\tmp\php16F.tmp" to "public/c/c7/test.png"
[snip]
This is a wamp virtual host, the sites are located on the D: and wamp is installed (obviously) to the C:.
I don't think PHP likes renaming files across volumes on Windows, so it's unable to move the file from the temp dir on C: to the permanent dir on D:.
Try editing your php.ini and changing the upload_tmp_dir setting to something on your D: drive; that should clear it up. (Make sure file permissions on that dir are set appropriately of course!)
-- brion
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Rob Isakson wrote:
AMAZING! thanks Brion for the help, much appreciated! Worked like a charm. Thanks Again! Rob
On Mon, Aug 17, 2009 at 3:55 PM, Brion Vibber brion@wikimedia.org wrote:
On 8/16/09 3:45 PM, Rob Isakson wrote:
Internal Error Could not rename file "C:\wamp\tmp\php16F.tmp" to "public/c/c7/test.png"
[snip]
This is a wamp virtual host, the sites are located on the D: and wamp is installed (obviously) to the C:.
I don't think PHP likes renaming files across volumes on Windows, so it's unable to move the file from the temp dir on C: to the permanent dir on D:.
Well, I did test for such posibility when reading about the C: and D: drives, and I was able to successfully do a rename() from one volume to another on windows. Perhaps it has been fixed in a php version newer than the one which you got with WAMP.
hmm, here is my setup: ProductVersionMediaWiki http://www.mediawiki.org/1.15.1PHPhttp://www.php.net/5.3.0 (apache2handler)MySQL http://www.mysql.com/5.1.36-community-log Uploads working now for me. thanks again all.
On Mon, Aug 17, 2009 at 5:14 PM, Platonides Platonides@gmail.com wrote:
Rob Isakson wrote:
AMAZING! thanks Brion for the help, much appreciated! Worked like a
charm.
Thanks Again! Rob
On Mon, Aug 17, 2009 at 3:55 PM, Brion Vibber brion@wikimedia.org
wrote:
On 8/16/09 3:45 PM, Rob Isakson wrote:
Internal Error Could not rename file "C:\wamp\tmp\php16F.tmp" to
"public/c/c7/test.png"
[snip]
This is a wamp virtual host, the sites are located on the D: and wamp
is
installed (obviously) to the C:.
I don't think PHP likes renaming files across volumes on Windows, so it's unable to move the file from the temp dir on C: to the permanent dir on D:.
Well, I did test for such posibility when reading about the C: and D: drives, and I was able to successfully do a rename() from one volume to another on windows. Perhaps it has been fixed in a php version newer than the one which you got with WAMP.
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Rob Isakson wrote:
hmm, here is my setup: ProductVersionMediaWiki http://www.mediawiki.org/1.15.1PHPhttp://www.php.net/5.3.0 (apache2handler)MySQL http://www.mysql.com/5.1.36-community-log Uploads working now for me. thanks again all.
Odd. Seems that cross-volume rename on windows works for 5.2.10 but not for 5.3.0
echo "Hello world" > D:\test php move.php
type move.php <?php echo "D:\test" . `dir D:\test`; echo "E:\test" . `dir E:\test`;
rename("D:\test", "E:\test");
echo "D:\test" . `dir D:\test`; echo "E:\test" . `dir E:\test`;
mediawiki-l@lists.wikimedia.org