BLOGS

ID #1098

open_basedir WordPress Upgrade Bug Fix

An error occurs in the Admin panel after upgrading from one version of Wordpress to another due to a restriction with open_basedir. Actuall error message may vary depending on Wordpress version, open_basedir.

 

Error:


Warning: file_exists () [function.file-exists]: open_basedir restriction in effect. File (/tmp//wordpress-2.9.zip) is not within the allowed path (s):
(/var/www/<my_username_hidden>/html/:/var/www/<my_username_hidden>/phptmp/:/var/www/<my_username_hidden>/files/:/var/www/<my_username_hidden>/atd/) in
/var/www/<my_username_hidden>/html/wp-includes/functions.php on line 2118

Warning: touch () [function.touch]: SAFE MODE Restriction in effect. The script whose uid is 1411 is not allowed to access /tmp owned by uid 0 in /var/www/<my_username_hidden>/html/wp-admin/includes/file.php on line 175


 

 


 

Resolution:

 

Defined constant with the folder name, what was allowed (selected in bold in error text). Note: You may also want to contact your hosting provider for more information about the open_basedir restriction.

 

In the file wp-config.php
define ('WP_TEMP_DIR', '/var/www/<my_username_hidden>/phptmp/');

Tags: open_basedir

Related entries:

Last update: 2010-08-23 07:56
Author: Admin
Revision: 1.0

TechNetSource on Facebook
| More