Groups illegal offset type

I’m getting the following error for the Groups plugin:

Warning: Illegal offset type in /home/domain/public_html/wp-content/plugins/groups/lib/admin/class-groups-admin-posts.php on line 561

Warning: Illegal offset type in /home/domain/public_html/wp-content/plugins/groups/lib/admin/class-groups-admin-posts.php on line 532

It looks like it’s talking about an array/string error but can’t see what I need to adjust.

These are the content for both lines in question:

if ( !isset( $post_types_option[$post_type][’add_meta_box’] ) || $post_types_option[$post_type][’add_meta_box’] ) {

Thanks,
Jeremy

5 Responses to Groups illegal offset type

  1. Jeremy February 22, 2017 at 12:37 pm #

    Sure, the setting are below.

    Administrator Access Override: Off
    Post types: All On
    User profiles: Off
    Tree view: Off
    Permissions: Administrator all ticked, everyone else all off
    Deactivation and data persistence: Off
    Legacy Settings: On
    Capabilities: group_read_post

    I’m setting up WooCommerce product and page restrictions, using three groups, one admin account and two test accounts. All access and permissions work as expected and have only noticed the warnings now.

    It may only be affecting regular WordPress posts and not other pages/products. The number of warnings coincides with the number of posts I have.

    • antonio February 23, 2017 at 11:11 am #

      Thanks,
      Sorry I can not replicate this.
      Please try this from Groups->Options:
      1.- Deselect all post types, and Save.
      2.- Re-select all post types and Save.
      Thanks,
      Antonio B.

      • Jeremy February 28, 2017 at 9:54 am #

        Hi Antonio,

        I found the issue, which was a conflict with another plugin, nothing wrong groups.
        The plugin in question was the WP Ultimate Recipe.

        Thanks!

        • antonio March 1, 2017 at 9:45 am #

          Perfect, thanks for sharing.

  2. antonio February 22, 2017 at 12:21 pm #

    Hi Jeremy,
    I’m trying to recreate the problem, but I can not.
    Please give me your Groups->Options settings and what were you doing when this warning was added.
    Thanks,
    Antonio B.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account

Share