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

  1. melovell
    Posted 2 years 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.



  2. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years 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:

  3. melovell
    Posted 2 years ago #

    Hi Richard

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


  4. Richard Archambault
    Happiness Engineer
    Plugin Contributor

    Posted 2 years 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:


    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
    Posted 2 years ago #

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

  6. neogarfield
    Posted 2 years 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...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic