Support » Fixing WordPress » Renamed WordPress folder, got Warning & Fatal Error?

  • I renamed the folder for my wordpress page by doing this: http://codex.wordpress.org/Answers-Installation#Rename_Folder

    Now I’m getting the following error message when I try to visit the new address and get access the dashboard:

    Warning: require_once(/home/content/90/4542990/html/successfulnessacademy/wp-includes/load.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/90/4542990/html/successfulnessacademy/wp-load.php on line 49

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/90/4542990/html/successfulnessacademy/wp-includes/load.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/90/4542990/html/successfulnessacademy/wp-load.php on line 49

    And the following when I try to visit the site:

    Warning: require_once(/home/content/90/4542990/html/successfulnessacademy/wp-admin/admin.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/90/4542990/html/successfulnessacademy/wp-admin/index.php on line 10

    Fatal error: require_once() [function.require]: Failed opening required ‘/home/content/90/4542990/html/successfulnessacademy/wp-admin/admin.php’ (include_path=’.:/usr/local/php5/lib/php’) in /home/content/90/4542990/html/successfulnessacademy/wp-admin/index.php on line 10

    And the URL in these error messages (successfulnessacademy) is from the old address – not the new one.

    In case it matters, here are the lines from the files the error message points to:

    wp-load.pho, line 49: require_once( ABSPATH . WPINC . ‘/load.php’ );

    index.php, line 10: * Tells WordPress to load the WordPress theme and output it.

    How do I resolve this so I can get access to my site again?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Plugin Review Team Rep

    At the very top of that page is a warning that those directions are all deprecated. That means don’t use them.

    I’m deleting that page. It’s not been correct for YEARS.

    Read this one: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

    Thread Starter Torkel

    (@torkel)

    Well, that sucks. I clicked that link from another forum post about moving wordpress to a different directory, so I only read the part that the link takes you directly to. I wish the page would’ve been deleted before it f*cked my site up..

    I still need help getting access to my site again, as it is now I can’t access anything and the site is effectively dead. How do I fix the f-up?

    And, I can’t see which of those steps helps me move my entire install (root, all folders, and everything) to a new subfolder? I’m trying to move it from /successfulnessacademy to /successfulnessinstitute.

    Thread Starter Torkel

    (@torkel)

    Is there no solution to this? Will I have to start from scratch and rebuild everything?

    I’d really love it if there was a way to salvage my site, as it’d save me several days of work re-doing everything.

    First of all, these changes you should ALWAYS backup first. Second, try these in a local/dev/test environment.

    As per solution to your problem, you may try replace in your database and files any occurrences of “successfulnessacademy” to “successfulnessinstitute”

    One of the most popular tools for that is https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Again. Backup your database and files before trying this.

    Thread Starter Torkel

    (@torkel)

    Worked like a charm, thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Renamed WordPress folder, got Warning & Fatal Error?’ is closed to new replies.