PHP Fatal error: Uncaught Error: Call to a member function get_coupons() Resolved
October 30, 2019 at 3:36 am #77783
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
#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)
thrown in /home/mandabi1/public_html/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-order.php on line 594
October 30, 2019 at 11:37 am #77832
October 30, 2019 at 11:37 pm #77865
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
October 31, 2019 at 12:48 am #77871sumit singhModerator
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.
October 31, 2019 at 1:20 am #77880
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.
October 31, 2019 at 1:45 am #77884sumit singhModerator
This error is not coming from our plugin, may be some other plugin using this function.
October 31, 2019 at 2:59 am #77889
Thank you very much.
November 2, 2019 at 3:47 pm #78142
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.
November 2, 2019 at 4:08 pm #78143
November 4, 2019 at 2:29 am #78189
November 4, 2019 at 3:31 am #78197
November 4, 2019 at 6:07 am #78210
November 4, 2019 at 7:28 am #78219This reply has been marked as private.
November 4, 2019 at 1:46 pm #78249
November 5, 2019 at 1:11 am #78260
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.
November 8, 2019 at 5:24 am #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.
June 13, 2020 at 2:29 am #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.
The topic ‘PHP Fatal error: Uncaught Error: Call to a member function get_coupons()’ is closed to new replies.