Support » Plugin: Code Snippets » Broke site

  • Caused an error to my site when I tried to inject a script into header, had to disable the plugin through FTP to get back into it.

    I recommend Head, Footer, and Post injections plugin, that one works.

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

    (@bungeshea)

    It sounds like you might not be using this plugin correctly. Here’s how you inject a script into the header:

    add_action( 'wp_head', function () { ?>
    
        <!-- head content -->
    
    <?php } );

    Similarly for the footer, with wp_footer instead of wp_head.

    The Support Forum is a better place to ask for help using the plugin instead of leaving a review.

    Dem1an

    (@johnbauman2505)

    I just updated to the new version today and I think it broke my site as well. I found the faq with the code to put it into safemode, but that didn’t fix it, so maybe it’s something else, but it happened after I updated this add-on. I’m doing a restore now. We’ll see. Restored site. Reluctant to retry. Maybe it was fluke. I’ll check back.

    • This reply was modified 1 year, 10 months ago by Dem1an.
    • This reply was modified 1 year, 10 months ago by Dem1an.

    I just updated the plugin and my site broke too and when I try to activate again it said

    Plugin could not be activated because it triggered a fatal error.
    Warning: require_once(*******/wp-content/plugins/code-snippets/php/import-export.php): failed to open stream: No such file or directory in *******/wp-content/plugins/code-snippets/php/class-code-snippets.php on line 60

    Fatal error: require_once(): Failed opening required ‘*******/wp-content/plugins/code-snippets/php/import-export.php’ (include_path=’.:/usr/local/php56/lib/php’) in *******/wp-content/plugins/code-snippets/php/class-code-snippets.php on line 60

    • This reply was modified 1 year, 10 months ago by AelitaX.

    Same as others. Updated today and Server 500 errors. Removed plugin and site loads.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Broke site’ is closed to new replies.