Title should read: is there a different code PLUGIN you recommend?
Hi,
Can you show us the code you’re trying to run? Code Snippets should be good enough for running PHP codes.
As mentioned in the error, there’s an issue on its line 14. It may be a simple syntax error or a broken function.
This has to be fixed first because if this isn’t addressed, your site will encounter the same fatal error, regardless of how you added the PHP code to your site.(child theme, code snippet, other code snippet plugins, etc)
To be able to run Code Snippets plugin again, you have to access your database and look for the code you added in it under wp_snippets
. You can then delete its row from there.
-
This reply was modified 4 years, 1 month ago by Elvin.
I am not able to show the code because I’m not able to access the plugin anymore. It was code that I put in to add a next post button at the end of a post though. I got it from one of the snippets given on one of the topics here. I may not have copied the whole thing.
I may not have copied the whole thing.
This may be the case. Incomplete codes will 100% cause issues.
If you want to check that specific code, you can access it through the database. As mentioned before, you can find the codes added by Code Snippets plugin saved in your database under wp_snippets
table.
You should see something like this. https://share.getcloudapp.com/xQuL1z6D
I highly recommend doing this for few reasons:
1. You can recover the code you’ve been trying to add.
2. You can delete the code and be able to use Code Snippets plugin again.
I believe you can get your database access from your host. Perhaps you can ask them to do this for you too.
Let us know how it goes.
Well my hosting company advised that its a parsing error? So it can’t be deleted. They removed the plugin but when I reinstall and then activate it thorws the error again.
This is what I was advised: the plugin vendors should investigate that snippet-ops.php file and see what is the conflict there
Hi there,
this is really a question for Code Snippets support.
If you go to their page:
https://wordpress.org/plugins/code-snippets/
And read the FAQ: How can I recover my site if it is crashed by a buggy snippet? (method one)
That will put the code snippets plugin into safemode. You can then access your site and the Code Snippet you added and delete it.
My host company was able to insert the PHP snippet to put it into safe mode and it worked. Thank you for your help!