• Resolved Hasnain

    (@hnawaz)


    i am getting this error on my WordPress portal “There has been a critical error on your website. Please check your site admin email inbox for instructions.” i only try to update the WordPress core to newer version as it was showing me for update to 5.5, during the update page was taking too long so the page refreshed and i start getting this message… Also i do not get any email for instructions – pls anyone advise – I am new to WordPress just start learning – Many Thanks

Viewing 6 replies - 1 through 6 (of 6 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. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    As for the email not being sent, it sounds like your hosting provider has disabled PHP’s mail() function, which is used by WordPress to send you email notifications, and is also used by contact form plugins and more.

    This is a common safeguard employed by hosting providers when they suspect that another customer on the same server is sending spam emails directly from the server.

    Another alternative is that PHP’s mail() function is still active, but spammer activity from the server has already caused any email sent from it to be blacklisted. This would result in the emails being sent, but never received by any email address with basic anti-spam capabilities.

    You can check this by leaving a comment on your site and checking if you receive an email. Another alternative would be to use the Health Check plugin and sending yourself a test email from the plugin’s Tools tab to see if it works.

    If you didn’t receive a test email, you could try using an SMTP plugin to configure your WordPress site to use your email’s outgoing mail server instead of PHP’s mail() function.

    Thread Starter Hasnain

    (@hnawaz)

    @macmanx Thank you for your message. i try the option of manually renaming the themes and plugins directory but still the main portal not able to login – its giving” me same msg “There has been a critical error on your website. Please check your site admin email inbox for instructions.” kindly assist what further need to check. Thanks in advance.

    Moderator James Huff

    (@macmanx)

    Ok, try downloading WordPress again, 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), 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 Hasnain

    (@hnawaz)

    @macmanx Thank you for your message. After replacing the files/folders (except the wp-config.php file and the /wp-content/ directory) as you suggested – finally the website came back online but the WordPress admin portal still showing error “There has been a critical error on your website.” please advise

    Moderator James Huff

    (@macmanx)

    Thread Starter Hasnain

    (@hnawaz)

    @macmanx – Finally now the WordPress admin portal is also working, i again checked during upload the plugin.php was not replaced due to some error, so i again replace the same by reconnecting the ftp server. Then went to portal site and refresh the page – the WordPress pops-up message ‘Database update required’ – i click update database and login and finally was into my WordPress admin portal. Thank you so much for your support. Appreciated!! #staysafe #stayblessed.

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