WordPress.org

Ready to get started?Download WordPress

Forums

Code Snippets
[resolved] An error (2 posts)

  1. toddneufeld
    Member
    Posted 1 year ago #

    Hi-

    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

    http://wordpress.org/extend/plugins/code-snippets/

  2. Shea Bunge
    Member
    Plugin Author

    Posted 1 year 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

Tags

No tags yet.