Thread Starter
talie2
(@talie2)
The tutorial tells you to do what I’ve already explained I have done – I’ve moved wordpress sites in the past and never had a problem, that’s why I’m asking for help
I have the very same issue. Can’t figure out what I’m doing wrong.
WordPress is already in it’s own directory (1 below where index.php is). I just want to change the name of this directory.
I’ve followed the moving wordpress codex page 3 times and keep getting the above message. At step 9 everything gets messed up. I get the same errors as the original poster.
I’ve tried modifying the index.php file to reference the new directory. I’ve tried disabling the htaccess in the subdirectory. I don’t know what else to do but could really do with some help.
I can get back to stage 1 easily enough by moving the files back to the original directory and changing the site address in my database back to the original too.
When you move a site, you need to update the site url and home settings. This error message seems that you are missing files though.
Thanks for the input.
So first off in settings>general I updated the “WordPress address”
from : http://mystite.com/wordpress
to : http://mystite.com/newdir
(directory names are just for the purpose of the example)
I didn’t change the “Site address” as my index remains in the root, just the subfolder changes name. So it remained as
http://mystite.com
I saved this then I transferred the core files to the new directory.
At this point I’m at step 9 of Moving WordPress
I can’t proceed to step 10 as I no longer have access to the front of the site or the admin. It’s here I see the error messages the original poster mentioned.
Notice the URL of the error:
Warning: require_once(/home/ccon/public_html/wordpress//wp-includes/load.php) [function.require-once]: failed to open stream: No such file or directory in /home/ccon/public_html/wordpress/wp-load.php on line 46
* The part that says wordpress is the old directory name but it should be the new one.
I don’t know why this is happening.
So after this I changed the part in index.php (in the root)
from : require(‘.wordpress/wp-blog-header.php’);
to : require(‘./newdir/wp-blog-header.php’);
Taken from step 6 of Giving WordPress it’s own directory Using a pre-existing subdirectory install
This doesn’t change anything though so I retrace my steps to get back online again. I changed the folder “newdir” back to “wordpress” and access phpmyadmin to change the siteURL back. This brings my site back online again.
I still need to change the directory though as my client needs to use the name I have used for something else. I’m at a loss as to how I should proceed.
It’s trying to access a file in the old directory that no longer exists since you’ve moved it to the new directory. Try updating the site URL and home settings to point to the new directory where all the files are stored.
IF your new directory is “new” for example then you need to include it in the SITE URL and home.
Here’s a link to help you do that:
http://codex.wordpress.org/Changing_The_Site_URL
I’m prepared to try this but want to be clear why it’s necessary. The link you offered says
On the Settings->General screen in a single site installation of WordPress, there are two fields named “WordPress address (URL)” and “Site address (URL)”. These are also known as the “Home” and “Site URL” settings.
In settings>general I currently have
WordPress address (URL) : http://mystite.com/wordpress
Site address (URL) : http://mystite.com/
When I’m attempting to switch I change it to the following & save:
WordPress address (URL) : http://mystite.com/newdir
Site address (URL) : http://mystite.com/
(On settings>genereal beside site address it says : Enter the address here if you want your site homepage to be different from the directory you installed WordPress.)
When I check my database the siteURL is always as I expect it
Before changes:
siteURL: http://mysite.com/wordpress
home : http://mysite.com
After changes:
siteURL: http://mysite.com/newdir
home : http://mysite.com
Since I already have wordpress in a sub directory and I’m just trying to attempt to change the name of this directory shouldn’t I leave home as it is always. i.e http://mysite.com
Try using the same siteURL for the home settings and see if that resolves the issue. The problem is, it keeps looking for a file in the old location with /wordpress in the URL.