PHP Fatal error: Uncaught Error: Call to a member function get_coupons()

General Marketplace Discussion (User’s interaction forum)

PHP Fatal error: Uncaught Error: Call to a member function get_coupons() Resolved

Viewing 16 reply threads
  • Author
    Posts
    • #77783
      prodrigues500
      Participant

      Hi,
      Can you help me with the following error in my error_log file? The site is runnig fine. It seems the error isn’t
      not disturbing the site operation. Is it serious? Do I have to worry about it? Can it be fixed?
      Thank you very much for your help.

      Here is the error:

      [30-Oct-2019 06:31:32 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_coupons() on null in /home/mandabi1/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php:594
      Stack trace:
      #0 /home/mandabi1/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php(369): WCMp_Order::create_wcmp_order_coupon_lines(Object(WC_Order), NULL, Array)
      #1 /home/mandabi1/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-cron-job.php(390): WCMp_Order::create_vendor_order(Array, true)
      #2 /home/mandabi1/public_html/wp-includes/class-wp-hook.php(286): WCMp_Cron_Job->wcmp_orders_migration()
      #3 /home/mandabi1/public_html/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
      #4 /home/mandabi1/public_html/wp-includes/plugin.php(531): WP_Hook->do_action(Array)
      #5 /home/mandabi1/public_html/wp-cron.php(133): do_action_ref_array(‘wcmp_orders_mig…’, Array)
      #6 {main}
      thrown in /home/mandabi1/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php on line 594

    • #77832

      Hi @prodrigues500, may I know which version of WC Marketplace are you using in your site?

    • #77865
      prodrigues500
      Participant

      Hi,
      My site is running on:
      – WordPress 5.2.4
      – WooCommerce 3.7.1
      – WC Marketplace 3.4.4
      – Advanced Frontend Manager 3.1.7
      – WCMp Vendor Vacation 1.1.8
      – WCMp Legacy Settings 1.0.0

    • #77871
      sumit singh
      Moderator

      Hi, we have checked in our end and didn’t face any error in log. So, kindly clear the error log and create a new order to check above error.

    • #77880
      prodrigues500
      Participant

      Hi,
      The above error doesn´t appear anymore. I get another error but not sure if that’s from your plugin:
      [31-Oct-2019 06:16:37 UTC] The get_used_coupons function is deprecated since version 3.7. Replace with WC_Abstract_Order::get_coupon_codes.

    • #77884
      sumit singh
      Moderator

      Hi,
      This error is not coming from our plugin, may be some other plugin using this function.

    • #77889
      prodrigues500
      Participant

      Thank you very much.
      Best regards

    • #78142
      prodrigues500
      Participant

      The error continues and, according to our hosting provider, is causing problems to the availability of our site.
      Can you help me please!!!
      Find attached the recent error log file.

    • #78143
      prodrigues500
      Participant

      Attach

      Attachments:
    • #78189

      @prodrigues500, can you please share a temporary admin and ftp access so we can check.

      While sharing the access don’t forget to mark the response as private.

    • #78197
      prodrigues500
      Participant
      This reply has been marked as private.
    • #78210
      prodrigues500
      Participant
      This reply has been marked as private.
    • #78219
      This reply has been marked as private.
    • #78249
      prodrigues500
      Participant
      This reply has been marked as private.
    • #78260
      prodrigues500
      Participant

      Hi,
      I just figured out the error pattern. It has nothing to do with the ordering process. The error occurs on a scheduled basis every hour. (See attachment)
      Can we make it stop doing this?
      Please, need urgent help. I’m driving crazy with this.

    • #78698

      @prodrigues500, We have added the fix in our last git update: https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/152

      So, after downloading the plugin from here – https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/archive/master.zip, follow these steps :

      – Delete the installed WC Marketplace via wp-admin >> plugin
      – Unzip the GitHub plugin
      – Rename the folder as “dc-woocommerce-multi-vendor” and remove the master tag. Now, zip this folder again.
      – Install this plugin on your site.

      We will release the same in our next update also.we have released an update in our Git, with this fix.

    • #98154

      I presume that your issue is resolved, since, we haven’t heard back from you.
      We are marking this thread as resolved.
      Kindly open a new thread if you face any further query.

Viewing 16 reply threads

The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_coupons()’ is closed to new replies.

Buy all Marketplace addons together, check out our Bundle

Buy at Slashed Price