Home Forums Plugin Support AffiliateWP MLM AffiliateWP MLM crashing checkout, conflicting with updated Lifetime Commisions

18 replies, 4 voices Last updated by  Christian Freeman 1 month, 3 weeks ago
  • pber
    Participant
    @pber
    #9080

    Hi,

    I’ve recently updated the affiliate wp lifetime-commissions plugin. Since this update there are crashes on the checkout after completing payment. In the error logs I’m seeing errors like:
    Uncaught Error: Call to undefined method Affiliate_WP_Lifetime_Commissions_Base::get() in /home/wp/disk/wordpress_staging/wp-content/plugins/affiliatewp-multi-level-marketing/includes/actions.php

    It seems like the lifetime commissions update has changed the name of some of their methods/structure of the plugin. Is it possible to have MLM updated so it works with the latest version of the lifetime commissions plugin?

    Background info:
    Affiliatewp MLM version : 1.1.2
    Affiliatewp Lifetime commmisions version : 1.3.2

    Full error code: `Uncaught Error: Call to undefined method Affiliate_WP_Lifetime_Commissions_Base::get() in /home/wp/disk/wordpress_staging/wp-content/plugins/affiliatewp-multi-level-marketing/includes/actions.php:632
    Stack trace:
    #0 /home/wp/disk/wordpress_staging/wp-includes/class-wp-hook.php(286): affwp_mlm_remove_lifetime_email_from_upline_referrals(‘2984’, Object(stdClass), 21946)
    #1 /home/wp/disk/wordpress_staging/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #2 /home/wp/disk/wordpress_staging/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /home/wp/disk/wordpress_staging/wp-content/plugins/affiliatewp-multi-level-marketing/integrations/class-base.php(158): do_action(‘affwp_mlm_compl…’, ‘2984’, Object(stdClass), 21946)
    #4 /home/wp/disk/wordpress_staging/wp-content/plugins/affiliatewp-multi-level-marketing/integrations/class-woocommerce.php(185): AffiliateWP_MLM_Base->complete_referral(Object(stdClass), 21946)
    #5 /home/wp/disk/wordpress_staging/wp-includes/class-wp-hook.php(288): Affili in /home/wp/disk/wordpress_staging/wp-content/plugins/affiliatewp-multi-level-marketing/includes/actions.php on line 632
    `

    Thank you for your time.

  • Christian Freeman
    Participant
    @christianf
    #9092

    Hello,

    And thanks for reporting this.

    Based on the error, it would appear that the updated version of Lifetime Commissions uses different methods, but I’ll have to look into the updated Lifetime Commissions code to confirm the changes.

    I’m investigating this now, and I’ll follow up soon with a solution.

  • Christian Freeman
    Participant
    @christianf
    #9106

    Hi,

    I’ve updated MLM to version 1.1.3, to include further compatibility with the new versions of AffiliateWP and Lifetime Commissions. I’ve sent you the update via a message on this site. Please test it to let me know if this resolves your issue.

    Best

  • Joel
    Participant
    @joeljoelpeterson-biz
    #9164

    Hi Christian… I’m also getting this same error and need this new version. Is this in the download area?

  • Christian Freeman
    Participant
    @christianf
    #9175

    Hi Joel,

    Yes, I just released this update, so it is available for download on the Downloads tab of your account page.

    Let me know if you run into any further issues with this after you update to version 1.1.3.

  • worldteamleader
    Participant
    @worldteamleader
    #9192

    Hello

    There is still a payment checkout problem with Paid MemberShip Pro.

    Before the 1.1.13 update, disabling the lifetime commission plugin worked but now no longer at all.

    I am with Stripe as payment gateway and in test, someone is it in the same case as mine?

    I will try via Woocommerce to see

    Thank you

  • Christian Freeman
    Participant
    @christianf
    #9217

    Do you receive any error messages during checkout?

    And if so, can you please post it here?

  • Christian Freeman
    Participant
    @christianf
    #9221

    @worldteamleader, does this checkout error happen in PM Pro when you disable all other add-ons except for MLM and AffiliateWP core?

  • worldteamleader
    Participant
    @worldteamleader
    #9228

    HI,

    I fall on a blank page, the order is created in pmppro, the payment is processed normally by Stripe but there is no user account created. With all addons disabled and only Affiliate Wp and MLM enabled, it’s the same

  • Christian Freeman
    Participant
    @christianf
    #9231

    Can you test this after disabling the PM Pro integration in the MLM tab of the AffiliateWP settings?

    Also, you mentioned it’s not creating the User account, do you mean the WordPress user account, or the Affiliate account?

    And what version of AffiliateWP, and Lifetime Commissions are you using?

  • worldteamleader
    Participant
    @worldteamleader
    #9236

    Hi,

    After disabling the PM Pro integration, it’s work but with Affwp lifetime desactivate.
    No account is created and i use the lastest version for both.

  • worldteamleader
    Participant
    @worldteamleader
    #9238

    Edit : After disabling the Pm Pro integration and desactivate the lifetime commission, on the checkout i have a blank page but the process is good and user’s account are created

  • Christian Freeman
    Participant
    @christianf
    #9241

    Hmmm, this means that the issue is not with the PM Pro integration within the MLM plugin. This is because, once you disable the PM Pro integration, MLM does not run any of the PM Pro code during PM Pro checkout. MLM will only connect the referring affiliate to the new sub affiliate account created during the user account creation (If you have Auto Register New Users enabled in the AffiliateWP settings).

    When you deactivate MLM (and all other AffiliateWP add-ons), leaving only the core AffiliateWP plugin active, does it still give you this blank page during checkout?

  • worldteamleader
    Participant
    @worldteamleader
    #9242

    Hi,

    I think we misunderstood each other. When I disable pmpro integration in the MLM plugin, everything works normally so I think the problem comes from the pmpro integration and before the last update it did not work with the plugin lifetime but an account was created.
    I think there is probably a conflict between the PM Pro and Lifetime Commission integration.

    Otherwise I just tried with just Affiliate wp activated and it works fine, then I tried Affiliate WP + Lifetime commission and it also works.

  • Christian Freeman
    Participant
    @christianf
    #9247

    Ahhh, okay that is a different story.

    What do you have the Sync Lifetime Affiliate setting set to in Affiliates > Settings > Integrations?
    If you do have this enabled, what happens when you set this to “Disabled” and perform your test?
    Try this both with PM Pro integration enabled in MLM, and with PM Pro integration disabled in MLM.

    I suspect that the issue with the user account creation is related to the MLM and Lifetime Commissions integration.

    Also, do you have the “Link Customers To Affiliates On User Registration” setting enabled in Affiliates > Settings > Integrations? If so, test this with this disabled as well, and let me know what the result is.

  • worldteamleader
    Participant
    @worldteamleader
    #9248

    Hi

    In any case it does not work except with Sync Lifetime Affiliate and PMPro integration disabled. This works with “Link Customers To Affiliates On User Registration” enabled and disabled. I hope this will help you.

  • Christian Freeman
    Participant
    @christianf
    #9268

    Yes, thank you. That information does help.

    I’ve applied a patch to MLM version 1.1.3 for the PM Pro integration. I’ve sent you the download link via Private Message. Once you download it and install it, please test it with Lifetime Commissions deactivated first, and then try it with Lifetime Commissions active.

    And of course, let me know what your results are like.

  • worldteamleader
    Participant
    @worldteamleader
    #9272

    Hi

    Thank you but the results is the same 🙁

  • Christian Freeman
    Participant
    @christianf
    #9287

    Alright, I’m doing some in-depth testing in my testing environment now to replicate the issue and fix the bug.

    I’ll follow up with you soon, once I have a fix for you to test on your site.

You must be logged in to reply to this topic.