Forum Moderators: coopster
I've contacted my host to see what they have to say, but I thought we licked this problem before:
When it succeded, it reads:
Temp Filename:
/var/tmp/php9thld3
When it fails it reads:
Temp Filename:
/tmp/phpGvLor6,
ERROR opening file /tmp/phpGvLor6 - Size
I'm assuming that when it succeeds it's using the tmp dir local to the site, but when it fails it seems to be using the root tmp dir.
open_basedir [php.net]When a script tries to open a file ... the location of the file is checked. When the file is outside the specified directory-tree, PHP will refuse to open it. All symbolic links are resolved, so it's not possible to avoid this restriction with a symlink.
open_basedir......../usr/www/mycurrentheadache.com/:/var/tmp
path upon failure.../tmp/phpGvLor6
Have you asked the server admin to have a look at the
open_basedir paths in the php.ini and compare them to the directory being used upon failure? Looks like an issue to me...
The reason I ask is that it would be nice to post the exact cause here in this forum for other folks to see, especially those that run into the same issues you did. That way they won't have to go through days of troubleshooting (like you did). If they would be so kind as to let you know exactly what the change was that corrected the action, please post it for us. Thanks!
Update
OK, I just read the other thread that gives the details:
Troubles Uploading Images [webmasterworld.com]
<edit>Found the answer was already posted in the other thread related to this issue</edit>