• Resolved bubazoo

    (@bubazoo)


    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

    https://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

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Thread Starter bubazoo

    (@bubazoo)

    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?

    Thread Starter bubazoo

    (@bubazoo)

    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

    Thread Starter bubazoo

    (@bubazoo)

    ah ha!

    figured out the problem!

    Pierre’s AJAX Shoutbox plugin,
    https://pierre.sudarovich.free.fr/

    is conflicting with
    More-Smilies 3.3 plugin
    https://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.

    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…

    Thread Starter bubazoo

    (@bubazoo)

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

    grusofsky

    (@grusofsky)

    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?

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

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

    Please help.. =)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Warning: preg_replace() [function.preg-replace]: No ending delimiter ‘:’ found i’ is closed to new replies.