Support » Fixing WordPress » There has been a critical error on this website. Please check your site admin em

  • Resolved realhamzamalik

    (@realhamzamalik)


    I just add this code to remove the sidebar

        if( !is_category() && !is_archive() ) {
        get_sidebar();
    }

    in the code snippets plugin

    Now my website is giving me the error “There has been a critical error on this website. Please check your site admin email inbox for instructions.” and I am unable to resolve this issue.

    I just want to access my website admin. Kindly resolve my issue.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • lisa

    (@contentiskey)

    if you have access to your plugins folder — temporarily rename the folder for the code snippets plugin — renaming the folder will deactivate the plugin and allow for further troubleshooting / fixing.

    if you are not sure how to find your plugins folder, please contact your webhost’s support team to request guidance.

    alternatively, start a new topic in the code snippets plugin support area:
    https://wordpress.org/support/plugin/code-snippets/

    Thread Starter realhamzamalik

    (@realhamzamalik)

    I have found a better solution that solved my problem.

    Here is the solution

    If you made a fatal error in PHP code and the snippet was activated in the WordPress dashboard. You are in trouble, but not so bad. You are still able to deactivate the Code Snippets plugin in the safe mode.
    You can enable safe mode on a per-page basis by appending &snippets-safe-mode=1 to the end of the current page’s URL. This will allow you to log in to your site and deactivate any snippets that are causing issues.

    For example, you would change the WordPress admin area URL from this:
    https://example.com/wp-admin/admin.php?page=snippets
    … to this:
    https://example.com/wp-admin/admin.php?page=snippets&snippets-safe-mode=1`

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘There has been a critical error on this website. Please check your site admin em’ is closed to new replies.