• Hello. I think this is a brilliant idea for a Plugin and hope to support it and wish you all the best.

    However a pre-install question.. What if the php is written incorrectly? For example if you write bad code into the function file it will bring the entire dashboard down. If you made this change via the dashboard editor you would than have to go into FTP to fix the edit.

    What happens if you write bad php using your plugin? Will it warn you before publishing? Will it bring the dashboard down? How would you fix it then?

    Cheers

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    Hi @portalp,

    This plugin does include some safeguard features for checking code for errors before snippets are activated, such as checking for duplicate functions and classes, basic syntax checking, and even trial-running code before activating.

    While I aim to make these safeguards as effective as possible, there’s still a fair chance that bugs in code will not be detected and bad code in a snippet could bring the site down.

    Fortunately, there is a built-in way to resolve these sorts of issues. If somehow you do manage to activate a snippet that causes a fatal error, you can enable safe mode to bring the site back up again. Safe mode can be enabled one of two ways: by editing wp-config.php to enable a constant, or by simply adding something to the end of the current page’s URL, which tends to be much easier.

    You can read more about these two methods in the plugin FAQ, under the “How can I recover my site if it is crashed by a buggy snippet?” sections.

Viewing 1 replies (of 1 total)
  • The topic ‘Question: “What if the php is broken?”’ is closed to new replies.