Error
-
PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1600 PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1601 PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1602 PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1603 PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612 PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612
-
Hi @saadamin
Thanks for reaching out!
I am sorry to hear that you are receiving the error message above on your site.
As a first step, can you please share with us how did you receive the error message above? Are there any changes or updates (plugin update, theme update, template update, etc) made on your site prior to this issue?
For us to investigate this further, can you please try to switch to the default Storefront theme and only WooCommerce plugin is enabled and see if the error logs are cleared afterwards?
If so, then this kind of problem is usually caused by your theme or a third-party plugin present on your site. We can run a conflict test to verify this. I’d recommend cloning your site to a staging environment and performing the tests described on this guide without modifying your live site or impacting customers. Many hosts provide staging facilities, so it’s worth checking in with them. It’s also possible to do it using the free WP Staging plugin.
If this was caused by a third-party plugin present on your site, it would be best to reach out to the developers for further assistance here.
If this did not resolve the issue, please share your System Status Report, that will help us further troubleshoot.
You can find it 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.
Let us know how it goes!
WooCommerce > Status > Logs 2023-05-17T07:45:42+00:00 DEBUG ====Stripe Version: 7.4.0==== ====Start Log==== account ====End Log==== 2023-05-17T09:53:56+00:00 DEBUG ====Stripe Version: 7.4.0==== ====Start Log==== account ====End Log==== 2023-05-17T13:56:59+00:00 DEBUG ====Stripe Version: 7.4.0==== ====Start Log==== account ====End Log==== 2023-05-17T20:42:33+00:00 DEBUG ====Stripe Version: 7.4.0==== ====Start Log==== account ====End Log====
[17-May-2023 19:34:31 UTC] PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1600 [17-May-2023 19:34:31 UTC] PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1601 [17-May-2023 19:34:31 UTC] PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1602 [17-May-2023 19:34:31 UTC] PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1603 [17-May-2023 19:34:31 UTC] PHP Notice: Trying to access array offset on value of type bool in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 1612
I have received errors again . I do not know how .
` ### WordPress Environment ### WordPress address (URL): I do not want to share Site address (URL): I do not want to share WC Version: 7.7.0 REST API Version: ? 7.7.0 WC Blocks Version: ? 10.0.4 Action Scheduler Version: ? 3.5.4 Log Directory Writable: ? WP Version: 6.2.1 WP Multisite: – WP Memory Limit: 20 GB WP Debug Mode: ? WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache/2.4.29 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/1.1.1 PHP Version: 7.4.33 PHP Post Max Size: 999 MB PHP Time Limit: 99999 PHP Max Input Vars: 5000 cURL Version: 7.58.0 OpenSSL/1.1.1 SUHOSIN Installed: – MySQL Version: 5.7.42-0ubuntu0.18.04.1 Max Upload Size: 999 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 7.7.0 WC Database Prefix: 52vac_ Total Database Size: 3636.93MB Database Data Size: 3316.62MB Database Index Size: 320.31MB 52vac_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.50MB + Index: 0.11MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 3.52MB + Index: 3.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 4.52MB + Index: 3.61MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 3.52MB + Index: 3.03MB + Engine InnoDB wp_amazon_accounts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_amazon_btg: Data: 3.52MB + Index: 2.17MB + Engine InnoDB wp_amazon_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_amazon_feeds: Data: 54.02MB + Index: 0.05MB + Engine InnoDB wp_amazon_feed_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_amazon_feed_tpl_data: Data: 2.36MB + Index: 0.48MB + Engine InnoDB wp_amazon_feed_tpl_values: Data: 6.19MB + Index: 1.55MB + Engine InnoDB wp_amazon_jobs: Data: 2.02MB + Index: 0.00MB + Engine InnoDB wp_amazon_listings: Data: 224.78MB + Index: 16.13MB + Engine InnoDB wp_amazon_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_amazon_markets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_amazon_orders: Data: 589.98MB + Index: 10.58MB + Engine InnoDB wp_amazon_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_amazon_profiles: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_amazon_reports: Data: 1596.52MB + Index: 0.00MB + Engine InnoDB wp_amazon_shipping: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_amazon_stock_log: Data: 18.55MB + Index: 0.00MB + Engine InnoDB wp_cd_customizations: Data: 0.11MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 2.52MB + Index: 1.27MB + Engine InnoDB wp_crypto_files: Data: 0.02MB + Index: 0.33MB + Engine InnoDB wp_crypto_membership: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_crypto_payments: Data: 0.02MB + Index: 0.31MB + Engine InnoDB wp_crypto_products: Data: 0.02MB + Index: 0.25MB + Engine InnoDB wp_easywpsmtp_debug_events: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_easywpsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ebay_accounts: Data: 0.19MB + Index: 0.00MB + Engine InnoDB wp_ebay_auctions: Data: 148.52MB + Index: 0.53MB + Engine InnoDB wp_ebay_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ebay_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ebay_log: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_ebay_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ebay_orders: Data: 62.52MB + Index: 0.16MB + Engine InnoDB wp_ebay_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ebay_profiles: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_ebay_shipping: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_ebay_sites: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_ebay_stocks_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_ebay_store_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_ebay_transactions: Data: 60.52MB + Index: 0.25MB + Engine InnoDB wp_email_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_eum_logs: Data: 4.52MB + Index: 0.00MB + Engine InnoDB wp_ewwwio_images: Data: 19.55MB + Index: 12.08MB + Engine InnoDB wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gglcptch_allowlist: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_layerslider: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_layerslider_revisions: Data: 0.23MB + Index: 0.00MB + Engine InnoDB wp_LimitedProduct: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_Limit_express_sh: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_litespeed_img_optming: Data: 2.02MB + Index: 1.23MB + Engine InnoDB wp_options: Data: 21.39MB + Index: 4.25MB + Engine InnoDB wp_pms_plugin: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_pms_plugin_folder: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_postmeta: Data: 402.95MB + Index: 214.42MB + Engine InnoDB wp_posts: Data: 47.56MB + Index: 18.11MB + Engine InnoDB wp_sbi_feeds: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_sbi_feed_caches: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_feed_locator: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_sbi_instagram_posts: Data: 0.13MB + Index: 0.00MB + Engine InnoDB wp_sbi_sources: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.27MB + Index: 0.27MB + Engine InnoDB wp_terms: Data: 0.34MB + Index: 0.31MB + Engine InnoDB wp_term_relationships: Data: 1.52MB + Index: 1.52MB + Engine InnoDB wp_term_taxonomy: Data: 0.30MB + Index: 0.34MB + Engine InnoDB wp_tm_taskmeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_tm_tasks: Data: 0.11MB + Index: 0.02MB + Engine InnoDB wp_usermeta: Data: 5.52MB + Index: 4.03MB + Engine InnoDB wp_users: Data: 1.52MB + Index: 0.36MB + Engine InnoDB wp_wc_admin_notes: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.19MB + Index: 0.13MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_gpf_render_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.28MB + Index: 0.25MB + Engine InnoDB wp_wc_order_stats: Data: 0.22MB + Index: 0.17MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 8.55MB + Index: 6.55MB + Engine InnoDB wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 7.52MB + Index: 10.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_gpf_google_taxonomy: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_action_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_cron: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_ftp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wt_iew_mapping_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.05MB + Engine InnoDB crypto_files: Data: 0.02MB + Index: 0.33MB + Engine InnoDB crypto_membership: Data: 0.02MB + Index: 0.09MB + Engine InnoDB crypto_payments: Data: 0.02MB + Index: 0.31MB + Engine InnoDB crypto_products: Data: 0.02MB + Index: 0.25MB + Engine InnoDB emails: Data: 0.02MB + Index: 0.00MB + Engine InnoDB LimitedProduct: Data: 0.02MB + Index: 0.02MB + Engine InnoDB valid: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### attachment: 27585 nav_menu_item: 11 page: 38 post: 2 postman_sent_mail: 250 product: 1782 product_variation: 54879 revision: 42 shop_coupon: 2 shop_order: 2585 shop_order_refund: 42 ssr_cgpa: 21 ssr_subjects: 18 subscriber: 36 was: 1 wc_afrsm: 3 wc_afrsm_zone: 1 wpcf7_contact_form: 2 yith_wcan_preset: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (31) ### Saad DB Asin clone: by Saad Amin – 1.0.1 Saad Add Custom Field to Product Variations: by Saad Amin – 1.0.1 Limit express shipping: by Saad Amin – 1.0 Saad Product CSV export: by Saad Amin – 1.0 Advanced Flat Rate Shipping For WooCommerce: by theDotstore – 4.2 Contact Form 7: by Takayuki Miyoshi – 5.7.6 Easy WP SMTP: by Easy WP SMTP – 2.1.0 Envato Market: by Envato – 2.0.8 reCaptcha by BestWebSoft: by BestWebSoft – 1.71 Smash Balloon Instagram Feed: by Smash Balloon – 6.1.4 Neighborhood Framework: by Swift Ideas – 1.0.12 Plugin Groups: by David Cramer – 2.0.6 Plugins Garbage Collector (Database Cleanup) Old!: by Vladimir Garagulya – 0.14 WooCommerce Saad Variation button: by Saad Amin – 1.0.1 WooCommerce Saad Shipping: by Saad Amin – 1.0.1 Saad Woocommerce customization: by Saad Amin – 1.0 Theme My Login: by Jeff Farthing – 9996.4.10 Trustpilot-reviews: by Trustpilot – 2.5.914 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 2.23.4.26 Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 4.7.3 WooCommerce Stripe Gateway: by WooCommerce – 7.4.0 Import from eBay to WooCommerce: by WP Lab – 1.8.4 WooCommerce Min/Max Quantities: by WooCommerce – 2.4.15 WooCommerce PayPal Pro: by wp.insider – 2.9.11 WooCommerce: by Automattic – 7.7.0 WP Crontrol: by John Blackbourn & contributors – 1.15.2 WP Hide & Security Enhancer: by Nsp Code – 2.0.6 WP-Lister Pro for Amazon: by WP Lab – 2.5.4 WP-Lister Pro for eBay: by WP Lab – 3.4.5 YITH WooCommerce Ajax Product Filter: by YITH – 4.22.0 YITH WooCommerce Wishlist: by YITH – 3.21.0 ### Inactive Plugins (1) ### Product SKU Generator for WooCommerce: by SkyVerge – 2.4.8 ### Must Use Plugins (1) ### wp-hide-loader.php: by – ### Settings ### API Enabled: ? Force SSL: ? Currency: GBP (£) 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) instock (instock) 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: – Enforce Approved Product Download Directories: – HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: – ### WC Pages ### Shop base: #6 - / Basket: #7 - /cart/ Checkout: #8 - /checkout/ My account: #5864 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Neighborhood-child Version: 1.0 Author URL: https://www.saadamin.com Child Theme: ? Parent Theme Name: Neighborhood Parent Theme Version: 3.8.0 Parent Theme Author URL: https://www.swiftideas.net WooCommerce Support: ? ### Templates ### Overrides: neighborhood-child/woocommerce/archive-product.php neighborhood/woocommerce/cart/cart-totals.php neighborhood/woocommerce/cart/cart.php version 3.8.0 is out of date. The core version is 7.4.0 neighborhood/woocommerce/cart/cross-sells.php neighborhood/woocommerce/checkout/form-billing.php neighborhood/woocommerce/checkout/form-checkout.php neighborhood/woocommerce/checkout/form-shipping.php neighborhood-child/woocommerce/content-product.php neighborhood/woocommerce/content-single-product.php neighborhood-child/woocommerce/content-widget-product.php neighborhood/woocommerce/global/quantity-input.php version 4.0.0 is out of date. The core version is 7.4.0 neighborhood/woocommerce/loop/loop-end.php neighborhood/woocommerce/loop/loop-start.php neighborhood/woocommerce/loop/result-count.php neighborhood/woocommerce/myaccount/form-login.php version 4.1.0 is out of date. The core version is 7.0.1 neighborhood/woocommerce/single-product/meta.php neighborhood/woocommerce/single-product/product-image.php neighborhood/woocommerce/single-product/product-thumbnails.php neighborhood/woocommerce/single-product/related.php neighborhood/woocommerce/single-product/tabs/description.php neighborhood/woocommerce/single-product/tabs/tabs.php neighborhood/woocommerce/single-product/up-sells.php neighborhood/woocommerce/single-product.php neighborhood/woocommerce/content-product_cat.php Outdated Templates: ? Learn how to update ### 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 mobile-app-banner navigation 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: product-block-editor minified-js new-product-management-experience product-variation-management settings Daily Cron: ? Next scheduled: 2023-05-18 18:37:52 +01:00 Options: ? Notes: 150 Onboarding: completed ### Action Scheduler ### Canceled: 1 Oldest: 2023-04-17 23:59:55 +0100 Newest: 2023-04-17 23:59:55 +0100 Complete: 8,512 Oldest: 2023-04-16 23:32:54 +0100 Newest: 2023-05-17 17:20:01 +0100 Failed: 110 Oldest: 2020-09-04 00:15:58 +0100 Newest: 2023-05-15 14:00:31 +0100 Pending: 6 Oldest: 2023-05-17 23:47:55 +0100 Newest: 2023-05-27 18:46:05 +0100 ### Status report information ### Generated at: 2023-05-17 21:45:56 +01:00 `
Hi @saadamin
Thanks for sharing the requested information above.
We understand that you are encountering a PHP Notice in your WooCommerce installation, specifically on line 1600 of the
wc-template-functions.php
file.The PHP Notice you are experiencing is likely due to a minor compatibility issue between your current PHP version and the WooCommerce plugin.
Can you please confirm that you’ve performed the suggestion above to run a full conflict test for us to verify if your theme or another third-party plugin is causing this issue on your site?
Meanwhile, checking your site’s SSR, I can only see that you have
Outdated Templates: ?
which could be resolved by following our guide here: Fixing Outdated WooCommerce Templates
- The topic ‘Error’ is closed to new replies.