500 error
-
Im able to connect to an external site and it pulls in woocommerce data but it also throws a 500 error upon additional syncs.
WordPress version 6.1.1
Active theme: GeneratePress Child (version 0.1)
Current plugin: Jetpack CRM (version 5.5.3)
PHP version 8.1.9
Error Details
=============
An error of type E_ERROR was caused in line 1570 of the file /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync.php. Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync.php:1570
Stack trace:
#0 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync.php(1570): in_array(‘-1’, ‘Customer’)
#1 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php(1315): Automattic\JetpackCRM\Woo_Sync->woocommerce_order_status_to_contact_status(‘completed’)
#2 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php(2035): Automattic\JetpackCRM\Woo_Sync_Background_Sync_Job->woocommerce_order_to_crm_objects(Array, Object(stdClass), ‘706’, ‘706’, Array, ‘Basic Life Supp…’, true, Array, ‘d:https://compl…’, Array)
#3 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php(583): Automattic\JetpackCRM\Woo_Sync_Background_Sync_Job->woocommerce_api_order_to_crm_objects(Object(stdClass), ‘d:https://compl…’)
#4 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php(359): Automattic\JetpackCRM\Woo_Sync_Background_Sync_Job->import_orders_from_api(‘1’)
#5 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync-background-sync-job.php(304): Automattic\JetpackCRM\Woo_Sync_Background_Sync_Job->import_page_of_orders(‘1’)
#6 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/includes/class-woo-sync-background-sync.php(299): Automattic\JetpackCRM\Woo_Sync_Background_Sync_Job->run_sync()
#7 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/admin/woo-sync-hub/main.page.php(478): Automattic\JetpackCRM\Woo_Sync_Background_Sync->sync_orders()
#8 /home/vps_crmcompletecpr/crm.completecpr.com/wp-content/plugins/zero-bs-crm/modules/woo-sync/admin/woo-sync-hub/main.page.php(65): jpcrm_woosync_render_hub_page_debug_mode()
#9 /home/vps_crmcompletecpr/crm.completecpr.com/wp-includes/class-wp-hook.php(308): jpcrm_woosync_render_hub_page(”)
#10 /home/vps_crmcompletecpr/crm.completecpr.com/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#11 /home/vps_crmcompletecpr/crm.completecpr.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home/vps_crmcompletecpr/crm.completecpr.com/wp-admin/admin.php(259): do_action(‘jetpack-crm_pag…’)
#13 {main}
?thrown
- The topic ‘500 error’ is closed to new replies.