Paul
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Widgets – There has been a critical error on this websiteApologies for creating two tickets – this ticket was marked as spam and appeared to be deleted.
I have enabled Health Check & Troubleshooting – along with WooCommerce (enabled using Enable whilst Troubleshooting) and the theme Storefront as you specified.
There is no other plugin enabled, but when I visit /wp-admin/widgets.php I still see the error message:
Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render() #2 /public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback() #3 /public_html/wp-includes/blocks.php(1072): WP_Block->render() #4 /public_html/wp-includes/blocks.php(1110): render_block() #5 /public_html/wp-includes/class-wp-hook.php(310): do_blocks() #6 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /public_html/wp-includes/widgets/class-wp-widget-block.php(78): apply_filters() #8 /public_html/wp-includes/class-wp-widget.php(394): WP_Widget_Block->widget() #9 /public_html/wp-includes/widgets.php(2022): WP_Widget->display_callback() #10 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget() #11 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response() #12 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Widgets_Controller->get_items() #13 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #14 /public_html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #15 /public_html/wp-includes/rest-api.php(2889): rest_do_request() #16 [internal function]: rest_preload_api_request() #17 /public_html/wp-includes/block-editor.php(634): array_reduce() #18 /public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload() #19 /public_html/wp-admin/widgets.php(32): require('/home/gardenkit...') #20 {main} thrown in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848The Site Health Plugin reports one “critical issue”:
1) Your site is set to display errors to site visitors – this was enabled to show the above error.
I have used the tools available in the Health Check & Troubleshooting plugin:
File integrity reported “All files passed the check. Everything seems to be OK!”
Email check reported “We have just sent an email using wp_mail() and it seems to work. Please check your inbox and spam folder to see if you received it.”
My WooCommerce status report for support shows: (please note, I have removed the web address)
### WordPress Environment ### WordPress address (URL): removed Site address (URL): removed WC Version: 7.8.2 REST API Version: ✔ 7.8.2 WC Blocks Version: ✔ 10.2.4 Action Scheduler Version: ✔ 3.5.4 Log Directory Writable: ✔ WP Version: 6.2.2 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: ✔ WP Cron: – Language: en_GB External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 8.1.20 PHP Post Max Size: 128 MB PHP Time Limit: 60 PHP Max Input Vars: 25000 cURL Version: 7.87.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 8.0.33-cll-lve Max Upload Size: 128 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 7.8.2 WC Database Prefix: gkb_ Total Database Size: 19.32MB Database Data Size: 15.81MB Database Index Size: 3.51MB gkb_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gkb_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gkb_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_abj404_logsv2: Data: 0.36MB + Index: 0.22MB + Engine MyISAM gkb_abj404_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_abj404_permalink_cache: Data: 0.11MB + Index: 0.02MB + Engine InnoDB gkb_abj404_redirects: Data: 0.14MB + Index: 0.36MB + Engine InnoDB gkb_abj404_spelling_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB gkb_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB gkb_ak_params: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_ak_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_ak_schedules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_ak_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_ak_storage: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_ak_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_akeeba_common: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB gkb_cp_calculated_fields_form_discount_codes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_cp_calculated_fields_form_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_cp_calculated_fields_form_revision: Data: 0.09MB + Index: 0.00MB + Engine InnoDB gkb_cp_calculated_fields_form_settings: Data: 0.05MB + Index: 0.00MB + Engine InnoDB gkb_dokan_announcement: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_dokan_orders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_dokan_refund: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_dokan_reverse_withdrawal: Data: 0.02MB + Index: 0.08MB + Engine InnoDB gkb_dokan_vendor_balance: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_dokan_withdraw: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_em_bookings: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_em_bookings_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_em_events: Data: 0.02MB + Index: 0.14MB + Engine InnoDB gkb_em_locations: Data: 0.02MB + Index: 0.08MB + Engine InnoDB gkb_em_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_em_tickets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_em_tickets_bookings: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_em_tickets_bookings_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_et_bloom_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_crawler: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_crawler_blacklist: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB gkb_options: Data: 2.41MB + Index: 0.16MB + Engine InnoDB gkb_postmeta: Data: 1.52MB + Index: 0.25MB + Engine InnoDB gkb_posts: Data: 9.20MB + Index: 0.06MB + Engine InnoDB gkb_pprh_table: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_rp_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_shortpixel_folders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_shortpixel_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_shortpixel_postmeta: Data: 0.09MB + Index: 0.08MB + Engine InnoDB gkb_sib_model_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_sib_model_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB gkb_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gkb_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB gkb_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wpforms_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wpforms_entry_fields: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_wpforms_entry_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 34 custom_css: 6 customize_changeset: 1 et_body_layout: 5 et_footer_layout: 3 et_header_layout: 4 et_pb_layout: 7 et_template: 8 et_theme_builder: 1 event: 5 location: 1 nav_menu_item: 12 page: 15 post: 11 product: 6 product_variation: 13 revision: 2 shop_order: 3 wp_global_styles: 2 wp_navigation: 1 wpforms: 1 wphb_minify_group: 13 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ❌Error messages should not be shown to visitors. ### Active Plugins (2) ### Health Check & Troubleshooting: by The WordPress.org community – 1.6.0 WooCommerce: by Automattic – 7.8.2 ### Inactive Plugins (20) ### 404 Solution: by Aaron J – 2.32.2 Admin Management Xtended: by Oliver Schlöbe – 2.4.5 Akeeba Backup CORE for WordPress: by Akeeba Ltd – 7.9.2 Akismet Anti-Spam: Spam Protection: by Automattic - Anti Spam Team – 5.2 Disable WP Sitemaps: by Jeff Starr – 1.8 Divi Accessibility: by CampusPress – 2.0.5 Divi Booster: by Dan Mossop – 4.2.6 Divi Shortcode Enabler: by Divi Booster – 1.4.5 Event Schema: by Xylus Themes – 1.1.1 Events Manager: by Pixelite – 6.4.3 Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.27 Index WP MySQL For Speed: by Oliver Jones Rick James – 1.4.13 LiteSpeed Cache: by LiteSpeed Technologies – 5.5 Maintenance: by WebFactory Ltd – 4.07 Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: by Sendinblue – 3.1.66 Pre* Party Resource Hints: by Sam Perrow – 1.8.14 SEOPress: by The SEO Guys at SEOPress – 6.8 Super Progressive Web Apps: by SuperPWA – 2.2.17 WooCommerce Cash On Pickup: by Marian Kadanka – 1.6.1 WP Mail SMTP: by WP Mail SMTP – 3.8.0 ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### Must Use Plugins (2) ### akeeba-backup-coreupdate.php: by – Health Check Troubleshooting Mode: by – 1.9.0 ### 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) 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: #238 - /our-cakes/ Basket: #239 - /our-cakes/basket/ Checkout: #240 - /our-cakes/checkout/ My account: #241 - /our-cakes/my-account/ Terms and conditions: #1522 - /about/terms-and-conditions/ ### Theme ### Name: Storefront Version: 4.4.1 Author URL: https://woocommerce.com/ 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: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor 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: core-profiler minified-js new-product-management-experience product-variation-management settings async-product-editor-category-field Daily Cron: ✔ Next scheduled: 2023-07-13 20:01:35 +01:00 Options: ✔ Notes: 40 Onboarding: completed ### Action Scheduler ### Complete: 53 Oldest: 2023-06-12 12:48:02 +0100 Newest: 2023-07-12 23:40:04 +0100 Failed: 16 Oldest: 2023-04-13 22:18:02 +0100 Newest: 2023-05-31 14:23:46 +0100 Pending: 1 Oldest: 2023-07-13 23:40:04 +0100 Newest: 2023-07-13 23:40:04 +0100 ### Status report information ### Generated at: 2023-07-13 09:46:04 +01:00I have tried using different versions of PHP (I am currently using 8.1)
Using PHP 7.2 I am presented with the following errors when visiting /wp-admin/widgets.php
Parse error: syntax error, unexpected ')' in /public_html/wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-ssr-controller.php on line 53Using PHP 7.3, 7.4 I see:
Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render(Array, '', Object(WP_Block)) #2 /public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, '', Object(WP_Block)) #3 /public_html/wp-includes/blocks.php(1072): WP_Block->render() #4 /public_html/wp-includes/blocks.php(1110): render_block(Array) #5 /public_html/wp-includes/class-wp-hook.php(310): do_blocks('<!-- wp:woocomm...') #6 /home/ga in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848Using PHP 8.0 I see:
Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render() #2 /public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback() #3 /public_html/wp-includes/blocks.php(1072): WP_Block->render() #4 /public_html/wp-includes/blocks.php(1110): render_block() #5 /public_html/wp-includes/class-wp-hook.php(310): do_blocks() #6 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /public_html/wp-includes/widgets/class-wp-widget-block.php(78): apply_filters() #8 /public_html/wp-includes/class-wp-widget.php(394): WP_Widget_Block->widget() #9 /public_html/wp-includes/widgets.php(2022): WP_Widget->display_callback() #10 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget() #11 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response() #12 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Widgets_Controller->get_items() #13 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #14 /public_html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #15 /public_html/wp-includes/rest-api.php(2889): rest_do_request() #16 [internal function]: rest_preload_api_request() #17 /public_html/wp-includes/block-editor.php(634): array_reduce() #18 /public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload() #19 /public_html/wp-admin/widgets.php(32): require('/home/gardenkit...') #20 {main} thrown in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848I have re-installed WordPress using the update page to restore this to the default version – I have also done the same with WooCommerce – to no effect.
Forum: Plugins
In reply to: [WooCommerce] Widgets – Critical ErrorApologies for creating two tickets – this ticket was marked as spam and appeared to be deleted.
I have enabled Health Check & Troubleshooting – along with WooCommerce (enabled using Enable whilst Troubleshooting) and the theme Storefront as you specified.
There is no other plugin enabled, but when I visit /wp-admin/widgets.php I still see the error message:
Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render() #2 /public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback() #3 /public_html/wp-includes/blocks.php(1072): WP_Block->render() #4 /public_html/wp-includes/blocks.php(1110): render_block() #5 /public_html/wp-includes/class-wp-hook.php(310): do_blocks() #6 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /public_html/wp-includes/widgets/class-wp-widget-block.php(78): apply_filters() #8 /public_html/wp-includes/class-wp-widget.php(394): WP_Widget_Block->widget() #9 /public_html/wp-includes/widgets.php(2022): WP_Widget->display_callback() #10 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget() #11 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response() #12 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Widgets_Controller->get_items() #13 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #14 /public_html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #15 /public_html/wp-includes/rest-api.php(2889): rest_do_request() #16 [internal function]: rest_preload_api_request() #17 /public_html/wp-includes/block-editor.php(634): array_reduce() #18 /public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload() #19 /public_html/wp-admin/widgets.php(32): require('/home/gardenkit...') #20 {main} thrown in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848The Site Health Plugin reports one “critical issue”:
1) Your site is set to display errors to site visitors – this was enabled to show the above error.
I have used the tools available in the Health Check & Troubleshooting plugin:
File integrity reported “All files passed the check. Everything seems to be OK!”
Email check reported “We have just sent an email using wp_mail() and it seems to work. Please check your inbox and spam folder to see if you received it.
My WooCommerce status report for support shows: (please note, I have removed the web address)
### WordPress Environment ### WordPress address (URL): removed Site address (URL): removed WC Version: 7.8.2 REST API Version: ✔ 7.8.2 WC Blocks Version: ✔ 10.2.4 Action Scheduler Version: ✔ 3.5.4 Log Directory Writable: ✔ WP Version: 6.2.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ✔ WP Cron: – Language: en_GB External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 8.0.29 PHP Post Max Size: 64 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.87.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 8.0.33-cll-lve Max Upload Size: 64 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: 7.8.2 WC Database Prefix: gkb_ Total Database Size: 19.32MB Database Data Size: 15.81MB Database Index Size: 3.51MB gkb_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gkb_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gkb_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_abj404_logsv2: Data: 0.36MB + Index: 0.22MB + Engine MyISAM gkb_abj404_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_abj404_permalink_cache: Data: 0.11MB + Index: 0.02MB + Engine InnoDB gkb_abj404_redirects: Data: 0.14MB + Index: 0.36MB + Engine InnoDB gkb_abj404_spelling_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB gkb_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB gkb_ak_params: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_ak_profiles: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_ak_schedules: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_ak_stats: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_ak_storage: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_ak_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_akeeba_common: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB gkb_cp_calculated_fields_form_discount_codes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_cp_calculated_fields_form_posts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_cp_calculated_fields_form_revision: Data: 0.09MB + Index: 0.00MB + Engine InnoDB gkb_cp_calculated_fields_form_settings: Data: 0.05MB + Index: 0.00MB + Engine InnoDB gkb_dokan_announcement: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_dokan_orders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_dokan_refund: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_dokan_reverse_withdrawal: Data: 0.02MB + Index: 0.08MB + Engine InnoDB gkb_dokan_vendor_balance: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_dokan_withdraw: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_em_bookings: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_em_bookings_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_em_events: Data: 0.02MB + Index: 0.14MB + Engine InnoDB gkb_em_locations: Data: 0.02MB + Index: 0.08MB + Engine InnoDB gkb_em_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_em_tickets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_em_tickets_bookings: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_em_tickets_bookings_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_et_bloom_stats: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_crawler: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_crawler_blacklist: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_img_optming: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_litespeed_url: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_litespeed_url_file: Data: 0.02MB + Index: 0.08MB + Engine InnoDB gkb_options: Data: 2.41MB + Index: 0.16MB + Engine InnoDB gkb_postmeta: Data: 1.52MB + Index: 0.25MB + Engine InnoDB gkb_posts: Data: 9.20MB + Index: 0.06MB + Engine InnoDB gkb_pprh_table: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_rp_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_shortpixel_folders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_shortpixel_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_shortpixel_postmeta: Data: 0.09MB + Index: 0.08MB + Engine InnoDB gkb_sib_model_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_sib_model_users: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB gkb_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gkb_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gkb_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB gkb_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wpforms_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wpforms_entry_fields: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gkb_wpforms_entry_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gkb_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gkb_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 34 custom_css: 6 customize_changeset: 1 et_body_layout: 5 et_footer_layout: 3 et_header_layout: 4 et_pb_layout: 7 et_template: 8 et_theme_builder: 1 event: 5 location: 1 nav_menu_item: 12 page: 15 post: 11 product: 6 product_variation: 13 revision: 2 shop_order: 3 wp_global_styles: 2 wp_navigation: 1 wpforms: 1 wphb_minify_group: 13 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ❌Error messages should not be shown to visitors. ### Active Plugins (2) ### Health Check & Troubleshooting: by The WordPress.org community – 1.6.0 WooCommerce: by Automattic – 7.8.2 ### Inactive Plugins (20) ### 404 Solution: by Aaron J – 2.32.2 Admin Management Xtended: by Oliver Schlöbe – 2.4.5 Akeeba Backup CORE for WordPress: by Akeeba Ltd – 7.9.2 Akismet Anti-Spam: Spam Protection: by Automattic - Anti Spam Team – 5.2 Disable WP Sitemaps: by Jeff Starr – 1.8 Divi Accessibility: by CampusPress – 2.0.5 Divi Booster: by Dan Mossop – 4.2.6 Divi Shortcode Enabler: by Divi Booster – 1.4.5 Event Schema: by Xylus Themes – 1.1.1 Events Manager: by Pixelite – 6.4.3 Favicon by RealFaviconGenerator: by Philippe Bernard – 1.3.27 Index WP MySQL For Speed: by Oliver Jones Rick James – 1.4.13 LiteSpeed Cache: by LiteSpeed Technologies – 5.5 Maintenance: by WebFactory Ltd – 4.07 Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: by Sendinblue – 3.1.66 Pre* Party Resource Hints: by Sam Perrow – 1.8.14 SEOPress: by The SEO Guys at SEOPress – 6.8 Super Progressive Web Apps: by SuperPWA – 2.2.17 WooCommerce Cash On Pickup: by Marian Kadanka – 1.6.1 WP Mail SMTP: by WP Mail SMTP – 3.8.0 ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### Must Use Plugins (2) ### akeeba-backup-coreupdate.php: by – Health Check Troubleshooting Mode: by – 1.9.0 ### 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) 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: #238 - /our-cakes/ Basket: #239 - /our-cakes/basket/ Checkout: #240 - /our-cakes/checkout/ My account: #241 - /our-cakes/my-account/ Terms and conditions: #1522 - /about/terms-and-conditions/ ### Theme ### Name: Storefront Version: 4.4.1 Author URL: https://woocommerce.com/ 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: – ### Admin ### Enabled Features: activity-panels analytics product-block-editor 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: core-profiler minified-js new-product-management-experience product-variation-management settings async-product-editor-category-field Daily Cron: ✔ Next scheduled: 2023-07-13 20:01:35 +01:00 Options: ✔ Notes: 40 Onboarding: completed ### Action Scheduler ### Complete: 53 Oldest: 2023-06-12 12:48:02 +0100 Newest: 2023-07-12 23:40:04 +0100 Failed: 16 Oldest: 2023-04-13 22:18:02 +0100 Newest: 2023-05-31 14:23:46 +0100 Pending: 1 Oldest: 2023-07-13 23:40:04 +0100 Newest: 2023-07-13 23:40:04 +0100 ### Status report information ### Generated at: 2023-07-13 09:59:21 +01:00I have tried using different versions of PHP (I am currently using 8.1)
Using PHP 7.2 I am presented with the following errors when visiting /wp-admin/widgets.php
Parse error: syntax error, unexpected ')' in /public_html/wp-content/plugins/woocommerce/includes/wccom-site/rest-api/endpoints/class-wc-rest-wccom-site-ssr-controller.php on line 53Using PHP 7.3 & 7.4 I see:
Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render(Array, '', Object(WP_Block)) #2 /public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, '', Object(WP_Block)) #3 /public_html/wp-includes/blocks.php(1072): WP_Block->render() #4 /public_html/wp-includes/blocks.php(1110): render_block(Array) #5 /public_html/wp-includes/class-wp-hook.php(310): do_blocks('<!-- wp:woocomm...') #6 /home/ga in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848Using PHP 8.0 I see:
Fatal error: Uncaught Error: Call to undefined function wc_print_notices() in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php:3848 Stack trace: #0 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/StoreNotices.php(30): woocommerce_output_all_notices() #1 /public_html/wp-content/plugins/woocommerce/packages/woocommerce-blocks/src/BlockTypes/AbstractBlock.php(88): Automattic\WooCommerce\Blocks\BlockTypes\StoreNotices->render() #2 /public_html/wp-includes/class-wp-block.php(258): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback() #3 /public_html/wp-includes/blocks.php(1072): WP_Block->render() #4 /public_html/wp-includes/blocks.php(1110): render_block() #5 /public_html/wp-includes/class-wp-hook.php(310): do_blocks() #6 /public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #7 /public_html/wp-includes/widgets/class-wp-widget-block.php(78): apply_filters() #8 /public_html/wp-includes/class-wp-widget.php(394): WP_Widget_Block->widget() #9 /public_html/wp-includes/widgets.php(2022): WP_Widget->display_callback() #10 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(697): wp_render_widget() #11 /public_html/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php(154): WP_REST_Widgets_Controller->prepare_item_for_response() #12 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1181): WP_REST_Widgets_Controller->get_items() #13 /public_html/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request() #14 /public_html/wp-includes/rest-api.php(535): WP_REST_Server->dispatch() #15 /public_html/wp-includes/rest-api.php(2889): rest_do_request() #16 [internal function]: rest_preload_api_request() #17 /public_html/wp-includes/block-editor.php(634): array_reduce() #18 /public_html/wp-admin/widgets-form-blocks.php(26): block_editor_rest_api_preload() #19 /public_html/wp-admin/widgets.php(32): require('/home/gardenkit...') #20 {main} thrown in /public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 3848I have re-installed WordPress using the update page to restore this to the default version – I have also done the same with WooCommerce – to no effect.
Hi,
I have switched to using “WP Mail SMTP Lite” and configured it to work using “other smtp” and Amazon SES SMTP and all is now good – I have tested a variety of emails and all are sending correctly.
I do not feel comfortable sharing my site with you via TeamViewer, especially when I have provided logs that detail where the error is originating.
Regards
Forum: Plugins
In reply to: [404 Solution] 504 ErrorI’m happy to use the plugin without the Automatic functions, it is working better than other plugins I’ve tried even with this little glitch 🙂
If you need to use my site for testing, drop me a message and I can provide you with a login etc.
I’m happy to close this ticket if you are 🙂
Forum: Plugins
In reply to: [404 Solution] 504 ErrorJust a note.
I disabled the following settings, and it seems to be stable again:
– Create automatic redirects
– Create automatic redirects for categories
– Create automatic redirects for tags.Perhaps the automatic lookup against such a large number of posts/pages was causing the time out?
Forum: Plugins
In reply to: [404 Solution] 504 ErrorThere are around 1600 pages/posts.
Forum: Plugins
In reply to: [404 Solution] 504 ErrorHey,
I have posted my 404 Plugin Log to: https://pastebin.com/H7rAVA0K
I have added some example links to: https://pastebin.com/VM3AufRp
Many thanks for your help