Title: Php code snippets turning off automatically
Last modified: August 16, 2022

---

# Php code snippets turning off automatically

 *  Resolved [Ims Storm van Leeuwen](https://wordpress.org/support/users/whimsicalcodingman/)
 * (@whimsicalcodingman)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-code-snippets-turning-off-automatically/)
 * Hi all!
 * I was wondering if anyone else is having the problem where code snippets turn
   off automatically when making changes throughout your website.
 * This keeps happening to me, and i cannot find out why, since the Php snippets
   work when turned on, and seem to automatically turn off when i make some CSS 
   or HTML changes from within Elementor page builder for example. To my knowledge,
   this should not work considering the fact that i am not adding/editing any Php
   snippets anywhere else on the site.
 * Does anyone experience this as well and have a hunch what might be causing this?
   Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-code-snippets-turning-off-automatically%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/php-code-snippets-turning-off-automatically/#post-15922735)
 * Hi [@whimsicalcodingman](https://wordpress.org/support/users/whimsicalcodingman/),
 * Thanks for reaching out. The way WPCode’s error handling works is that if a PHP
   snippet you have enabled throws a fatal error that could prevent you from accessing
   your websites’s admin it will automatically turn it off, that way you don’t get
   locked out of your site unable to make changes.
 * In this case, what’s likely happening is that the snippet itself doesn’t have
   a syntax error that can get detected right away but probably throws an error 
   later (like when you make the changes you described) and it gets automatically
   disabled.
 * The quickest way to find out what is happening is to look at your server’s PHP
   error logs. We have plans to add more info regarding these errors in the future
   so that it’s easier for you to find the problem.

Viewing 1 replies (of 1 total)

The topic ‘Php code snippets turning off automatically’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/php-code-snippets-turning-off-automatically/#post-15922735)
 * Status: resolved