WordPress.org

Ready to get started?Download WordPress

Forums

Simple Fields
Get an error on certain pages (3 posts)

  1. Vayu Robins
    Member
    Posted 4 years ago #

    Hi.
    I get the following error on som pages. For instance an attachment page I get this error:

    Warning: Invalid argument supplied for foreach() in /home/u11svxp/www/wordpress/wp-content/plugins/simple-fields/functions_post.php on line 748

    I have this settup:

    $boxes = function_exists('simple_fields_get_post_group_values') ? simple_fields_get_post_group_values(get_the_ID(), 1) : 0;

    Is there a way of preventing this from happening?

    Thanks
    Vayu

    http://wordpress.org/extend/plugins/simple-fields/

  2. Pär Thernström
    Member
    Plugin Author

    Posted 4 years ago #

    It certainly looks like a bug in the plugin. Thanks for finding this. Will be fixed in the next update.

  3. Vayu Robins
    Member
    Posted 4 years ago #

    Great, thanks for looking into this! :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic