• Resolved dbwilldo

    (@dbwilldo)


    Pre 3.5, this problem did not exist.

    You can see the problem on this post, but I’m getting PHP errors:

    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/donburn/public_html/wp-includes/functions.php on line 658
    
    Warning: stripos() [function.stripos]: needle is not a string or an integer in /home/donburn/public_html/wp-includes/functions.php on line 661

    These errors show up on any post with a Youtube video embedded. The weird part is that the error does not show up on the main blog page or archive index. See no errors here. The other weird part is that the error is pointing at a core WP file, not something related to any specific plug-in or file in my theme.

    I have disabled all plugins, the error goes away. I turn all of my plugins back on except Jetpack, no problem. I turn Jetpack on, it comes back.

    I have also tested this using Twenty Twelve and got the exact same problem.

    I have turned off shortcode embeds, but the issue is still there.

    It’s only my personal site and am game to trying anything anyone can think of to fix the issue.

    https://www.ads-software.com/extend/plugins/jetpack/

Viewing 14 replies - 16 through 29 (of 29 total)
  • Thread Starter dbwilldo

    (@dbwilldo)

    I just installed this theme on my wpengine account and enabled both shortcode embeds and sharing. Even added my Facebook and Twitter accounts. No errors are showing up.

    I do manage another site that has the Artliss embed plugin installed, but it’s not having this issue at all. I’m completely baffled.

    Thread Starter dbwilldo

    (@dbwilldo)

    I did follow the link posted on that other thread where the person said the issue goes away if a featured image is selected. So, I did that.

    Boom. Errors gone.

    Plugin Contributor Christopher Finke

    (@cfinke)

    Very strange. The featured image thing adds yet another level of interestingness…

    Thread Starter dbwilldo

    (@dbwilldo)

    OK, just removed featured image support from my functions.php and removed the featured image from my test post and the errors are still gone.

    I think that might be the link. Something with featured images might be causing the issue.

    Thread Starter dbwilldo

    (@dbwilldo)

    This is even weirder. I put the Featured Image code back into my functions.php and the error is *still* gone. A real head scratcher this is.

    (Also, would be handy if there was a dev option for jetpack so it would work on local test machines that don’t allow inbound traffic). ??

    Plugin Contributor Christopher Finke

    (@cfinke)

    If you still have a post where you can get the error to appear, can you try adding the following line of code to modules/sharedaddy/sharing-sources.php after line 1138?

    if ( ! $thumb ) continue;

    I’m thinking that a plugin you used to have installed is making it seem that posts have featured images even when they don’t, and this discrepancy is causing the problem.

    Plugin Contributor Christopher Finke

    (@cfinke)

    Whoops, that should have been:

    if ( ! $thumb ) return '';

    Thread Starter dbwilldo

    (@dbwilldo)

    Ok, error regenerated. Here goes nothing!

    Thread Starter dbwilldo

    (@dbwilldo)

    Well, would you look at that.

    Boom.

    Plugin Contributor Christopher Finke

    (@cfinke)

    Can you confirm that if you remove the line you added, the error returns?

    Thread Starter dbwilldo

    (@dbwilldo)

    Confirmed. Lined removed, error returns.

    Plugin Contributor Christopher Finke

    (@cfinke)

    Awesome. You can leave the line there; it will be included in the next Jetpack update. Thanks so much for your help with this.

    An aside: if you feel like investigating further, the question at the root of the problem is: why does has_post_thumbnail() return true but wp_get_attachment_image_src() returns false? My guess is data leftover from an uninstalled plugin, but I have nothing to back that up.

    Thread Starter dbwilldo

    (@dbwilldo)

    That could be possible and makes sense. On both sites I have used an auto featured image to generate the required featured image for the theme. I ended up disabling that plugin after it did it’s thing.

    But I’ll poke around some more. Glad to help!

    has_post_thumbnail() return true that caused error not only while plugins define “bulk” featured image but also while select new theme but old theme define this “bulk” featured image and its data leftover inside database. wp_get_attachment_image_src() return false, it happens on imported post from another wordpress site.

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Jetpack Youtube embeds’ is closed to new replies.