[wp-trac] [WordPress Trac] #11601: Touch error during plugin upgrade
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 30 07:46:25 UTC 2009
#11601: Touch error during plugin upgrade
--------------------------+-------------------------------------------------
Reporter: mrmist | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Filesystem | Version: 3.0
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
Comment(by dd32):
try var_dump(wp_tempnam()); instead of echo'ing it..
Looking at [http://core.trac.wordpress.org/browser/trunk/wp-
admin/includes/file.php#L179 the function] could you add a debug in there,
Well, Replace it with this:
{{{
function wp_tempnam($filename = '', $dir = ''){
var_dump("wp_tempnam($filename, $dir)");
if ( empty($dir) )
$dir = get_temp_dir();
$filename = basename($filename);
if ( empty($filename) )
$filename = time();
var_dump(compact('dir', 'filename'));
$filename = preg_replace('|\..*$|', '.tmp', $filename);
$filename = $dir . wp_unique_filename($dir, $filename);
var_dump(compact('filename'));
touch($filename);
return $filename;
}
}}}
Take a look at the output, and check you have writable access to the
directories mentioned.
Touch() is being used to create the file, so why its complaining it doesnt
exist, seems to point to there being a issue accessing the path its
chosen.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11601#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list