while updating a theme through defender my site broke down and can't access it

I installed defender on http://www.dj-pedia.com which is the primary domain on my shared hosting which also has 24 other installs of wordpress in subfolders.

defender suggested to update the theme, but for some reason it got stuck

when trying to access the site I see the following url:
http://dj-pedia.com/wp-admin/install.php

It says:
The dj-pedia.com page isn’t working

dj-pedia.com redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

I can only access the site files through Godaddy, but impossible to login or to see the site. Help is appreciated :slight_smile:

  • Dimitris
    • Support Star

    Hey there WSeattle,

    hope you're doing good!

    As long as you have the latest theme files from your theme provider, could you please try to delete current theme folder in your server (i.e. /wp-content/themes/your-theme-name/) and try to access your admin page again?
    If this resolves the redirect issue, you can re-upload and activate your theme as a default one like TwentySeventeen will be in place of active theme.

    If this continues, try to deactivate all plugins by renaming
    /wp-content/plugins/
    to
    /wp-content/_plugins/
    and check admin page once more.
    Reference: http://www.wpbeginner.com/plugins/how-to-deactivate-all-plugins-when-not-able-to-access-wp-admin/

    You can even deactivate plugins one-by-one, like
    /wp-content/plugins/jetpack/
    to
    /wp-content/plugins/_jetpack/

    Look forward for your results!
    Warm regards,
    Dimitris

  • WSeattle
    • Flash Drive

    ok so I have some extra information which may help.

    All this happened after installing Defender and going through all the hardening options the plugin provides.

    With every site I have it seems to go like a breeze, but everything goes wrong when the main wordpress install on my shared hosting gets asked by bitdefender to update the security keys.

    this may have been what happened to dj-pedia as well.

    after trying to log in I get to this url: http://dj-meme.com/wp-admin/install.php

    this is where dj-pedia is completely broken down. But dj-meme.com asks me to set up a language and all and the site, like dj-pedia.com is gone..

    so now two of my sites seem to be broken.

  • Dimitris
    • Support Star

    Hello WSeattle,

    hope you're doing good today! :slight_smile:

    All this happened after installing Defender and going through all the hardening options the plugin provides.

    I thought this happened after a theme update. As Defender plugin also adds some rules in .htaccess file, could you please try to revert this file to its default state? You can find the appropriate snippet depending on your installation here https://codex.wordpress.org/htaccess
    If the file doesn't exist at all, then please do create it and insert the appropriate snippet from above link.

    I look forward for your results,
    Dimitris

  • Dimitris
    • Support Star

    Hello WSeattle,

    maybe a clean start will help us here then. Please perform a full backup (files and DB) if not already, before proceeding.

    1. Deactivate your plugins by renaming plugins folder to /wp-content/_plugins/.

    2. Delete any of your premium themes folders and leave only default ones like /wp-content/themes/twentysixteen/ and /wp-content/themes/twentyseventeen/.

    3. Keep your .htaccess file with default rules only.

    4. Replace WP core files. Simply download latest WP version from https://wordpress.org/download/.
    Uncompress the file and use a FTP client to connect to your server.
    Replace all folders and files apart from /wp-content/ folder which contains your site specific stuff like plugins, themes, uploads, translation files etc.

    If this issue remains after all that, then I'd like to have a look in your wp-config.php file as it will be the only file that haven't been changed (considering that plugins and premium themes are deactivated).
    As this is public forum, you should send us your details through our safe contact form https://premium.wpmudev.org/contact/ using this template:

    Subject: "Attn: Dimitris"
    - WordPress admin (login url/username/password)
    - FTP credentials (host/username/password)
    - link back to this thread for reference
    - any other relevant urls

    Select "I have a different question" for your topic - this and the subject line ensure that it gets assigned to me.

    Warm regards,
    Dimitris

  • WSeattle
    • Flash Drive

    Hi Dimitris, I was finally able to manage to get everything working again.

    First I updated the wp-config file

    Then the site got back up but my admin account wasn't able to get into the dashboard.

    After trying out a lot of things, I figured out how to make a new admin account and that worked so everything is back to normal again.

    Thank you for the help and happy new year.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.