WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] Plugin creates "Warning" line in the header of my website (6 posts)

  1. melovell
    Member
    Posted 7 months ago #

    After installation of Jetpack, the following line appeared on my website homepage only (theme: Academica):

    Warning: Invalid argument supplied for foreach() in /home/mellov/ideasinpolitics.com/wp-content/themes/academica/header-image.php on line 15

    Uninstalling Jetpack solved the problem. When I reinstalled the plugin the warning line reappeared but this time on a blog post and not on my homepage or static 'about the author' page.

    I am hoping that there is some way to keep Jetpack installed as other than this it seems to be a very promising plugin.

    Thanks,
    Melissa

    http://wordpress.org/plugins/jetpack/

  2. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    Could you post your site URL here, so I can have a look?

    If you want it to remain private, you can also contact us via this contact form:
    http://jetpack.me/contact-support/

  3. melovell
    Member
    Posted 7 months ago #

    Hi Richard

    I have reactivated the plugin so you can see what it does. My website is: http://www.ideasinpolitics.com/

    Thanks!

  4. Richard Archambault
    Happiness Engineer
    Plugin Author

    Posted 7 months ago #

    Hi Melissa,

    I don't see the error message right now and it looks like you deactivated Jetpack. In any case, the error is likely due to something wrong with your theme, which happens to interact with Jetpack. I found another thread with the same issue:

    http://wordpress.org/support/topic/php-warning-in-header?replies=3

    The theme is also pretty old and hasn't been updated since last March. I'd suggest trying to find a newer theme that meets your needs.

  5. melovell
    Member
    Posted 7 months ago #

    Thanks Richard. I will have a look for another theme.

  6. neogarfield
    Member
    Posted 6 months ago #

    There is a little workaround this, if you are willing to sacrifice the header image. If the header-image call is commented out, it stops displaying this error. To do this, go to Appearance>Editor and click on header.php

    The very last line of the code will be
    <?php get_template_part( 'header-image' ); ?>
    Change it to
    <?php /* get_template_part( 'header-image' ); */ ?>

    That should do the trick. Please note that this will remove the header image. This is only a workaround; it stopped showing errors, but that doesn't mean this is foolproof. Someone should look into what about Jetpack causing this...

Reply

You must log in to post.

About this Plugin

About this Topic