WordPress.org

Ready to get started?Download WordPress

Forums

P2 Image display error (4 posts)

  1. mike365
    Member
    Posted 3 years ago #

    I'm getting this message above my images when they are posted as an update on the P2 theme. Any ideas of what is going on. The image is displayed below this error.

    Warning: strpos() [function.strpos]: Empty delimiter in /home/bbprojek/public_html/yourlocalsite.com/client48/wp-content/themes/p2/functions.php on line 185

  2. MLanxess
    Member
    Posted 3 years ago #

    I have the same problem: http://wordpress.org/support/topic/414392

    What I found out as a workaround: You have to put a text before the image to make the warning message disappear. But this also did not work if you first post the image and then put a text before the image. The warning message also disappear if you give the image a post title.

  3. Amanda Hawkins
    Member
    Posted 3 years ago #

    Found this fix: http://wordpress.org/support/topic/349100?replies=3
    Worked for me!

    in function.php file, line 185 - replace

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

    with

    if($title !='') {
    $pos = strpos( $content, $title );
    }
  4. mscappa
    Member
    Posted 3 years ago #

    @oh.amanda: Thanks, worked perfectly!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags