• Resolved Ims Storm van Leeuwen

    (@whimsicalcodingman)


    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 to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @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.