• Resolved Carolyn Victoria

    (@carolynvictoria)


    After upgrading to paid version of this plugin I get an error using the If Menu logic for Has Active Membership Plan (for Woo Commerce Membership Extension). This is the error:

    Warning: Invalid argument supplied for foreach() in /home/ainemari/public_html/wp-content/plugins/if-menu/src/conditions-multiple-options.php on line 386

    It works using Is logged In, but not using Has Active Membership Plan.

    WordPress: 4.9.5
    Woo Commerce: 3.3.5
    Woo Membership: 1.10.1
    php: 7.1.16

    I have turned of the logic because this is a live site so you won’t see the error in page link.

    I am showing/hiding 3 menu items, some based on Is Logged In and one based on Has Active Membership Plan. When I add the logic for the later, it breaks.

    Thanks in advance.

    C

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Andrei

    (@andreiigna)

    Hi Carolyn,

    Thanks for the interest in If Menu plugin.

    Can I ask for a temporary admin account on the site? The plugin was tested on sites with similar configuration and passed all tests, would be helpful to see exactly what’s happening.

    Sorry for the inconvenience, will try to resolve this as fast as possible.

    Cheers

    Plugin Author Andrei

    (@andreiigna)

    Can continue the chat over email [email protected]

    @andreiigna – I am getting this same error. Its regarding the WooCommerce Memberships 3rd party integration and accessing the membership plan object property ‘id’ case sensitivity.

    $membershipsOptions[$plan->ID] = $plan->name; throws the error

    $membershipsOptions[$plan->id] = $plan->name; works

    Plugin Author Andrei

    (@andreiigna)

    Hi Jayson,

    Thanks for letting me know about this.

    The issue is fixed in latest version of the plugin, v0.10

    Cheers

    Thread Starter Carolyn Victoria

    (@carolynvictoria)

    Hi, Thanks for updating. I’m sorry I lost track of this, and I still used the plugin but in a different way. If you need my input and a login for testing let me know and I will send it to your email. Thanks for your help and for the fix.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘conditions-multiple-options.php – Error on line 386’ is closed to new replies.