Error or all product pages when not in test-mode
-
Hi, on the latest versions of Woocommerce Payments, Woocommerce and WordPress I receive the following error on all product pages:
“Warning: in_array() expects parameter 2 to be array, null given in /home/customer/www/guardslondon.com/public_html/wp-content/plugins/woocommerce-payments/includes/platform-checkout/class-platform-checkout-utilities.php on line 135“
This error is still present when I place my website in troubleshooting mode and disable all plugins except Woocommerce and Woocommerce Payments, and revert to the WordPress 2023 Theme, as well as when clearing all caches.
The error disappears when I enable testing mode on Woocommerce Payments and I believe only appeared after I initially used the testing mode as I did not see the error prior to this.
(note: The error does not currently display as I have disabled error logs)
Thanks for your help,
Peter
-
This topic was modified 2 years ago by
nomthespider.
The page I need help with: [log in to see the link]
-
This topic was modified 2 years ago by
-
Thanks for reaching out!
I understand that you are seeing the warning message above on all your product pages after enabling WooCommerce Payments Test Mode, correct?
I’d like to understand your site properly, please share your System Status Report that you can find via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs
.You could copy and paste your reply here or paste it via https://gist.github.com/ and send the link here.
Thanks!
Hi We are also getting this error. Here is our status report.
WordPress Environment WordPress address (URL): https://bazaarvelvet.com
Site address (URL): https://bazaarvelvet.com
WC Version: 7.4.1
REST API Version: ? 7.4.1
WC Blocks Version: ? 9.4.4
Action Scheduler Version: ? 3.5.4
Log Directory Writable: ?
WP Version: 6.1.1
WP Multisite: –
WP Memory Limit: 768 MB
WP Debug Mode: –
WP Cron: ?
Language: en_GB
External object cache: – Server Environment Server Info: Apache
PHP Version: 7.4.33
PHP Post Max Size: 256 MB
PHP Time Limit: 120
PHP Max Input Vars: 3000
cURL Version: 7.85.0
OpenSSL/3.0.8 SUHOSIN Installed: –
MySQL Version: 5.7.39-42-log
Max Upload Size: 256 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Multibyte String: ?
Remote Post: ?
Remote Get: ? Database WC Database Version: 7.4.1
WC Database Prefix: wp_xarnhrbu_
Total Database Size: 107.67MB
Database Data Size: 78.14MB
Database Index Size: 29.53MB
wp_xarnhrbu_woocommerce_sessions: Data: 27.06MB + Index: 2.09MB + Engine InnoDB
wp_xarnhrbu_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_actionscheduler_actions: Data: 7.09MB + Index: 7.86MB + Engine InnoDB
wp_xarnhrbu_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_actionscheduler_logs: Data: 5.14MB + Index: 5.09MB + Engine InnoDB
wp_xarnhrbu_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_atum_product_data: Data: 0.27MB + Index: 0.19MB + Engine InnoDB
wp_xarnhrbu_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_braapf_product_stock_status_parent: Data: 0.14MB + Index: 0.08MB + Engine InnoDB
wp_xarnhrbu_braapf_product_variation_attributes: Data: 0.13MB + Index: 0.23MB + Engine InnoDB
wp_xarnhrbu_braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_braapf_variable_attributes: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_braapf_variation_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_bv_airlift_config: Data: 1.50MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_bv_fw_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_bv_ip_store: Data: 0.30MB + Index: 0.27MB + Engine InnoDB
wp_xarnhrbu_bv_lp_requests: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_cartbounty: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_cartbounty_emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
wp_xarnhrbu_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
wp_xarnhrbu_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
wp_xarnhrbu_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_xarnhrbu_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_jet_smart_filters_indexer: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_nf3_fields: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_nf3_object_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_nf3_relationships: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_options: Data: 7.50MB + Index: 0.42MB + Engine InnoDB
wp_xarnhrbu_postmeta: Data: 19.55MB + Index: 9.03MB + Engine InnoDB
wp_xarnhrbu_posts: Data: 4.52MB + Index: 0.88MB + Engine InnoDB
wp_xarnhrbu_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_rank_math_analytics_gsc: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_rank_math_analytics_inspections: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
wp_xarnhrbu_rank_math_analytics_objects: Data: 0.13MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_rank_math_internal_links: Data: 0.16MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_rank_math_internal_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_rank_math_redirections: Data: 0.25MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_rank_math_redirections_cache: Data: 0.11MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_stock_log: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_termmeta: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_term_relationships: Data: 0.30MB + Index: 0.17MB + Engine InnoDB
wp_xarnhrbu_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
wp_xarnhrbu_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
wp_xarnhrbu_wc_product_attributes_lookup: Data: 0.17MB + Index: 0.13MB + Engine InnoDB
wp_xarnhrbu_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_wc_product_meta_lookup: Data: 0.38MB + Index: 0.56MB + Engine InnoDB
wp_xarnhrbu_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
wp_xarnhrbu_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wdr_order_item_discounts: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
wp_xarnhrbu_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.13MB + Engine InnoDB
wp_xarnhrbu_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
wp_xarnhrbu_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts acf-field: 9
acf-field-group: 1
attachment: 3378
bnfw_notification: 1
br_filters_group: 2
br_product_filter: 14
custom_css: 1
e-landing-page: 1
elementor_library: 25
jet-smart-filters: 5
nav_menu_item: 46
nf_sub: 1
oembed_cache: 1
page: 33
post: 94
product: 432
product_variation: 2599
revision: 121
shop_coupon: 2
shop_order: 4
wp_global_styles: 1
wpforms: 1 Security Secure connection (HTTPS): ?
Hide errors from visitors: ? Active Plugins (40) WP Umbrella: by WP Umbrella - Backup & Manage WordPress – 2.6.4
WooCommerce Rms: by Rms – 1.3
Advanced Custom Fields: by WP Engine – 6.0.7
Auto Upload Images: by Ali Irani – 3.3.2
WordPress Backup & Security Plugin - BlogVault: by Backup by BlogVault – 4.87
Better Notifications for WP: by Made with Fuel – 1.9.2
PublishPress Capabilities: by PublishPress – 2.7.0
Custom Post Type UI: by WebDevStudios – 1.13.4
GTM4WP: by Thomas Geiger – 1.16.2
Elementor Pro: by Elementor.com – 3.11.3
Elementor: by Elementor.com – 3.11.2
Enable Media Replace: by ShortPixel – 4.0.3
Facebook for WooCommerce: by Facebook – 3.0.13
Login No Captcha reCAPTCHA (Google): by Robert Peake and Contributors – 1.7.1
Pinterest for WooCommerce: by WooCommerce – 1.2.13
Safe SVG: by 10up – 2.0.3
Rank Math SEO: by Rank Math – 1.0.109
SiteGround Optimizer: by SiteGround – 7.3.1
Sticky Header Effects for Elementor: by Rwattner – 1.5.5
Category Order and Taxonomy Terms Order: by Nsp-Code – 1.7.4
UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
DavidAnderson – 1.22.24 WooCommerce No Shipping Message: by dangoodman – 2.1.2
Woo Discount Rules PRO 2.0: by Flycart – 2.5.4
Woo Discount Rules: by Flycart – 2.5.4
CartBounty - Save and recover abandoned carts for WooCommerce: by Streamline.lv – 7.1.6
WooCommerce AJAX Products Filter: by BeRocket – 3.1.3.3
WooCommerce Lead Time: by Barn2 Plugins – 2.0.13
WooCommerce Payments: by Automattic – 5.5.0
WooCommerce Google Product Feed: by Ademti Software Ltd. – 10.8.3
WooCommerce Smart Coupons: by StoreApps – 7.2.1
Stock Manager for WooCommerce: by StoreApps – 2.10.0
WooCommerce Wholesale Prices Premium: by Rymera Web Co – 1.25
WooCommerce Wholesale Prices: by Rymera Web Co – 2.1.6.2
WooCommerce: by Automattic – 7.4.1
WP File Manager: by mndpsingh287 – 7.1.8
WP Mail SMTP: by WPForms – 3.7.0
WP-Optimize - Clean, Compress, Cache: by David Anderson
Ruhani Rabin
Team Updraft – 3.2.12 WP Engine Automated Migration: by WPEngine – 4.78
WP-Sweep: by Lester 'GaMerZ' Chan – 1.1.5
Yotta Pay Payment Gateway: by Yotta Pay – 1.2.4 Inactive Plugins (2) AirLift: by AirLift – 4.88
WP Migrate: by Delicious Brains – 2.3.4 Dropin Plugins (1) advanced-cache.php: advanced-cache.php Must Use Plugins (1) WP Umbrella: by WP Umbrella – 1.0.0 Settings API Enabled: –
Force SSL: –
Currency: GBP (£)
Currency Position: left
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2
Taxonomies: Product Types: grouped (grouped)
external (external)
simple (simple)
variable (variable) Taxonomies: Product Visibility: outofstock (outofstock)
exclude-from-search (exclude-from-search)
exclude-from-catalog (exclude-from-catalog)
featured (featured)
rated-1 (rated-1)
rated-2 (rated-2)
rated-3 (rated-3)
rated-4 (rated-4)
rated-5 (rated-5) Connected to WooCommerce.com: ?
Enforce Approved Product Download Directories: –
Order datastore: WC_Order_Data_Store_CPT WC Pages Shop base: #7 - /catalogue
Basket: #4837 - /cart
Checkout: #4838 - /checkout
My account: #4839 - /my-account
Terms and conditions: #10469 - /terms-conditions Theme Name: Hello Child
Version: 1.0
Author URL:
Child Theme: ?
Parent Theme Name: Hello Elementor
Parent Theme Version: 2.6.1
Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
WooCommerce Support: ? Templates Overrides: – WooCommerce Google Product Feed feeds google: Google merchant centre product feed
Type: google
Category filter: -
Categories: - WooCommerce Google Product Feed options Include variations in feed: Enabled
Send "item group ID": -
Expanded schema markup: -
Debug key: d95fc629-1c51-4829-a99d-ae51468b7f6d WooCommerce Google Product Feed fields Title: Pre-populates from product product_title.
Product description: Main product description (full preferred) plus variation description
Availability (in stock products): Defaults to "in stock".
Availability (backordered products): Defaults to "backorder".
Availability (out of stock products): Defaults to "out of stock".
Condition: Defaults to "new".
Brand: Pre-populates from _wc_facebook_enhanced_catalog_attributes_brand meta field.
Manufacturer Part Number (MPN):
Product Type:
Google Product Category:
Size system:
Adult content: Defaults to "no". WooCommerce Google Product Feed DB status Database version: 16
Active database version: 16
wc_gpf_render_cache: Empty
woocommerce_gpf_google_taxonomy (en-GB): 5595 items Admin Enabled Features: activity-panels
analytics
coupons
customer-effort-score-tracks
import-products-task
experimental-fashion-sample-products
shipping-smart-defaults
shipping-setting-tour
homescreen
marketing
multichannel-marketing
mobile-app-banner
navigation
new-product-management-experience
onboarding
onboarding-tasks
remote-inbox-notifications
remote-free-extensions
payment-gateway-suggestions
shipping-label-banner
subscriptions
store-alerts
transient-notices
woo-mobile-welcome
wc-pay-promotion
wc-pay-welcome-page Disabled Features: minified-js
product-variation-management
settings Daily Cron: ? Next scheduled: 2023-03-02 10:23:48 +00:00
Options: ?
Notes: 128
Onboarding: completed WooCommerce Payments Version: 5.5.0
Connected to WPCOM: Yes
Blog ID: 212683082
Account ID: acct_1M6yUDCFCTk5P8q3 Action Scheduler Canceled: 15
Oldest: 2023-02-24 13:31:52 +0000
Newest: 2023-02-24 14:16:45 +0000 Complete: 19,051
Oldest: 2023-02-22 14:58:38 +0000
Newest: 2023-03-01 14:53:53 +0000 Failed: 295
Oldest: 2022-08-26 14:35:14 +0000
Newest: 2023-03-01 09:10:34 +0000 Pending: 13
Oldest: 2023-03-01 14:58:53 +0000
Newest: 2023-03-03 13:27:59 +0000 Smart Coupons related settings Number of coupons to show: 5
Number of characters in auto-generated coupon code:
Valid order status for auto-generating coupon: processing
completed Include tax in the amount of the generated gift card:
Deduct credit/gift before doing tax calculations: no
Gift Card discount is inclusive of tax: no
Automatic deletion: no
Coupon emails: yes
Printing coupons: yes
Sell gift cards at less price?: no
Use gift card applied in first subscription order for subsequent renewals until credit reaches zero: yes
Renewal orders should not generate coupons even when they include a product that issues coupons: no
Allow sending of coupons to others: yes
Allow schedule sending of coupons?:
Combine emails:
Auto generated coupon email: yes
Combined auto generated coupons email: no
Acknowledgement email: yes
Enable taxes: no
Prices entered with tax: yes
Rounding: no
Display prices in the shop: excl
Display prices during cart and checkout: incl
Display tax totals: itemized
Enable the use of coupon codes: yes
Calculate coupon discounts sequentially: no
Account endpoints > Coupons: wc-smart-coupons Status report information Generated at: 2023-03-01 14:58:43 +00:00
`Hi @gavpedz
Thanks for reaching out!
I understand you are experiencing the same issue and since every site is different and you’re not the person who originally started this topic then, per the forum guidelines, would you please start your own topic?
Additionally, please include your System Status Report that you can find via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.If you could also provide the fatal error logs (if any) under
WooCommerce > Status > Logs
.We’ll be more than happy to help there ??
- The topic ‘Error or all product pages when not in test-mode’ is closed to new replies.