Login

Lost Password

Skip to content
  • Themedutch – webdesign agency Themedutch – webdesign agency
  • HOME
  • WP THEMES
  • PLUGINS
    • um-switcher
  • HELPDESK
    • Support forums
    • My tickets
    • Faq
    • Manuals
  • LOGIN
  • REGISTER
  • HOME
  • WP THEMES
  • PLUGINS
    • um-switcher
  • HELPDESK
    • Support forums
    • My tickets
    • Faq
    • Manuals
  • LOGIN
  • REGISTER
    Page Header Image

    Error message on Woocommerce Order Completed page

    Kaz
    0 Comment

    Error message on Woocommerce Order Completed page

    Home › Forums › UM Switcher › Error message on Woocommerce Order Completed page

    Tagged: Woo Commerce

    • This topic has 2 replies, 2 voices, and was last updated 7 years, 8 months ago by admin.
    Viewing 2 reply threads
    • Author
      Posts
      • at #81582
        Kaz
        Member

        Has this happened before/to anyone else?

        When a user goes through the woo commerce checkout to purchase membership, once the order has completed and woocommerce displays the Order Complete/Details page confirming everything went through, there is a visible error message: (see attached screenshot)

        Um-switcher
        Warnining:in_array()expects parameter 2 to be array, null given in…..core/actions/woo-commerce-order.php on line 19

        This is what line 19 says on um-woocommerce extension:

        if ( get_post_meta( $id, '_um_woo_product_role', true ) != '' && !in_array( $user_role, $excludes ) ) {
        				um_fetch_user( $user_id );
        				$ultimatemember->user->set_role( esc_attr( get_post_meta( $id, '_um_woo_product_role', true ) ) );
        			}

        When reading this I realized that there may be a conflict happening with UM-woocommerce extension for products and UM- switcher as both allow to change user roles when a product is purchased. So I left the UM-woocommerce extension blank and used only UM switcher which eliminated all of the code, except “Um-switcher” still displays just above the Order Details header. (The also happens if I do the reverse, leave Um-switcher blank for user role but set it using the um-woocommerce extension).

        Obviously this will not do for users experience during checkout. I tried the usual route in switching themes to 2017 and when using both Um-woocoomerce and um-switcher the conflict is still there. I need to use um-woocommerce for other, non-membership products that should only be seen by certain levels of membership but need um-switcher for paid memberships.

        This site needs to go live this week. Any suggestions? Thanks!

        Attachments:
        1. Screen-Shot-2017-03-29-at-1.41.42-PM.png

      • at #81584
        admin
        Keymaster

        Hi Kaz,

        We will setup on our test site a similar situation as you, so we can see the issue first hand.

        Regarding:
        (I need to use um-woocommerce for other, non-membership products that should only be seen by certain levels of membership but need um-switcher for paid memberships. )

        You can use um-switcher also for free products, and when you create a menu with products you can set it to certain member levels.

        I will post you back as soon as I have heard back from our staff.

      • at #81585
        admin
        Keymaster

        Hi Kaz,
        We did not found any issue on our test site, so can you create me a admin account so we can have a look at your installation?

        Please create a ticket from the menu at the top, to send us your login details. Also Include FTP login so we can check the cronjob file.

        Thanks Mike

    • Author
      Posts
    Viewing 2 reply threads
    • You must be logged in to reply to this topic.
    Log In
    © 2020 - THEMEDUTCH BV.