Code Snippets
[resolved] An error (2 posts)

  1. Todd
    Posted 3 years ago #


    I'm using Code Snippets on a new site and I'm getting this error:

    PHP Warning: preg_replace() [function.preg-replace]: Unknown modifier '>' in /home/bob/public_html/sites/bob/wp-content/plugins/code-snippets/code-snippets.php(964) : eval()'d code on line 3


  2. Shea Bunge
    Plugin Author

    Posted 3 years ago #

    This is an error in one of your snippets. Unfortunately, snippet error messages are a bit ambiguous (I'll look at fixing this in a future version), so I can't tell you exactly which snippe. You will need to go through and find one which uses preg_replace() in its code.

    If you don't want to click through editing each snippet to find the guilty one, you can login to your database phpMyAdmin and look at the snippets table (it will be prepended with your WordPress database prefix). There you will be able to see all of the snippets and their code on the same page so you can find out the name of the snippet you need to edit.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.