skip to Main Content

My WordPress website https://poaa.ca/ is not loading and I’m facing a critical error issue for the last two days. I tried many tricks to fix the issue like disabled plugins, themes, and show errors. I added this code to my config file, but still errors not showing. What can I do? Your help will be appreciated.

define( 'WP_DEBUG', true )
define( 'WP_DEBUG_LOG', true )
define( 'WP_DEBUG_DISPLAY', false )
@ini_set( 'display_errors', 0 )

2

Answers


    1. Did you try to Revert to a Default Theme. Remove theme and upload WordPress Twenty Twenty theme.

    2. Increase PHP memory limit up to 128M – 1G.

    3. Update PHP version.

    One of these options will solve your problem.

    Login or Signup to reply.
  1. To fix the issue,

    1. Open your website Cpanel – File Manager

    2. Inserted this code in your wp-config.php file to create a Debug Log.

    `// Enable WP_DEBUG mode

    define( ‘WP_DEBUG’, true );

    // Enable Debug logging to the /wp-content/debug.log file

    define( ‘WP_DEBUG_LOG’, true );

    // Disable display of errors and warnings

    define( ‘WP_DEBUG_DISPLAY’, false );

    @ini_set( ‘display_errors’, 0 );`

    it will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.

    1. Go to the Debug Log file, download, and open the file using a code editor.

    2. If the error is from the post file, download this post file

    3. Replace the file in the directory as shown in your Debug Log file.

    4. Refresh your website, and enjoy.

    5. Don’t forget to go back to step and remove the code you added to Wp_config file

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search