• Resolved heath18

    (@heath18)


    I have had my hosting company deactivate the Code Snippets plugin. I was trying to add code but must’ve done something in error as it created a fatal error. I am not able to reactivate the plugin without getting the error again. And I would like to continue experimenting to see if i want to buy the premium version. Is there a different plugin that you recommend? I tried to find my PHP but it doesn’t seem like I’m able to access it very easily. The error was on line 14 it said.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter heath18

    (@heath18)

    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 3 years, 7 months ago by Elvin.
    Thread Starter heath18

    (@heath18)

    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.

    Thread Starter heath18

    (@heath18)

    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.

    Thread Starter heath18

    (@heath18)

    My host company was able to insert the PHP snippet to put it into safe mode and it worked. Thank you for your help!

    You’re welcome

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Code Snippets plugin error. Is there a different code pausing you recommend’ is closed to new replies.