• Hello everybody,
    I’ve set-up an new environment for my website spotview.nl in the folder spotview.nl/wordpress/

    When that was finished i wanted to migrate the whole new set-up to the main folder.
    Therefor i used some redirect plug-ins. But then i was no longer able to access my /wordpress/wp-admin.

    Then i’ve tried to download all files from the /wordpress/ directory and install it in the main directory, but that didn’t work also. Then i got the error message ‘there has been a critical error on your website. Please contact your site admin email instructions.’. But i didn’t receive an email. There was also a post on the internet that stated that i could call upon an url when i didn’t receive the email, but that trick didn’t work either.

    At this moment i see the error ‘file not found’ when i try to access /wordpress/wp-admin/

    So the main problem is that is can no longer access wp-admin. I’ve found different articles online that i’ve tried but no success. For example, i’ve tried to rename the plugin because that could have caused the malfunction.

    Does anybody know to fix this without starting all over? Because i did some serious alterations on that wordpress theme.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, let us first focus on fixing the /wordpress/ instance before moving anything to the main folder.

    It looks like the siteurl and home options are set to https://www.spotview.nl/, not to https://www.spotview.nl/wordpress because there is a redirect from https://www.spotview.nl/wordpress/wp-admin/ to https://www.spotview.nl/wp-login.php.

    Please firstly ensure all WordPress files are available inside the /wordpress/ folder.

    After that, please change the URL of the WordPress instance to https://www.spotview.nl/wordpress by following any of these solutions:
    https://www.ads-software.com/support/article/changing-the-site-url/#changing-the-url-directly-in-the-database
    https://www.ads-software.com/support/article/changing-the-site-url/#edit-wp-config-php

    Also, please disable the redirect plugins you used for the migration by removing their files or just renaming their folder names.

    When the /wordpress/ instance is fully functional, we’ll try to guide you on how to move the website to the root directory without using redirect plugins.

    • This reply was modified 2 years, 5 months ago by aatanasov.
    • This reply was modified 2 years, 5 months ago by aatanasov.
    Thread Starter renesant

    (@renesant)

    Hi @aatanasov, i’ve changed the url in phpadmin database and that worked! I was able to login again. And i also see the wordpress website i’ve made so far.

    You wrote maybe you can help me move the website to the root directory? If you can i would be very gratefull. After my first attempt i’m a bit spooked to try again on my own.

    Great, the website loads now, but I can see the permalinks aren’t configured correctly because the interior pages don’t load.

    Before starting the migration process, please refresh the permalinks from WP Admin -> Settings -> Permalinks (https://www.spotview.nl/wordpress/wp-admin/options-permalink.php).

    You can also perform a Site Health check using https://www.ads-software.com/plugins/health-check/.

    The idea is to ensure everything works as expected before going live.

    Thread Starter renesant

    (@renesant)

    Hi @aatanasov, after pressing ‘save’ in the permalink settings the pages did load again. Strange, perhaps due to the previous redirects.

    The diagnostic tool/plugin did not raise any serious questions besides some GA issues, but that’s for later.

    Thanks for your help so far.

    Great, here is how you can migrate the WordPress site to the live domain.

    1. Make a full backup of your web folder (including the current live site and the WordPress instance) and database. This will help you revert the current live site quickly in case something goes wrong.
    2. Create a folder called old. When the new website is live, you can remove this folder or move it outside the web folder.
    3. Move the current live website’s files to the old folder.
    4. Move the files from the wordpress folder to the root directory of your website (https://www.spotview.nl).
    5. Open the wp-config.php file and define the URL of the site as explained on https://www.ads-software.com/support/article/changing-the-site-url/#edit-wp-config-php — use https://www.spotview.nl (without a trailing slash at the end).
    6. Once that is done, try to access the WordPress dashboard using https://www.spotview.nl/wp-admin/
    7. Refresh the permalinks (just opening the Settings -> Permalinks page automatically refreshes the permalinks behind the scenes).
    8. Install https://www.ads-software.com/plugins/better-search-replace/
    9. Replace https://www.spotview.nl/wordpress with https://www.spotview.nl by following the Better Search Replace plugin’s instructions — this will fix all site’s links added to editors/custom fields. Please note the URLs mustn’t use a trailing slash at the end. The plugin’s Run as dry run option is helpful for testing the replacement before executing it. Replace only tables that use the prefix inside the wp-config.php file.
    10. Once that is done, review the front-end for any issues and the browser console for any 404 requests.
    11. Finally, run the Site Check tool and make sure the website is public for search engines (Settings -> Reading -> Search engine visibility).

    If something wrong happens, please revert the backup and let us know to assist further.

    • This reply was modified 2 years, 5 months ago by aatanasov.
    • This reply was modified 2 years, 5 months ago by aatanasov.
    • This reply was modified 2 years, 5 months ago by aatanasov.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘cannot access wp-admin anymore’ is closed to new replies.