Product Sync Issues
Symptoms
Section titled “Symptoms”- New products don’t appear on your WordPress® site
- Product updates (price, stock, title) not reflected
- Product sync showing as “failed” in admin
- Admin notice: “Webhook delivery issues detected”
Common Causes
Section titled “Common Causes”1. Webhook Connectivity Issues
Section titled “1. Webhook Connectivity Issues”- BigCommerce webhooks not reaching your WordPress® site
- Firewall or security plugin blocking webhook requests
- SSL certificate problems preventing HTTPS webhooks
2. Resource Limits Exceeded
Section titled “2. Resource Limits Exceeded”- PHP memory limit too low for large product catalogs
- Execution timeout during sync operations
- Cron job overlap causing processing conflicts
3. API Failures
Section titled “3. API Failures”- BigCommerce API rate limiting
- Authentication token expired
- Temporary BigCommerce API outage
Solutions
Section titled “Solutions”Check Webhook Health Status
Section titled “Check Webhook Health Status”- Navigate to Commerce Connect settings in WordPress® admin
- Look for webhook health notice - A yellow warning banner indicates detected issues
- Review error messages for specific failure details
Verify Webhook Connectivity
Section titled “Verify Webhook Connectivity”Check if webhooks can reach your site:
# Test webhook endpoint accessibilitycurl -I https://yoursite.com/wp-json/commerce-connect/v1/webhooksExpected response: 200 OK or 401 Unauthorized (both mean endpoint is reachable)
If you get connection errors:
- Check firewall rules - Allow webhook requests from BigCommerce IP ranges
- Verify SSL certificate - Webhooks require valid HTTPS
- Check security plugins - Temporarily disable to test if blocking webhooks
Fix Resource Limit Issues
Section titled “Fix Resource Limit Issues”If sync stops partway through processing:
-
Increase PHP memory limit in
wp-config.php:define('WP_MEMORY_LIMIT', '512M');define('WP_MAX_MEMORY_LIMIT', '512M'); -
Increase execution time in
wp-config.php:set_time_limit(300); // 5 minutes -
Verify cron is running:
Terminal window wp cron event listLook for
commerce_connect_sync_productsscheduled every minute
Force Manual Resync
Section titled “Force Manual Resync”To trigger immediate product sync:
- Go to Commerce Connect → Settings → Advanced
- Click “Sync Products Now” button
- Monitor progress in the admin notice area
- Check logs for any error messages
Clear Backoff State
Section titled “Clear Backoff State”If sync is stuck in exponential backoff after failures:
-
Navigate to WP-CLI or WordPress® admin
-
Delete the backoff option:
Terminal window wp option delete commerce_connect_sync_backoff -
Manually trigger sync to restart
Debug Webhook Deliveries
Section titled “Debug Webhook Deliveries”Check webhook event history in BigCommerce:
- Log into BigCommerce admin
- Go to Settings → Webhooks
- Click on your webhook to view delivery history
- Review failed deliveries for error codes and responses
Common error codes:
- 401 Unauthorized - Authentication failure, regenerate webhook secret
- 404 Not Found - Webhook URL incorrect, verify endpoint
- 500 Server Error - WordPress® error, check error logs
- Timeout - Site too slow to respond, check resource limits
Verification
Section titled “Verification”After applying fixes, verify sync is working:
-
Edit a test product in BigCommerce (change title or price)
-
Wait 1-2 minutes for webhook processing
-
Check product on WordPress® site - changes should appear
-
Review webhook health status - should show no errors
-
Check Action Scheduler for successful processing:
Terminal window wp action-scheduler list --hook=commerce_connect_process_webhook --status=complete
Prevention
Section titled “Prevention”Monitor Webhook Health
Section titled “Monitor Webhook Health”The plugin runs daily health checks automatically. To stay informed:
- Enable email notifications for failed webhooks (if supported)
- Check admin dashboard weekly for health warnings
- Monitor Action Scheduler for recurring failures
Optimize Resource Configuration
Section titled “Optimize Resource Configuration”For large catalogs (1,000+ products):
- Set adequate memory limits (512MB minimum)
- Use dedicated hosting with sufficient resources
- Consider increasing cron frequency only if needed
- Monitor server resource usage during sync operations
Maintain BigCommerce Connection
Section titled “Maintain BigCommerce Connection”- Keep authentication tokens fresh - plugin handles this automatically
- Monitor BigCommerce API status at status.bigcommerce.com
- Test webhooks after platform changes (firewall, hosting, SSL)
Advanced Debugging
Section titled “Advanced Debugging”View Sync Logs
Section titled “View Sync Logs”Check WordPress® error logs for detailed sync information:
# View most recent sync eventstail -f wp-content/debug.log | grep "commerce_connect"Look for:
Product sync backing off due to resource limits- Resource pressureWebhook health check found issues- Connection problemsProducts sync failed- API or processing errors
Resource Monitoring
Section titled “Resource Monitoring”The plugin tracks resource usage during sync. High memory/time ratios indicate:
- 85%+ memory usage - Increase memory limit
- 85%+ execution time - Increase timeout or reduce batch size
- Cron overlap warnings - Sync taking longer than 1 minute interval
Webhook Retry Logic
Section titled “Webhook Retry Logic”Failed webhooks automatically retry with exponential backoff:
| Attempt | Delay | Total Time Since Failure |
|---|---|---|
| 1st retry | 1 minute | 1 minute |
| 2nd retry | 5 minutes | 6 minutes |
| 3rd retry | 15 minutes | 21 minutes |
| 4th retry | 30 minutes | 51 minutes |
| 5th retry | 1 hour | ~2 hours |
After 5 failed attempts, the webhook event is permanently dropped and requires manual intervention.