• Resolved CamZL1

    (@danishhaidri)


    Hello, one of the snippets we were trying caused a fatal error. Since WPCode had multiple snippets, we only need to find the last one and delete it. If we disable the entire plugin we are able to login back in the wp-admin BUT as soon as the plugin is enabled it triggers the same fatal error and locks us out. So the question is where do we find the snippets in phpMyAdmin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support markomiljanovic

    (@markomiljanovic)

    Hi @danishhaidri,

    In order to get around the error and disable the faulty snippet you can use the WPCode Safe Mode which will prevent any snippet from being executed on the site.

    To access the safe mode simply add the parameter wpcode-safe-mode=1 to your admin url, for example https://yoursite.com/wp-admin/?wpcode-safe-mode=1

    Once you enter the safe mode you should simply deactivate the snippet from the WPCode interface. More details on how to access the safe mode can be found in this article: https://wpcode.com/docs/php-error-handling-safe-mode/

    Thread Starter CamZL1

    (@danishhaidri)

    Yes but how do we enter the safe mode when the plugin is deactivated (wp-admin/plugins.php). As soon as we activate the plugin the error happens, when will we get the chance to add the safe mode URL?

    Plugin Support markomiljanovic

    (@markomiljanovic)

    Hi @danishhaidri,

    Safe mode is only available when WPCode is active. Please first activate the plugin (even though this will trigger the fatal error). Once it’s activated, add the safe mode parameter to your admin URL as described earlier: https://yoursite.com/wp-admin/?wpcode-safe-mode=1

    The purpose of safe mode is precisely to let you access WPCode and deactivate problematic snippets even when the site is throwing a fatal error.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.