Invalid argument supplied for foreach()
-
Hello,
I do not know how to fix this error
Invalid argument supplied for foreach() class-wc-payments-localization-service.php on line 128
On any action on a website, this error is generated.
Can Anyone Help
The page I need help with: [log in to see the link]
-
Hi @mccpie01
Thanks for your question!
I do not know how to fix this error
Invalid argument supplied for foreach() class-wc-payments-localization-service.php on line 128
On any action on a website, this error is generated.
Could you please do the following and see if the error goes away?
First, update your WooCommerce Payments plugin, if it’s outdated.
Secondly, please complete the following steps to do a conflict test:
?- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce core plugin and WooCommerce Payments plugin
- 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.
I hope that helps!
Let me know how it goes!
Result of the test
Disable theme use base theme
No error
Enable my theme
no error
Enable Woocommerce
no error
Enable woo commerce payment
no error
Enable woocommerce Paypal payment
ERRORSo my error is with the plugin Woocommerce Paypal Paiment
Hey again!
I’d like to try to replicate this, could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.
### WordPress Environment ### WordPress address (URL): https://www.allthingforyourcar.com Site address (URL): https://www.allthingforyourcar.com WC Version: 5.6.0 REST API Version: ? 5.6.0 WC Blocks Version: ? 5.5.1 Action Scheduler Version: ? 3.2.1 WC Admin Version: ? 2.5.1 Log Directory Writable: ? WP Version: 5.8.1 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.23 PHP Post Max Size: 384 MB PHP Time Limit: 480 PHP Max Input Vars: 12000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 10.3.31-MariaDB Max Upload Size: 384 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.6.0 WC Database Prefix: wp28_ Total Database Size: 202.81MB Database Data Size: 193.91MB Database Index Size: 8.90MB wp28_woocommerce_sessions: Data: 42.08MB + Index: 2.23MB + Engine InnoDB wp28_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp28_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp28_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_actionscheduler_actions: Data: 0.25MB + Index: 0.36MB + Engine InnoDB wp28_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_actionscheduler_logs: Data: 0.19MB + Index: 0.19MB + Engine InnoDB wp28_commentmeta: Data: 0.36MB + Index: 0.38MB + Engine InnoDB wp28_comments: Data: 1.50MB + Index: 0.45MB + Engine InnoDB wp28_daextam_autolink: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_daextam_category: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_daextam_statistic: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_daextam_term_group: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_accounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_access_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_groups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_groups_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_nodes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_node_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_sessions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_account_status: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_apps: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_feeds: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_grouped_accounts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_fs_schedules: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_itsec_bans: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_itsec_dashboard_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_itsec_distributed_storage: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp28_itsec_fingerprints: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_itsec_geolocation_cache: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_itsec_lockouts: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp28_itsec_logs: Data: 0.20MB + Index: 0.11MB + Engine InnoDB wp28_itsec_mutexes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_itsec_opaque_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_itsec_temp: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp28_itsec_user_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_litespeed_avatar: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp28_litespeed_url: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp28_litespeed_url_file: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_options: Data: 7.20MB + Index: 0.17MB + Engine InnoDB wp28_postmeta: Data: 8.47MB + Index: 2.69MB + Engine InnoDB wp28_posts: Data: 4.36MB + Index: 0.48MB + Engine InnoDB wp28_rank_math_404_logs: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp28_rank_math_analytics_ga: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_rank_math_analytics_gsc: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_rank_math_analytics_keyword_manager: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_rank_math_analytics_objects: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp28_rank_math_internal_links: Data: 0.13MB + Index: 0.05MB + Engine InnoDB wp28_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_rank_math_redirections: Data: 0.02MB + Index: 0.00MB + Engine MyISAM wp28_rank_math_redirections_cache: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp28_revslider_css: Data: 0.13MB + Index: 0.02MB + Engine InnoDB wp28_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_revslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_revslider_slides: Data: 0.08MB + Index: 0.02MB + Engine InnoDB wp28_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_sellvia_activities: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_termmeta: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp28_terms: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp28_term_relationships: Data: 0.14MB + Index: 0.06MB + Engine InnoDB wp28_term_taxonomy: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp28_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp28_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp28_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp28_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp28_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp28_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp28_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_woof_query_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_wpfm_backup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp28_wpr_rucss_resources: Data: 9.94MB + Index: 0.09MB + Engine MyISAM wp28_wpr_rucss_used_css: Data: 117.30MB + Index: 0.04MB + Engine MyISAM wp28_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp28_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp28__klcf_new_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### attachment: 1936 elementor_library: 9 itsec-dash-card: 12 itsec-dashboard: 2 mc4wp-form: 1 nav_menu_item: 108 page: 39 post: 7 product: 144 product_variation: 63 revision: 21 saswp: 2 shop_coupon: 1 tbay_customtab: 1 tbay_footer: 1 tbay_header: 1 tbay_megamenu: 6 wpcf7_contact_form: 3 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (29) ### Redux: by Redux.io – 4.2.14 iThemes Security: by iThemes – 8.0.2 CMB2: by CMB2 team – 2.9.0 Contact Form 7: by Takayuki Miyoshi – 5.4.2 Autolinks Manager: by DAEXT – 1.10.01 Disable WooCommerce Bloat: by ospiotr – 2.5.2 Elementor Pro: by Elementor.com – 3.0.6 Elementor: by Elementor.com – 3.4.3 Enable Media Replace: by ShortPixel – 3.5.0 FS Poster: by FS-Code – 5.1.2 Klaviyo: by Klaviyo Inc. – 2.5.2 NitroPack: by NitroPack LLC – 1.5.7 Really Simple SSL: by Really Simple Plugins – 5.1.0 reSmush.it Image Optimizer: by reSmush.it – 0.4.1 Sellvia: by Sellvia Team – 0.3.3 Rank Math SEO PRO: by Rank Math – 2.15.0 Rank Math SEO: by Rank Math – 1.0.71.1 Sitepact's Contact Form 7 Extension For Klaviyo: by Sitepact – 1.0.2 Urna Core: by Team Thembay – 1.3.5 User Role Editor: by Vladimir Garagulya – 4.60.1 WebP Converter for Media: by Mateusz Gbiorczyk – 3.2.1 Photo Reviews for WooCommerce: by VillaTheme – 1.1.4.3 Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.19 WooCommerce Payments: by Automattic – 2.9.1 WooCommerce PayPal Payments: by WooCommerce – 1.5.1 WOOF - WooCommerce Products Filter: by realmag777 – 2.2.5.6 WooCommerce: by Automattic – 5.6.0 easy AMP: by amp-cloud.de | Bj?rn Staven – 3.9 Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.8.2 ### Inactive Plugins (8) ### All-in-One WP Migration: by ServMask – 7.47 All-in-One WP Migration Unlimited Extension: by ServMask – 2.42 Auto Tag Creator: by Ecreate Infotech – 1.0.1 summarizer: by Marco Campana – 0.1 WP Duplicate Page: by Ninja Team – 1.2 WP File Manager: by mndpsingh287 – 7.1.2 WP Rocket: by WP Media – 3.8.8 YITH WooCommerce Wishlist: by YITH – 3.1.0 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### 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: #9 - /shop/ Cart: #10 - /cart/ Checkout: #11 - /checkout/ My account: #12 - /my-account/ Terms and conditions: #1662 - /terms-of-use/ ### Theme ### Name: Urna Child Version: 1.0 Author URL: https://thembay.com/ Child Theme: ? Parent Theme Name: Urna Parent Theme Version: 2.3.7 Parent Theme Author URL: https://thembay.com WooCommerce Support: ? ### Templates ### Overrides: urna/woocommerce/cart/cart.php urna/woocommerce/cart/cross-sells.php urna/woocommerce/cart/mini-cart.php urna/woocommerce/checkout/form-checkout.php urna/woocommerce/content-product-cat.php urna/woocommerce/content-product.php urna/woocommerce/content-single-product.php urna/woocommerce/content-widget-product.php urna/woocommerce/global/breadcrumb.php urna/woocommerce/global/form-login.php urna/woocommerce/global/wrapper-end.php urna/woocommerce/global/wrapper-start.php urna/woocommerce/loop/add-to-cart.php urna/woocommerce/loop/loop-end.php urna/woocommerce/loop/loop-start.php urna/woocommerce/loop/orderby.php urna/woocommerce/loop/pagination.php urna/woocommerce/loop/rating.php urna/woocommerce/myaccount/form-login.php urna/woocommerce/single-product/product-image.php urna/woocommerce/single-product/rating.php urna/woocommerce/single-product/related.php urna/woocommerce/single-product/tabs/additional-information.php urna/woocommerce/single-product/tabs/description.php urna/woocommerce/single-product/tabs/tabs.php urna/woocommerce/single-product/up-sells.php ### WooCommerce PayPal Payments ### Onboarded: Yes Shop country code: US PayPal card processing available in country: Yes Pay Later messaging available in country: Yes Vault enabled: Yes ### Action Scheduler ### Complete: 784 Oldest: 2021-09-01 18:51:41 +0000 Newest: 2021-09-13 13:50:37 +0000 Pending: 1 Oldest: 2021-09-14 14:04:15 +0000 Newest: 2021-09-14 14:04:15 +0000 ### Status report information ### Generated at: 2021-09-13 17:12:33 +00:00
Hello there,
Thank you for the SSR!Please, submit this thread in the proper forum over here: https://www.ads-software.com/support/plugin/woocommerce-paypal-payments/
Also, make sure to send the complete error message if you can, thank you!
- The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.