• Resolved WolfieZero

    (@wolfiezero)


    Hi,

    I keep getting this notice on in my error display.

    Notice: Undefined index: scheme in site/content/plugins/jetpack/class.jetpack-post-images.php on line 201

    The media I’m using is stored correctly in WordPress but I’m removing the domain reference and calling it from an absolute location, a la /content/uploads/2009/07/video.png

    Any ideas?

    Thanks!

    https://wordpress.org/plugins/jetpack/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    s but I’m removing the domain reference and calling it from an absolute location

    How are you doing this, exactly? Also, does this still happen after upgrading to version 2.9, which came out yesterday?

    Thread Starter WolfieZero

    (@wolfiezero)

    I’m removing the domain manually via the editor or just doing a search and replace in the DB on the post_content field. Also I’ve updated Jetpack to 2.9 now and it still happens 🙁

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Yup, that code checks for full image URLs so will fail with the removal of the domain reference and http://. Any particular reason you are doing that?

    Thread Starter WolfieZero

    (@wolfiezero)

    Yeah, it’s for ease of multiple environments. I’m working on multiple dev environments and a staging one so there are different URLs for each. Bit of an odd setup for WordPress I know but makes my life that bit easier 🙂

    Thanks.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Well, our code doesn’t account for that. If you’d like to create a Pull Request or an enhancement request to account for setups like yours, you’re welcome to!

    https://github.com/Automattic/jetpack/issues/new

    Thread Starter WolfieZero

    (@wolfiezero)

    Ah fair enough. I’ll look and see about helping with that bit of code then, luckily it’s only a notice so nothing serious.

    Thanks for the help! 🙂

    I’ve created a pull request to fix this.

    I think this is slightly more serious than “just a notice” – the code is used (in my case at least) by the OpenGraph functions in Jetpack and as it stands the OpenGraph image tags inserted will be incorrect for root relative urls.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘"Notice: Undefined index: scheme in class.jetpack-post-images.php"’ is closed to new replies.