• I clicked on the update to upgrade WordPress to the latest version, then I could not log in again. When I try to do so I can see a message

    “There has been a critical error on this website.”

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello vijayhd2023 !

    1. Deactivate All WordPress Plugins

    2. Switch to a Default Theme

    3. Reinstall WordPress

    4. Turn On Debugging in WordPress

    WordPress comes with a built-in debugging system that allows you to catch errors, log them, and troubleshoot issues.

    To turn it on, you need to edit the wp-config.php file. Just locate the following line:

    	
    define( 'WP_DEBUG', false );

    Now, go ahead and replace this line with the following code:

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

    If you visit your WordPress website now, it will show you debugging information and the critical error message.

    Debug mode not only shows errors but warnings and notices too. This helps you find out what is causing the problem so that you can fix it.

    5. Increase PHP Memory Limit

    If your server doesn’t have enough resources to run PHP, then it may crash or become unresponsive. This could trigger a critical error in WordPress.

    To fix this, you can increase the PHP memory limit by telling your hosting server to use more memory for PHP.

    You can do that by entering the following line into your wp-config.php file.

    define( 'WP_MEMORY_LIMIT', '512M' );

    Don’t forget to save and upload your changes to the server.

    6. Upgrade Your PHP Version

    I think if you follow this step by step, Your problem will fix.

    Thank You

    Thread Starter vijayhd2023

    (@vijayhd2023)

    Thank you for your valuable response.

    I have an AWS Lightsail hosting server. So as you suggest increasing the memory limit for PHP, will work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Critical Error Found after update’ is closed to new replies.