If you’re moving a WordPress Website with WP e-Commerce to a new Host or domain name then you may have a few problems. Even if you change all the necessary domain names in the database you may still get an error similar to Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/path/to/your/host/directory/wp-content/plugins/wp-e-commerce/wpsc-theme/) is not within the allowed path(s): (/tmp:/var/sites) in /path/to/your/host/directory/public_html/wp-content/plugins/wp-e-commerce/wpsc-core/wpsc-constants.php on line 300.
Luckily this is easy to resolve. Here are a few simple instructions:
- Login to your Webhost Control Panel (e.g. Cpanel or Plesk)
- Go to phpMyAdmin or the MySQL administration tool provided by your Host
- Go to the wp-options table in your WordPress Database
- Check all fields that start with transient. Some may include the path of the old server directory. Simply edit the entry so that the path is that of the new Host
Your Online Shop should now work well.
Leave a Reply