PHP Warning in WooCommerce Admin
-
Hi,
Since 18 March 2021, I see the following repeatedly in the PHP error log
[03-Apr-2021 07:20:01 UTC] PHP Warning: in_array() expects parameter 2 to be array, bool given in /wp-content/plugins/woocommerce/packages/woocommerce-admin/src/RemoteInboxNotifications/ComparisonOperation.php on line 36
Any suggestions to resolve it please?
WooCommerce version – Latest (updated few days ago)
Kind regards,
-
The site is under development and I cannot share the URL yet. But here’s the system report please:
### WordPress Environment ### WordPress address (URL): https://www.domain.com Site address (URL): https://www.domain.com WC Version: 5.1.0 REST API Version: ? 5.1.0 WC Blocks Version: ? 4.4.3 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 2.0.2 Log Directory Writable: ? WP Version: 5.7 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: nginx/1.18.0 PHP Version: 7.4.16 PHP Post Max Size: 25 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.58.0 OpenSSL/1.1.1j SUHOSIN Installed: – MySQL Version: 5.5.5-10.1.47-MariaDB-0ubuntu0.18.04.1 Max Upload Size: 25 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.1.0 WC Database Prefix: prefix_ Total Database Size: 16.00MB Database Data Size: 12.66MB Database Index Size: 3.34MB prefix_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB prefix_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB prefix_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_actionscheduler_actions: Data: 0.41MB + Index: 0.44MB + Engine InnoDB prefix_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_actionscheduler_logs: Data: 0.27MB + Index: 0.19MB + Engine InnoDB prefix_bpspro_arq_exclude: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_bpspro_arq_quarantine: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_bpspro_dbm_monitor: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_bpspro_db_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_bpspro_folder_lock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_bpspro_login_security: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_bpspro_mscan: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_bpspro_seclog_ignore: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB prefix_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_options: Data: 7.05MB + Index: 0.14MB + Engine InnoDB prefix_oses_attachments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_oses_clicks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_oses_emails: Data: 1.52MB + Index: 0.02MB + Engine InnoDB prefix_oses_email_attachments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_oses_failures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_oses_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_postmeta: Data: 1.52MB + Index: 0.86MB + Engine InnoDB prefix_posts: Data: 0.45MB + Index: 0.28MB + Engine InnoDB prefix_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB prefix_terms: Data: 0.08MB + Index: 0.09MB + Engine InnoDB prefix_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_term_taxonomy: Data: 0.06MB + Index: 0.06MB + Engine InnoDB prefix_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB prefix_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB prefix_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB prefix_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB prefix_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB prefix_wc_product_meta_lookup: Data: 0.11MB + Index: 0.13MB + Engine InnoDB prefix_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB prefix_wpvivid_scan_result: Data: 0.02MB + Index: 0.00MB + Engine InnoDB prefix_wpvivid_unused_uploads_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 335 custom_css: 5 elementor_library: 3 elementor-hf: 1 nav_menu_item: 10 page: 9 post: 3 product: 64 product_variation: 583 revision: 3 seedprod: 1 shop_order: 1 wpforms: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (15) ### Login by Auth0: by Auth0 – 4.2.0 BulletProof Security Pro: by AITpro Website Security – 15.3 Code Snippets: by Code Snippets Pro – 2.14.1 Coming Soon Page, Maintenance Mode & Landing Pages by SeedProd: by SeedProd – 6.2.1 Elementor: by Elementor.com – 3.1.4 Elementor - Header, Footer & Blocks: by Brainstorm Force Nikhil Chavan – 1.5.8 Jetpack by WordPress.com: by Automattic – 9.5 Mailchimp for WooCommerce: by Mailchimp – 2.5.1 Printful Integration for WooCommerce: by Printful – 2.1.21 WooCommerce Stripe Gateway: by WooCommerce – 5.0.0 WooCommerce Shipping & Tax: by Automattic – 1.25.10 WooCommerce: by Automattic – 5.1.0 WP Offload SES Lite: by Delicious Brains – 1.4.5 WPvivid Backup Pro: by wpvivid.com – 1.9.24 WPvivid Backup Plugin: by WPvivid Team – 0.9.52 ### Inactive Plugins (1) ### WP-Optimize - Clean, Compress, Cache: by David Anderson Ruhani Rabin Team Updraft – 3.1.8 ### Must Use Plugins (1) ### BPS Pro MU Tools: by AITpro – 13.0 ### Settings ### API Enabled: ? Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #401 - /shop/ Cart: #97 - /cart/ Checkout: #98 - /checkout/ My account: #99 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Astra Version: 3.2.0 Author URL: https://wpastra.com/about/ Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Action Scheduler ### Canceled: 1 Oldest: 2021-03-22 13:25:38 -0700 Newest: 2021-03-22 13:25:38 -0700 Complete: 1,170 Oldest: 2021-03-07 21:35:57 -0800 Newest: 2021-04-03 00:21:27 -0700 Failed: 1 Oldest: 2021-03-07 22:55:14 -0800 Newest: 2021-03-07 22:55:14 -0800 ### Status report information ### Generated at: 2021-04-03 00:27:32 -07:00
Hi there ??
This kind of problem is usually caused by a conflict with your theme or with another plugin.
?
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Before you start
- First, please make sure you have a good backup in place of your full site and database. Most hosting companies have this included in the subscription, but you could also consider using a service like?Jetpack. If something goes wrong, it’s nice to know that you can restore your site.
- Second, I would suggest installing a plugin called?Health Check & Troubleshooting. This is a plugin developed by the WordPress community and it allows you to disable plugins without affecting your current site visitors.
I hope that helps!
Since it’s been a while since we last heard back from you, I’m going to mark this thread resolved.
Hopefully, you were able to find a solution to your problem! If you have further questions, please feel free to open a new topic.
Cheers! ??
- The topic ‘PHP Warning in WooCommerce Admin’ is closed to new replies.