Title: Issues moving WordPress
Last modified: August 22, 2016

---

# Issues moving WordPress

 *  Resolved [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/)
 * I moved WordPress (or should I say “tried” to move) from the wpress directory
   to the main site. I followed the instructions given at [http://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server](http://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server)
   to the letter. I cannot now get logged in.
 * I’ve been working with the trouble shooting info found here: [http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F](http://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F)
   but can’t seem to get it fixed.
 * I’m pretty sure it’s something super easy, I’m just not “getting” it!!
 * Here are the errors I’m getting:
 * Warning: include(/home3/MYNAME/public_html/wpress/wp-content/plugins/wp-super-
   cache/wp-cache-base.php): failed to open stream: No such file or directory in/
   home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line
   65
 * Warning: include(): Failed opening ‘/home3/MYNAME/public_html/wpress/wp-content/
   plugins/wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.:/opt/
   php54/lib/php’) in /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/
   wp-cache.php on line 65
 * Warning: include_once(/home3/MYNAME/public_html/wpress/wp-content/plugins/wp-
   super-cache/ossdl-cdn.php): failed to open stream: No such file or directory 
   in /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on
   line 82
 * Warning: include_once(): Failed opening ‘/home3/MYNAME/public_html/wpress/wp-
   content/plugins/wp-super-cache/ossdl-cdn.php’ for inclusion (include_path=’.:/
   opt/php54/lib/php’) in /home3/MYNAME/public_html/wp-content/plugins/wp-super-
   cache/wp-cache.php on line 82
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-login.php on line 418
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-login.php on line 431
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-includes/pluggable.php on line 913
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-includes/pluggable.php on line 914
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-includes/pluggable.php on line 915
 * If I’m reading it correctly, all or MOST of, the errors are boiling down to Line
   65 in the “wp-cache.php” file. The following is line 65:
 * include(WPCACHEHOME . ‘wp-cache-base.php’);
 * Can someone with more knowledge than I look at this at see if your fresh eyes
   can see something I can’t??
 * It would VERY MUCH be appreciated!!
 * Whatever other info you might need, please let me know and I will try to provide
   it as soon as I can….
 * Thank you!

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413016)
 * The only thing I can think that I had any questions about, was when I changed
   the URL from “mysite.com/wpress” to “mysite.com”, I did NOT include a “/” after
   my URL: ie. “mysite.com/”. If that was a necessary step, it was not included 
   in the instructions. If it was, is there any way to edit the current files to
   include it?
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413029)
 * Checked MySQL, and the URL is correct there.
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413030)
 * Contents of “wp-cache-base.php” which seems to be the file that is causing the
   issue?
 * <?php
    $known_headers = array(“Last-Modified”, “Expires”, “Content-Type”, “Content-
   type”, “X-Pingback”, “ETag”, “Cache-Control”, “Pragma”);
 * if (!class_exists(‘CacheMeta’)) {
    class CacheMeta { var $dynamic = false; var
   $headers = array(); var $uri = ”; var $post = 0; } }
 * $WPSC_HTTP_HOST = htmlentities( $_SERVER[ ‘HTTP_HOST’ ] );
 * // We want to be able to identify each blog in a WordPress MU install
    $blogcacheid
   = ”; if ( defined( ‘VHOST’ ) || ( defined( ‘WP_ALLOW_MULTISITE’ ) && constant(‘
   WP_ALLOW_MULTISITE’ ) == true ) ) { $blogcacheid = ‘blog’; // main blog if( defined(‘
   SUBDOMAIN_INSTALL’ ) && constant( ‘SUBDOMAIN_INSTALL’ ) == true ) { $blogcacheid
   = $WPSC_HTTP_HOST; } else { if ( isset( $base ) == false ) $base = ”; $request_uri
   = preg_replace(‘/[ <>\’\”\r\n\t\(\)]/’, ”, str_replace( ‘..’, ”, $_SERVER[‘REQUEST_URI’]));
   if( strpos( $request_uri, ‘/’, 1 ) ) { if( $base == ‘/’ ) { $blogcacheid = substr(
   $request_uri, 1, strpos( $request_uri, ‘/’, 1 ) – 1 ); } else { $blogcacheid 
   = str_replace( $base, ”, $request_uri ); if ( $blogcacheid != ” ) $blogcacheid
   = substr( $blogcacheid, 0, strpos( $blogcacheid, ‘/’, 1 ) ); } if ( ‘/’ == substr(
   $blogcacheid, -1)) $blogcacheid = substr($blogcacheid, 0, -1); } $blogcacheid
   = str_replace( ‘/’, ”, $blogcacheid ); } }
 * ?>
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413036)
 * I’ve looked at the “wp-config.php” file, and it is saying that the database password
   was the original password issued at installation, as opposed to the one I changed
   it to.
 * I’ve tried logging in using the original password, but it still doesn’t log me
   in. Should I try changing the password withing the “wp-config.php” file to the
   one I thought I CHANGED it to??
 * Any ideas? Sorry if I am seeming to be impatient, I worked on this site until
   3 am, and just moving the files should not have changed them this much!
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413037)
 * Ok, I tried that and it was not the answer. So I’ve tried using the original 
   password to login. I still can’t get in, but get fewer errors…
 * Warning: include(/home3/wleute/public_html/wpress/wp-content/plugins/wp-super-
   cache/wp-cache-base.php): failed to open stream: No such file or directory in/
   home3/wleute/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line
   65
 * Warning: include(): Failed opening ‘/home3/wleute/public_html/wpress/wp-content/
   plugins/wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.:/opt/
   php54/lib/php’) in /home3/wleute/public_html/wp-content/plugins/wp-super-cache/
   wp-cache.php on line 65
 * Warning: include_once(/home3/wleute/public_html/wpress/wp-content/plugins/wp-
   super-cache/ossdl-cdn.php): failed to open stream: No such file or directory 
   in /home3/wleute/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on
   line 82
 * Warning: include_once(): Failed opening ‘/home3/MYNAME/public_html/wpress/wp-
   content/plugins/wp-super-cache/ossdl-cdn.php’ for inclusion (include_path=’.:/
   opt/php54/lib/php’) in /home3/MYNAME/public_html/wp-content/plugins/wp-super-
   cache/wp-cache.php on line 82
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-login.php on line 418
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php:65)
   in /home3/MYNAME/public_html/wp-login.php on line 431
 * It seems to be about 3 fewer errors than using the “newer” password.
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413073)
 * I really AM trying to figure this out, hopefully someone more knowlegeable will
   be able to help soon… Or my struggles will help someone else, LOL!
 * Anyway, I have been trying the code at [http://codex.wordpress.org/Login_Trouble](http://codex.wordpress.org/Login_Trouble)
   under Site URL Redirecting. I have added both these codes into wp-login.php, 
   both separately and together. The instructions do not state WHERE to place the
   code within the file, but I have placed them right under the “Bootstrap” instruction.
 * // If someone has moved WordPress let’s try to detect it
    // if ( dirname(‘[http://&#8217](http://&#8217);.
   $_SERVER[‘HTTP_HOST’] . $_SERVER[‘PHP_SELF’]) != get_settings(‘siteurl’) ) //
   update_option(‘siteurl’, dirname(‘[http://&#8217](http://&#8217); . $_SERVER[‘
   HTTP_HOST’] . $_SERVER[‘PHP_SELF’]) );
 * //FIXME: do comment/remove these hack lines. (once the database is updated)
    
   update_option(‘siteurl’, ‘[http://alternatives4living.com&#8217](http://alternatives4living.com&#8217););
   update_option(‘home’, ‘[http://alternatives4living.com&#8217](http://alternatives4living.com&#8217););
 * And I now can see an incomplete and corrupted version of the site (which IS “
   progress”!!) And I now only have FOUR errors:
 * Warning: include(/home3/wleute/public_html/wpress/wp-content/plugins/wp-super-
   cache/wp-cache-base.php): failed to open stream: No such file or directory in/
   home3/wleute/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on line
   65
 * Warning: include(): Failed opening ‘/home3/MYNAME/public_html/wpress/wp-content/
   plugins/wp-super-cache/wp-cache-base.php’ for inclusion (include_path=’.:/opt/
   php54/lib/php’) in /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/
   wp-cache.php on line 65
 * Warning: include_once(/home3/MYNAME/public_html/wpress/wp-content/plugins/wp-
   super-cache/ossdl-cdn.php): failed to open stream: No such file or directory 
   in /home3/MYNAME/public_html/wp-content/plugins/wp-super-cache/wp-cache.php on
   line 82
 * Warning: include_once(): Failed opening ‘/home3/MYNAME/public_html/wpress/wp-
   content/plugins/wp-super-cache/ossdl-cdn.php’ for inclusion (include_path=’.:/
   opt/php54/lib/php’) in /home3/MYNAME/public_html/wp-content/plugins/wp-super-
   cache/wp-cache.php on line 82
 * BTW, Line 82 of wp-cache.php looks like this:
 * include_once( WPCACHEHOME . ‘ossdl-cdn.php’ );
 * AND…. not sure what “:/opt/php54/lib/php” is – but it is in my original “.htaccess”
   file which I had renamed “.htaccess1” to avoid it being overwritten….
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413077)
 * Oh… realized why that happened, I accidentally added the “wpress” subdirectory
   after mysitename.com
 * mysitename.com/wpress/wp-login.php
 * If I change that to mysitename.com/wp-login.php I don’t get the incomplete site,
   but the error is now different. And it says cookies are blocked due to unexpected
   output…
 * *throws hands up in the air*
 *  Thread Starter [alternatives4living](https://wordpress.org/support/users/alternatives4living/)
 * (@alternatives4living)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413096)
 * SUCCESS!!!!!!
 * It really WAS easy, it’s just that none of the “errors” pointed me in this direction!!
 * After moving the files, the wp-config.php had a line in there that still said:
 * define( ‘WPCACHEHOME’, ‘/home3/wleute/public_html**/wpress**/wp-content/plugins/
   wp-super-cache/’ ); //Added by WP-Cache Manager
 * After I removed the “wpress/” out of the line, I was able to get to my dashboard.
 * Hope all my struggles all day long help someone else out!!!
 *  [caineuk](https://wordpress.org/support/users/caineuk/)
 * (@caineuk)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413383)
 * Thanks for figuring this out. Worked a treat. Done it before on a different server
   no issues. This time – bit of a nightmare!
 *  [ShellsintheKeys](https://wordpress.org/support/users/shellsinthekeys/)
 * (@shellsinthekeys)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413384)
 * YOU ARE MY HERO. I started feeling a mounting panic because the site I just redesigned
   is being announced at their huge gala in 4 hours, and I had visions of failure.
 * Thank you thank you thank you thank you!
 *  [yanay](https://wordpress.org/support/users/yanay/)
 * (@yanay)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413385)
 * I thank you from the depth of my heart
    You saved me lots of time Thank you !!!

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘Issues moving WordPress’ is closed to new replies.

## Tags

 * [moving-wordpress](https://wordpress.org/support/topic-tag/moving-wordpress/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 4 participants
 * Last reply from: [yanay](https://wordpress.org/support/users/yanay/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/issues-moving-wordpress/#post-5413385)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
