Home Forums Plugin Support AffiliateWP MLM FATAL ERROR: MLM + Lifetime Commissions Plugin

2 replies, 2 voices Last updated by evoclick 2 weeks, 4 days ago
    • Stanlay Forker
      Participant
      @neurosocks
      #14341

      Hi Christian. I’ve tried to setup a new system with your MLM Plugin and the Lifetime Commissions Plugin. After connection one Email to an Affiliate thru WP Backend and i’ve tried to make an order for the connected customer that is also an affiliate. But i can’t order anything. The Log Files shows the following

      [15-Nov-2021 21:54:39 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
      [15-Nov-2021 21:54:39 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
      [15-Nov-2021 21:54:39 UTC] PHP Warning:  Undefined array key "custom" in /var/www/vhosts/****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/integrations/class-base.php on line 136
      [15-Nov-2021 21:54:39 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
      [15-Nov-2021 21:54:39 UTC] The WC_Order_Item_Product::offsetSet function is deprecated since version 4.4.0.
      [15-Nov-2021 21:54:39 UTC] PHP Fatal error:  Uncaught TypeError: array_merge(): Argument #2 must be of type array, string given in /var/www/vhosts/****/httpdocs/wp-content/plugins/affiliate-wp-lifetime-commissions/integrations/class-base.php:242
      Stack trace:
      #0 /var/www/vhosts/****/httpdocs/wp-content/plugins/affiliate-wp-lifetime-commissions/integrations/class-base.php(242): array_merge()
      #1 /var/www/vhosts/****/httpdocs/wp-includes/class-wp-hook.php(303): Affiliate_WP_Lifetime_Commissions_Base->set_lifetime_referral_flag()
      

      I’m using the following versions:

      MLM Version 1.1.7
      Lifetime Commissions Version 1.6

      On an old system with older versions everything works fine..

      And idea how to fix that issue?

      Thanks and kind regards

      Stanlay

    • Stanlay Forker
      Participant
      @neurosocks
      #14342

      It seems to be an issue related to the PHP Version. I’ve switched from php 8.0.4 back to 7.4.2 and now it works. So it would be nice if you can update the plugin so it can run on the newest php version.

      [15-Nov-2021 22:47:38 UTC] PHP Deprecated:  Required parameter $affiliate_id follows optional parameter $level_count in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/integrations/class-woocommerce.php on line 80
      [15-Nov-2021 22:47:43 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 115
      [15-Nov-2021 22:47:43 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 130
      [15-Nov-2021 22:47:43 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 145
      [15-Nov-2021 22:47:43 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 159
      [15-Nov-2021 22:47:43 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-actions.php on line 37
      [15-Nov-2021 22:47:43 UTC] PHP Deprecated:  Required parameter $affiliate_id follows optional parameter $level_count in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/integrations/class-woocommerce.php on line 80
      [15-Nov-2021 22:47:45 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 115
      [15-Nov-2021 22:47:45 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 130
      [15-Nov-2021 22:47:45 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 145
      [15-Nov-2021 22:47:45 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-functions.php on line 159
      [15-Nov-2021 22:47:45 UTC] PHP Deprecated:  Required parameter $referral follows optional parameter $affiliate_id in /****/httpdocs/wp-content/plugins/affiliatewp-multi-level-marketing/includes/email-actions.php on line 37

      kind regards
      stanlay

    • evoclick
      Participant
      @evoclick
      #14345

      Hi Stanely,

      Thanks for updating your post, I am having the same issue and also had to downgrade my PHP settings.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.