• This message is given if a title or some text is not included in a post in the P2 theme:

    Warning: strpos() [function.strpos]: Empty delimiter in /LOCATION/wp-content/themes/p2/functions.php on line 171

    This only happens on posts that have “…” as their title and have not had any form of text included in the post other than embed codes or IMG tags.

    Is there a way to fix this? My group is embed and image heavy and we’re kind of tired of seeing this message. Our work around is to always include text or a title for the posts, but sometimes we forget.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter saphrym

    (@saphrym)

    Ok. I replaced:

    $pos = strpos( $content, $title );

    With:

    if($title !='') {
        $pos = strpos( $content, $title );
    }

    Seems to work fine now. Am I doing anything wrong? (Still new to PHP) And if that is a good fix, think it could go into the release? I did searches for the error including the line 171 part and WOW, there were a lot of results of people having the same problem.

    nice fix, thanks!! it seems ok to me. hopefully the developers will pick up this bug fix for the next release.

    Wow, this worked for me as well, 7 months after saphrym found the fix for it. I guess the theme developers are ignoring this one.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Did anyone actually report it to them?

    This fix is in the next P2 release, submitted this week to www.ads-software.com theme review.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘P2 – Bug when text is not included in an image or video only post’ is closed to new replies.