Title: Error when moving directory on same server
Last modified: August 22, 2016

---

# Error when moving directory on same server

 *  [pulkys](https://wordpress.org/support/users/pulkys/)
 * (@pulkys)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/)
 * I built my wordpress site in a subdirectory for [http://www.mysticacostarica.com](http://www.mysticacostarica.com)
 * Everything was built in [http://www.mysticacostarica.com/wordpress](http://www.mysticacostarica.com/wordpress)
 * (Currently there is a redirect pointing to the wordpress files, which is less
   than ideal because the URL still includes /wordpress/…)
 * I tried to move everything up one folder, to the main domain, and I checked in
   to see if I could log into the wp-admin or the wp-login.php and both give me 
   this error:
 * “Parse error: syntax error, unexpected $end in /home/content/68/7040868/html/
   wp-includes/class-wp.php on line 568”
 * And changing the site URL and site details through phpmyadmin don’t seem to resolve
   anything.
 * How can I port my files over and successfully get the site running in the main
   directory?
 * Thanks!

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

 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942425)
 * You still have the redirect in place. Does that mean you moved everything back?
 * If so, follow this guide: [https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server](https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server)
 *  Thread Starter [pulkys](https://wordpress.org/support/users/pulkys/)
 * (@pulkys)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942431)
 * Yes I moved it back because it wasn’t working, I did try that guide and am getting
   that error
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942439)
 * Ok, try the guide at [https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server](https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server)
   one more time.
 * It’s likely a plugin or theme file is conflicting, so once the move is done, 
   and if you still see the error of course, try [manually resetting your plugins](https://codex.wordpress.org/FAQ_Troubleshooting#How_to_deactivate_all_plugins_when_not_able_to_access_the_administrative_menus.3F)(
   no Dashboard access required). If that resolves the issue, reactivate each one
   individually until you find the cause.
 * If that does not resolve the issue, access your server via [FTP or SFTP](https://codex.wordpress.org/FTP_Clients),
   navigate to `/wp-content/themes/` and rename the directory of your currently 
   active theme. This will force the default theme to activate and hopefully rule-
   out a theme-specific issue (theme functions can interfere like plugins).
 *  Thread Starter [pulkys](https://wordpress.org/support/users/pulkys/)
 * (@pulkys)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942442)
 * alright will give that a shot, thanks!
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942443)
 * You’re welcome!
 *  Thread Starter [pulkys](https://wordpress.org/support/users/pulkys/)
 * (@pulkys)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942642)
 * I can’t get through step 8, that’s when I get the error message.
 * Deactivated all the plugins and tried again, still stuck at 8 – same error message.
 * Renamed the theme directory and still got the same error at the same place… I’m
   stuck?
 *  Thread Starter [pulkys](https://wordpress.org/support/users/pulkys/)
 * (@pulkys)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942643)
 * And now that I changed my theme directory, I can’t access the site!
 * The homepage works, but none of the other pages… I get a 404. How can I at least
   get back to where I was?
 *  Thread Starter [pulkys](https://wordpress.org/support/users/pulkys/)
 * (@pulkys)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942644)
 * I have set the old site files back live, but the wordpress site won’t function…
   You can see it at [http://www.mysticacostarica.com/wordpress](http://www.mysticacostarica.com/wordpress)
 * Just the homepage works, none of the links.
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942648)
 * Did you do steps 4, 5, and 6 first?
 * If so, try [downloading WordPress](https://wordpress.org/download/) again and
   delete then replace your copies of everything **except** the `wp-config.php` 
   file and the `/wp-content/` directory with fresh copies from the download. This
   will effectively replace all of your core files without damaging your content
   and settings. Some uploaders tend to be unreliable when overwriting files, so
   don’t forget to delete the original files before replacing them.

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

The topic ‘Error when moving directory on same server’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [James Huff](https://wordpress.org/support/users/macmanx/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/error-when-moving-directory-on-same-server/#post-5942648)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
