• ajassat

    (@ajassat)


    Hi

    I get the following message when trying to access my site:

    There has been a critical error on this website.

    Any ideas on how to fix this?

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Vlad T

    (@vladytimy)

    Hi, @ajassat

    Try manually deactivating your plugins using one of the two methods listed below, without any Dashboard access required.
    (also described here). If that resolves the issue, reactivate each one individually until you find the cause.

    1. Reset your plugins folder via FTP or the file manager provided in your host’s control panel. This method preserves plugin options but requires plugins be manually reactivated.

    • Navigate to the wp-contents folder
    • Rename the folder plugins in it to plugins.hold
    • Go to Dashboard > Plugins and you’ll see all “missing” plugins have been disabled.
    • Then, rename plugins.hold back to plugins and activate in Dashboard > Plugins all the plugins except the one causing troubles

    2. Use phpMyAdmin to deactivate all plugins.

    • In the table wp_options, under the option_name column find the active_plugins field. (Note: The table prefix of wp_ may be different if you changed it when installing)
    • On this row, change the option_value field to: a:0:{}. Save the changes and this will deactivate all plugins.
    • Then from Dashboard > Plugins you need to reactivate all plugins, except the one causing you troubles

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, 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).

    Hope this helps,
    Kind regards!

    Thread Starter ajassat

    (@ajassat)

    I tried the first option

    I renamed plugins to plugins.hold

    I then navigated to /wp-admin/plugins.php but I get the same error message:

    There has been a critical error on this website. Please check your site admin email inbox for instructions.

    Vlad T

    (@vladytimy)

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, 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).

    Please do this as well.

    Thread Starter ajassat

    (@ajassat)

    I navigated to wp/content/themes and renamed the active theme directory
    I still get the same error message

    Adam

    Vlad T

    (@vladytimy)

    Errors like this are logged. Check the error log on your server. If you can’t find the log, please contact your host. (It should be something like error_log)

    Meantime, enable wp_debug and wp_debug_log and after an error, look at wp-content/debug.log to see if anything gets logged there and let us know. When pasting code here, please use CODE tag above to start and end the code.

    To enable that, insert this before /* That’s all, stop editing! Happy blogging. */ in the wp-config.php file.

    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );

    More info about debugging here https://www.ads-software.com/support/article/debugging-in-wordpress/

    Thread Starter ajassat

    (@ajassat)

    Ok I enabled wp_debug and wp_debug_log. Here is the contents of the log file

    [14-Mar-2021 16:30:57 UTC] PHP Warning: require(/home/domains/vol3/993/3249993/user/htdocs/wp-includes/https-detection.php): failed to open stream: No such file or directory in /home/domains/vol3/993/3249993/user/htdocs/wp-settings.php on line 174
    [14-Mar-2021 16:30:57 UTC] PHP Fatal error: require(): Failed opening required ‘/home/domains/vol3/993/3249993/user/htdocs/wp-includes/https-detection.php’ (include_path=’.:/usr/share/pear’) in /home/domains/vol3/993/3249993/user/htdocs/wp-settings.php on line 174
    [14-Mar-2021 16:30:57 UTC] PHP Warning: require(/home/domains/vol3/993/3249993/user/htdocs/wp-includes/https-detection.php): failed to open stream: No such file or directory in /home/domains/vol3/993/3249993/user/htdocs/wp-settings.php on line 174
    [14-Mar-2021 16:30:57 UTC] PHP Fatal error: require(): Failed opening required ‘/home/domains/vol3/993/3249993/user/htdocs/wp-includes/https-detection.php’ (include_path=’.:/usr/share/pear’) in /home/domains/vol3/993/3249993/user/htdocs/wp-settings.php on line 174

    Vlad T

    (@vladytimy)

    Try to replace all WordPress files manually by doing step #1 here: https://www.ads-software.com/support/article/updating-wordpress/#step-1-replace-wordpress-files

    Please make sure you make a backup of your website before, just in case anything goes wrong – especially wp-content folder

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘There has been a critical error on this website.’ is closed to new replies.