WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Warning: preg_replace() [function.preg-replace]: No ending delimiter ':' found i (9 posts)

  1. bubazoo
    Member
    Posted 7 years ago #

    I am getting this error

    Warning: preg_replace() [function.preg-replace]: No ending delimiter ':' found in /blog/wp-includes/formatting.php on line 648

    after upgrading to WordPress 2.1

    At first, it was in my blogs content, but after upgrading all my plugins to the latest versions, I'm still getting this error in my AJAX shoutbox from

    http://pierre.sudarovich.free.fr/

    My question is, since pierre can't reproduce this error, and noone else seems to be able to, how do I go about manually fixing this error?

    I mean, is it a problem in the preg_replace syntax in the plugin itself? I don't understand.

    or is this a bug in 2.1? please explain I don't understand
    thanks

  2. wilsonke
    Member
    Posted 7 years ago #

    Go to the formatting.php file in your wp-includes folder. If you open it in Textpad you can find line 648 pretty easily (but then again I don't know what you are running) check to make sure that you are telling preg where your regular expression is starting and ending by using the '/' or '#' delimiter in the code.

    /:lol:/ or #:lol:# is an example

    It will be in where it is calling the preg-replace function on that line in the file that you will most likely find that it is not using delimiters.

    Hope this helps.

  3. bubazoo
    Member
    Posted 7 years ago #

    thanks wilsonke

    I am running WordPress 2.1

    recently upgraded from version 2.0.4

    and this error started after the upgrade was completed, so I did not modify the stock files in any way.

    Line 648 says:

    $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);

    specifically, lines 646-649 say

    if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag
    $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);
    }

    if that helps any, so, what do I do, put

    /:.$wp_smiliessearch:/, $wp.smiliesreplace:/, $content);

    like that? I am confused.

    as I said, this is the stock wordpress 2.1 I did not modify it in any way, so is this a bug I found perhaps?

  4. bubazoo
    Member
    Posted 7 years ago #

    also, I tried to get help from pierre, hoping that the problem was with his plugin, so I simply reported this error to him, and he banned me from his blog for doing so :(

    so if someone knows how to fix this error, could someone please pass on the information to me?

    after the way pierre treated me on his site, I could care less about his plugin anymore, but unfortunately, he is the only one who maintains this plugin, so I'll have to figure out how to fix it by myself I guess.

    if anyone knows how to fix this, I would really appreciate the help :)

    thanks much

    Tom

  5. bubazoo
    Member
    Posted 7 years ago #

    ah ha!

    figured out the problem!

    Pierre's AJAX Shoutbox plugin,
    http://pierre.sudarovich.free.fr/

    is conflicting with
    More-Smilies 3.3 plugin
    http://mattread.com/projects/wp-plugins/more-smilies/

    darn plugins already LOL

    now I just have to figure out if there is another plugin LIKE more-smilies that won't conflict with the shoutbox, hrm.

  6. neogarfield
    Member
    Posted 7 years ago #

    Actually the More Smilies plugin is conflicting with anything to do with AJAX!

    I had this Ajax Calandar enhancer, and I got this same error. I disabled the Smileys thing, and its OK now...

  7. bubazoo
    Member
    Posted 7 years ago #

    I ended up using WP-Grins instead, which seems to work well

  8. grusofsky
    Member
    Posted 7 years ago #

    I switched over to WP-Grins and I'm still getting the error...it goes away if I turn off "convert emoticons" any suggestions now?

  9. marmelade
    Member
    Posted 7 years ago #

    Sorry, I don't understand what in the code I need to change:

    $content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);

    Please help.. =)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags