• bluemonet

    (@bluemonet)


    I am unable to access my WordPress website

    Backend and Frontend display this error message

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

    Any suggestions on how I can fix this.

    Thanks

    Stephen

    • This topic was modified 1 year ago by James Huff. Reason: redundant link removed

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

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

    (@macmanx)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    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 (consult your hosting provider’s documentation for specifics on these), navigate to /wp-content/themes/ and rename the directory of your currently active theme. Hopefully, this will force the default theme to activate and rule out a theme-specific issue (theme functions can interfere like plugins).

    ignasp

    (@ignasp)

    To get a clearer picture of what’s causing the error, you need to enable PHP error reporting. This can usually be done from your hosting control panel. Alternatively, you can manually enable it by adding these lines two files:

    wp-config.php:
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, true);


    If you’re using an Apache server, add these lines to your .htaccess file:
    php_flag display_startup_errors on
    php_flag display_errors on
    php_flag html_errors on


    After enabling error reporting, revisit your website. Instead of the generic “critical error” message, you should now see a specific error message, which can guide you to the root cause.

    If the error points to a specific plugin or theme, try to deactivate the plugin or theme causing the issue. If you can’t access the backend, use an FTP client to rename the plugin or theme folder, which will disable it. Once disabled, check if there are updates available for the plugin or theme, as updates often include fixes for known issues.

    If the error isn’t related to a plugin or theme, it might be an issue with the WordPress core files. You can safely reinstall them via SSH. Execute the following command in your public_html directory:
    wp core download –skip-content –force

    Disclaimer:
    It’s important to note that using the wp core download –skip-content –force command is a safe operation for your website. This command specifically targets WordPress core system files for reinstallation. It does not affect your website’s content, such as images, posts, or pages, nor does it alter your installed plugins or themes.

    • This reply was modified 1 year ago by ignasp.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to fix this? There has been a critical error on this website.’ is closed to new replies.