Search Our Database

WordPress – Solving file_exists() [function.file-exists]: open_basedir restriction in effect.

Last updated on |
by

This is a common error shown on WordPress after moving the wordpress from one server to another:

file_exists() [function.file-exists]: open_basedir restriction in effect.

Its due to changed of the absolute path,
you will need to change the upload_path option in wordpress database:

1. Login to phpmyadmin which would normally located at http://yourdomain.com/phpmyadmin with your database username and password. You can get this by checking on the wp-config.php file

2. After login to phpmyadmin, click on the wp_options table:

Selection_001

3. Look for the column name upload_path, edit it with the new path in your new hosting server,
you can get this by checking in the file manager or FTP:

Selection_003

4. refresh you page and the open_basedir warning will be resolved.