Code Snippets broke my site
Closed this issue · 2 comments
mauricemaurer commented
Hi,
I added a code snippet that broke my website.
I deleted the snippet from the database directly (did not know about safe mode).
Site was still broken (only when Code Snippets plugin active)
I deleted Code Snippets plugins and reinstalled it
Site was still broken (only when Code Snippets plugin active)
I reverted to a previous backup before I added the snippet
Site is still broken (only when Code Snippets plugin active)
I activated in wp-config define( 'CODE_SNIPPETS_SAFE_MODE', true );
Now the page loads again and I can enter Code snippets but the snippet that broke everything is not there. If I deactivate the Safe mode the page is broken again
Any ideas? If I cant figure this out I cannot use code snippets. The snippet that broke the page is this one (from WC Product Tables):
tmrwltd commented
Have had a similar problem with the Pro version. In the end, I threw out code snippets on all pages and replaced them with WPCodeBox - and never had problems again.
sheabunge commented
This is caused by some faulty code added as a snippet. Activating safe mode allows you to login and deactivate the snippet causing a problem, but you still need to remove the bad code to have your site work again.
If you deleted the snippet but still having issues with the site when Code Snippets is active and not in safe mode, then there's another snippet causing issues that's still active.