Automattic / Automattic/babble
Need fix to work with woocommerce
- Dominant language
- PHP
- Stars
- 250
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
Hey
with woocommerce activated, I've got this error:
Warning: Invalid argument supplied for foreach() in \wp-content\plugins\woocommerce\includes\class-wc-webhook.php on line 89
Call Stack
Time Memory Function Location
1 0.0018 878672 {main}( ) ..\edit.php:0
2 0.0030 994896 require_once( 'wp-admin\admin.php' ) ..\edit.php:10
3 0.0036 1023176 require_once( 'wp-load.php' ) ..\admin.php:31
4 0.0043 1048680 require_once( 'wp-config.php' ) ..\wp-load.php:29
5 0.0055 1189912 require_once( 'wp-settings.php' ) ..\wp-config.php:114
6 0.3413 71190312 do_action( ) ..\wp-settings.php:353
7 0.3489 71377920 call_user_func_array ( ) ..\plugin.php:505
8 0.3489 71377952 WooCommerce->init( ) ..\plugin.php:505
9 0.3500 71412360 WooCommerce->load_webhooks( ) ..\woocommerce.php:396
10 0.3567 71698984 WC_Webhook->enqueue( ) ..\woocommerce.php:574
When I deactivate babble, the warning disappears. It displays both front and back
WordPress 4.0 / Woocommerce 2.2.8 / Woocommerce subscriptions 1.5.12
Contributor guide
Research direction
Start by reproducing the warning with WordPress 4.0, WooCommerce 2.2.8, and Babble active, then trace WooCommerce->init(), WooCommerce->load_webhooks(), and WC_Webhook->enqueue(). Inspect woocommerce/includes/class-wc-webhook.php at line 89 and the Babble integration involved in webhook loading. Done means the warning no longer appears in either the front end or admin while WooCommerce remains active.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100