WordPress.org

Ready to get started?Download WordPress

Forums

Content Aware Sidebars
[resolved] Error message: Invalid argument supplied for foreach() (3 posts)

  1. atwoodsa
    Member
    Posted 2 years ago #

    When I go to add a post or page I am getting the following error message at the top of the page:

    Warning: Invalid argument supplied for foreach() in .../wordpress/wp-content/plugins/content-aware-sidebars/content-aware-sidebars.php on line 381

    Any idea why I am getting this message or how to fix it?

    http://wordpress.org/extend/plugins/content-aware-sidebars/

  2. Mayank Jani
    Member
    Posted 2 years ago #

    Variable that is used into foreach loop, is not defined properly.

    Go to the line where the error is and try to debug the error.

    Thanks
    Mayank Jani

  3. Joachim Jensen (Intox Studio)
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the feedback. As Mayank said, a variable was not defined properly (it could be null). This was a bug introduced in version 0.8 and fixed in 0.8.1, so all you have to do is update to the newest version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic