WordPress.org

Ready to get started?Download WordPress

Forums

Jetpack by WordPress.com
[resolved] foreach() error in 2.2.3 update (33 posts)

  1. probablynot
    Member
    Posted 1 year ago #

    Since the update a few minutes ago, now getting the following error on every page.

    Warning: Invalid argument supplied for foreach() in /home/user/root/wp-content/plugins/jetpack/jetpack.php on line 4534

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

  2. Edgieweb
    Member
    Posted 1 year ago #

    Just updated and also getting that error.

  3. Denis Ciumbargi
    Member
    Posted 1 year ago #

    Same error.

    Also, something to do with nivo slider

    Warning: Invalid argument supplied for foreach() in wp-content/plugins/jetpack/jetpack.php on line 4534

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at .../wp-content/plugins/jetpack/jetpack.php:4534) in /home/content/35/8355835/html/wp-content/plugins/nivo-slider/nivo-slider.php on line 10

  4. Edgieweb
    Member
    Posted 1 year ago #

    And also this when click I on sharedaddy settings:

    Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/username/public_html/wp-includes/pluggable.php on line 876

  5. Sebastien D
    Member
    Posted 1 year ago #

    Yes I am getting the same message after updating. I'm going to have to revert back. Please get this fixed asap.

    Thank you.

  6. Austin Passy
    Member
    Posted 1 year ago #

    Yup

  7. probablynot
    Member
    Posted 1 year ago #

    For a temporary fix, if you don't want to roll back to 2.2.2 and you are comfortable editing the plugin. At the end of the jetpack.php file, comment out the following lines:

    if ( function_exists( 'bbpress' ) )
    	$_jetpack_rest_api_compat_includes = dirname( __FILE__ ) . '/class.jetpack-bbpress-json-api-compat.php';

    and that will get rid of the error if bbpress if your only issue.
    You can comment out the foreach loop at the end as well if you are getting other problems.

  8. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    Thanks for reporting this. I haven't been able to reproduce the error so far myself, but we're looking into it.

  9. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    @probablynot, instead of commenting out those two lines, can you try updating to this instead?

    $_jetpack_rest_api_compat_includes = array( dirname( __FILE__ ) . '/class.jetpack-bbpress-json-api-compat.php' );

    (props cfinke for the code)

  10. highergroundstudio
    Member
    Posted 1 year ago #

    Same here. I just rolled back to 2.2.2. Is it a compatibility problem with bbpress?

  11. Shillos
    Member
    Posted 1 year ago #

    Just updated to jetpack 2.2.3 and just got this message on my site Warning: Invalid argument supplied for foreach() in /plugins/jetpack/jetpack.php on line 4534 2.2.2 worked ok don't know what happened after the update!

  12. probablynot
    Member
    Posted 1 year ago #

    @designsimply with that line in place, the code no longer errors.

  13. sacredpath
    Member
    Posted 1 year ago #

    @designsimply, thanks for the point to this thread and for the solution. I made the change and all is well again.

  14. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    Glad to hear it worked! I'm not sure if that will be the final fix, but it seems to be a good stopgap for now. The plugin devs will probably post an update about it once they get it sorted out.

  15. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    I spotted a changeset related to this bug at http://plugins.trac.wordpress.org/changeset/704351/jetpack/trunk

    A new point release might follow, so affected users (those using bbPress and Jetpack together) should stay tuned.

  16. Wolly
    Member
    Posted 1 year ago #

    Worked for me too.

    Thanx

  17. ziadmasry
    Member
    Posted 1 year ago #

    @designsimply
    Resolved for me too
    So many thanks

  18. Tim Moore
    Moderator
    Plugin Author

    Posted 1 year ago #

    Hi all, Jetpack 2.2.4 has been released to address this issue. My apologies and thanks for your prompt attention and reports!

  19. Bridal_Blog
    Member
    Posted 1 year ago #

    After Jetpack update on 27/4/2013 to 2.2.4 got a warning..!

    Having updated Jetpack twice within 2 hours on 27/4/2013 to 2.2.4 I got this very akwerd warning on my site in every post and page.
    The warning is:
    Warning: Missing argument 3 for Jetpack_Custom_CSS::editor_max_image_size() in /wp-content/plugins/jetpack/modules/custom-css/custom-css.php on line 1147

    Could anyone tell me what to do please?

    Best regards Silvie.
    European Bridal Fashion Blog
    http://www.silviesbridal.com

  20. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    @Bridal_Blog, that looks like possibly a separate issue compared to the one reported earlier in this thread. I will look into it. Is the warning message the only issue? Does everything else work normally?

  21. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    @Bridal_Blog, actually, instead of replying here, can you please make a separate help request at http://wordpress.org/support/plugin/jetpack#postform for your issue?

  22. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    @Bridal_Blog, so you know, I tested and I couldn't find the warning you mentioned on my test blog, but I'm also not sure how it's being triggered. Can you tell me what you currently have saved for "Image Sizes" on your Settings → Media page? Here are my current settings: http://cl.ly/Oag7

  23. Shillos
    Member
    Posted 1 year ago #

    Great! Thanks this worked fine now!

  24. bunnysdreams
    Member
    Posted 1 year ago #

    I'm getting this same error [the Warning: Invalid argument supplied for foreach() in /home/user/public_html/wp-content/plugins/jetpack/jetpack.php on line 4534 one], but am unable to even login to wp-admin. When I try to login, I get this:

    Warning: Invalid argument supplied for foreach() in /home/user/public_html/wp-content/plugins/jetpack/jetpack.php on line 4534

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/user/public_html/wp-login.php on line 368

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/user/public_html/wp-login.php on line 380

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/user/public_html/wp-includes/pluggable.php on line 680

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/user/public_html/wp-includes/pluggable.php on line 681

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/user/public_html/wp-includes/pluggable.php on line 682

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/wp-content/plugins/jetpack/jetpack.php:4534) in /home/user/public_html/wp-includes/pluggable.php on line 876

    This is all on a plain white page with nothing else at all.

    If I can't login, I can't rollback or install a new update or address this in any way I can think of. Can anyone help?

  25. bunnysdreams
    Member
    Posted 1 year ago #

    Nevermind! I was able to find a way into the files and edit them. Have the new update now and all seems good. Thanks!

  26. designsimply
    Member
    Plugin Contributor

    Posted 1 year ago #

    @Bridal_Blog, please apply the following changeset to your jetpack files and let me know if that fixes the warning for custom-css.php you mentioned above.

    http://plugins.trac.wordpress.org/changeset/704581

  27. Bridal_Blog
    Member
    Posted 1 year ago #

    Hello designsimply,

    I have read your answer and will upload my settings of media in a jpg file. Although its in Dutch, you can see what the settings are. I use large pictures because of the female which would like to see the details on the Wedding Dresses. I asked myself why it has occured after an update of Jetpack? Settings where as on jpg file for a long time and no problems at all.

    Best regards,
    Silvie.
    http://www.silviesbridal.com

  28. Bridal_Blog
    Member
    Posted 1 year ago #

  29. Bridal_Blog
    Member
    Posted 1 year ago #

    Hello designsimply,

    Problem solved. For answer, look at link: http://en.forums.wordpress.com/topic/after-jetpack-update-on-2742013-to-224-got-a-warning?replies=4

    Best regards,

    Silvie.

  30. lovelovething
    Member
    Posted 1 year ago #

    I'm having the exact same error message as BridalBlog. But I have no clue how to resolve it according to the link above.

    http://www.lovelovething.com

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.