• I changed the WP Address and Site Address and moved newly completed site from subdirectory in GoDaddy to webroot. Now when I try to log in to http://millenniummusicdjservice.com/wp-admin or http://millenniummusicdjservice.com/wp-login I receive the errors below…

    Warning: array_keys() expects parameter 1 to be array, string given in D:\Hosting\2524201\html\wp-includes\class-wp-roles.php on line 126

    Warning: Invalid argument supplied for foreach() in D:\Hosting\2524201\html\wp-includes\class-wp-roles.php on line 126

    Warning: require_once(D:\Hosting\2524201\html/wp-admin/includes/upgrade.php) [function.require-once]: failed to open stream: No such file or directory in D:\Hosting\2524201\html\wp-admin\upgrade.php on line 23

    Fatal error: require_once() [function.require]: Failed opening required ‘D:\Hosting\2524201\html/wp-admin/includes/upgrade.php’ (include_path=’.;C:\php\pear’) in D:\Hosting\2524201\html\wp-admin\upgrade.php on line 23

    I checked the myPhp and millenniummusicdjservice.com – is listed, not millenniummusicdjservice.com/subdirectory. I have no idea what these errors are or what they relate to. Countless hours/days down the drown if I can’t figure out how to fix this. Any help is much appreciated.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Access your database via phpMyAdmin (usually found in your hosting account’s control panel) and change the siteurl and home values back following this guide: https://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database

    Generally we recommend that folks keep the domain mapped to the web root and just move WordPress following this guide: https://codex.wordpress.org/Moving_WordPress#Moving_Directories_On_Your_Existing_Server

    Thread Starter rmniven

    (@rmniven)

    Hello James. Thank you for the advice. You are suggesting that I return the `WP Address and Site Address to what it was prior to subtracting the subdirectory. In myPHP the URL is now millenniummusicdjservice.com. Previous to this it was millenniummusicdjservice.com/subdirectory. Change it back to this? In my GoDaddy hosting – there are no longer WP folders in the subdirectory, they have been moved to the Webroot. Does your above advice still apply?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    The files have indeed been moved properly? Ok, that’s a bit odd. I wonder if any were corrupted during the transfer.

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and delete then replace your copies of everything on the server 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.

    Thread Starter rmniven

    (@rmniven)

    Hello James. Almost there. I downloaded the wp-config.php and /wp-content/ directory, scrubbed the webroot and then re-installed WordPress in my GoDaddy hosting. After re-installation I uploaded the old wp-config.php and /wp-content/ directory. I can now access the wp-admin dashboard, but the site I built isn’t showing itself. See – http://millenniummusicdjservice.com/ the only “custom” piece I see is in the footer. Which makes me think the wp-content files have an issue or are not connected. Any more wisdom to get me to the finish line?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Your site seems to be operating now.

    Were you able to resolve the issue?

    Thread Starter rmniven

    (@rmniven)

    Hello James. The site theme and plugins are back and I can log in to the dashboard. The media folder in the dashboard is empty and none of my pages are there either. If I look in the wp-content folder in my GoDaddy hosting I can see the media/images in the appropriate folder, but I do not know where the pages are. Should the media and pages automatically re-connect after the re-install? Or is there something else I need to do?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    The pages would have been in the MySQL database, along with the Media library’s “index.”

    Did you move the database too? Check your wp-config.php file to make sure you’re pointed to the right database with the right table prefix.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Site address change from subdirectory to root site now not accessable’ is closed to new replies.