• Resolved ajc2023

    (@ajc2023)


    The latest version has an invalid JSON response and broke almost everything on my site including being able to login. Thankfully I used a work around by putting ob_start(); at the stop of my wp-config.php file and enabling DEBUG. I’ve narrowed it down and believe the error lies in the HSTS headers of your plugin.

    It’s definitely your plugin that is the issue because after disabling every single snippet I’d created, I was still receiving the error. Deactivated the Code Snippets plugin – error gone. I have now migrated all my snippets to WPCode and have zero issues.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yup … what they said ^^^
    All sites with this plugin broke today, even with all snippets deactivated and all other plugins deactivated.
    Thanks, @ajc2023 for this quick fix.

    Here’s another method to fix if you have WP CLI, and doesn’t require modding wp-config.php:

    wp plugin update code-snippets --version=3.6.4 --skip-plugins

    wp plugin auto-updates disable code-snippets --skip-plugins

    The first line should roll you back to the previous version of Code Snippets.

    The second line should disable auto-updating so you don’t wind up here again.

    Make sure you test this out before trying on an important website. No guarnatees but it works for me.

    Danielle

    (@pullingrabbits)

    Definately seems to be a bug in the new update.

    This plugin took down a site that I work on today. I found an erroneous ‘q’ at the very start of the code-snippets.php file; I removed that and everything worked as expected for me.

    Plugin Author Shea Bunge

    (@bungeshea)

    Many apologies everyone – I’ve pushed v3.6.5.1 which should resolve this issue.

    Don’t forget to deactivate the plugin before the update, otherwise it will not work.

    Update failed: q{“success”:true,”data”:{“update”:”plugin”,”slug”:”code-snippets”,”oldVersion”:”Version 3.6.5″,”newVersion”:”Version 3.6.5.1″,”plugin”:”code-snippets\/code-snippets.php”,”pluginName”:”Code Snippets”}}

    Another possible solution would be to upload the new version manually.

    Cheers!

    • This reply was modified 5 months, 3 weeks ago by Ralph.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.