WPIntell

Source evidence

Fatal Error – Snippet

WPCode – Insert Headers and Footers + Custom Code Snippets – WordPress Code Manager · support · 2025-12-29T12:59:00+00:00

questionsentiment
highseverity
0.42relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

5 / 25 rows with source links

20.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
CamZL1 resolved
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? 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/ 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? 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.

Comments

3 shown
markomiljanovic 2025-12-29T13:30:00+00:00

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/

CamZL1 2025-12-29T13:47:00+00:00

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?

markomiljanovic 2025-12-29T15:29:00+00:00

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.