I don’t use blocks but get PHP warnings about deactivated payment gateways
-
Hello, I’m getting php warnings in my error log about various dependencies not being registered
“Payment gateway with handle ‘wc-payment-method-cod’ has been deactivated because its dependency ‘wc-blocks-registry’ is not registered.” gives a whole list of dependencies that aren’t registered. Fortunately the gateway (which is the only one used, and has been modified to pay by arrangement) still works fine, but it’s a busy website so the error logs grow quickly and it’s a pain sifting through them to find other errors that might be there.
I don’t use blocks at all – in fact I have Gutenberg disabled completely and use Elementor. This started happening with WP 7.2 and Woo 2.2 and now Woo 3.0
I’m seriously tempted to revert back to WordPress 6.4 to get rid of it.
-
Hi @shaolin,
Sorry to hear of that warning message. Can you please share a copy of your System Status report as found under WooCommerce > Status > System status? Select “Get system report” and then “Copy for support”. Once you’ve done that, paste it here in your response.
Thanks!
Hi, this is from the live site. Woo 3.0 is being tested on staging site (and it's fine apart from those server error notices still happening even though the gateway still seems to fucntion normally. (The woocommerce shortcodes are actually on the WC pages, it's just that I'm using Elementor there so I guess it doesn't count them) ------------------------------ ### WordPress Environment ### WordPress address (URL): https://xxxx Site address (URL): https://xxxx WC Version: 5.2.2 REST API Version: ? 5.2.2 WC Blocks Version: ? 4.7.2 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 2.1.5 Log Directory Writable: ? WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.16 PHP Post Max Size: 256 MB PHP Time Limit: 3600 PHP Max Input Vars: 5000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 10.1.48-MariaDB-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: 5.2.2 WC Database Prefix: zscaumjw_ Total Database Size: 168.57MB Database Data Size: 114.86MB Database Index Size: 53.71MB zscaumjw_woocommerce_sessions: Data: 0.36MB + Index: 0.02MB + Engine MyISAM zscaumjw_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_order_items: Data: 4.25MB + Index: 2.42MB + Engine MyISAM zscaumjw_woocommerce_order_itemmeta: Data: 40.14MB + Index: 25.26MB + Engine MyISAM zscaumjw_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_actionscheduler_actions: Data: 0.13MB + Index: 0.06MB + Engine MyISAM zscaumjw_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_actionscheduler_logs: Data: 0.09MB + Index: 0.08MB + Engine MyISAM zscaumjw_ac_segments: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_admin_columns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_aioseo_notifications: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_aioseo_posts: Data: 0.45MB + Index: 0.09MB + Engine MyISAM zscaumjw_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_comments: Data: 6.98MB + Index: 2.16MB + Engine MyISAM zscaumjw_cscs_db_subscriptions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_e_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_e_submissions_actions_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_e_submissions_values: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_gf_addon_feed: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_gf_draft_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_gf_entry: Data: 0.21MB + Index: 0.03MB + Engine MyISAM zscaumjw_gf_entry_meta: Data: 0.57MB + Index: 0.58MB + Engine MyISAM zscaumjw_gf_entry_notes: Data: 0.10MB + Index: 0.03MB + Engine MyISAM zscaumjw_gf_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine MyISAM zscaumjw_gf_form_revisions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_gf_form_view: Data: 0.20MB + Index: 0.09MB + Engine MyISAM zscaumjw_gf_rest_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_jet_post_types: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_jet_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_litespeed_avatar: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_litespeed_cssjs: Data: 0.19MB + Index: 0.06MB + Engine MyISAM zscaumjw_litespeed_img_optm: Data: 10.04MB + Index: 6.10MB + Engine MyISAM zscaumjw_litespeed_img_optming: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_moppm_user_login_info: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_newsletter: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_newsletter_emails: Data: 0.01MB + Index: 0.00MB + Engine MyISAM zscaumjw_newsletter_sent: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_newsletter_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_options: Data: 9.29MB + Index: 0.28MB + Engine MyISAM zscaumjw_pmxe_exports: Data: 0.06MB + Index: 0.00MB + Engine MyISAM zscaumjw_pmxe_google_cats: Data: 0.26MB + Index: 0.05MB + Engine MyISAM zscaumjw_pmxe_posts: Data: 0.08MB + Index: 0.04MB + Engine MyISAM zscaumjw_pmxe_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_postmeta: Data: 32.40MB + Index: 11.49MB + Engine MyISAM zscaumjw_posts: Data: 2.18MB + Index: 0.74MB + Engine MyISAM zscaumjw_rg_form: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_rg_form_meta: Data: 0.02MB + Index: 0.00MB + Engine MyISAM zscaumjw_rg_form_view: Data: 0.10MB + Index: 0.05MB + Engine MyISAM zscaumjw_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_rg_lead: Data: 0.39MB + Index: 0.04MB + Engine MyISAM zscaumjw_rg_lead_detail: Data: 0.72MB + Index: 1.12MB + Engine MyISAM zscaumjw_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_rg_lead_meta: Data: 0.30MB + Index: 0.14MB + Engine MyISAM zscaumjw_rg_lead_notes: Data: 0.02MB + Index: 0.01MB + Engine MyISAM zscaumjw_signups: Data: 0.06MB + Index: 0.05MB + Engine MyISAM zscaumjw_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_auth_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_backuped_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_backups: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_bfp_blocked: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_firewall_data: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_firewall_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_firewall__personal_countries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_firewall__personal_ips: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_scan_frontend: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_scan_links_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_scan_results: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_scan_signatures: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_spbc_traffic_control_logs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_termmeta: Data: 0.08MB + Index: 0.04MB + Engine MyISAM zscaumjw_terms: Data: 0.01MB + Index: 0.04MB + Engine MyISAM zscaumjw_term_relationships: Data: 0.10MB + Index: 0.18MB + Engine MyISAM zscaumjw_term_taxonomy: Data: 0.02MB + Index: 0.02MB + Engine MyISAM zscaumjw_tm_taskmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_usermeta: Data: 4.38MB + Index: 1.88MB + Engine MyISAM zscaumjw_users: Data: 0.18MB + Index: 0.16MB + Engine MyISAM zscaumjw_usin_events: Data: 0.08MB + Index: 0.01MB + Engine MyISAM zscaumjw_usin_user_data: Data: 0.02MB + Index: 0.02MB + Engine MyISAM zscaumjw_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_customer_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_order_product_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_order_stats: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_product_meta_lookup: Data: 0.11MB + Index: 0.17MB + Engine MyISAM zscaumjw_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfblockediplog: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfblocks7: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfconfig: Data: 0.05MB + Index: 0.01MB + Engine MyISAM zscaumjw_wfcrawlers: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wffilechanges: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wffilemods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfhits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfhoover: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfissues: Data: 0.00MB + Index: 0.01MB + Engine MyISAM zscaumjw_wfknownfilelist: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wflivetraffichuman: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wflocs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wflogins: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB zscaumjw_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB zscaumjw_wfnotifications: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfpendingissues: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfreversecache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfsnipcache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wfstatus: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wftrafficrates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM zscaumjw_wonderplugin_slider: Data: 0.01MB + Index: 0.00MB + Engine MyISAM zscaumjw_woos_search_analytics: Data: 0.09MB + Index: 0.02MB + Engine MyISAM zscaumjw_woos_search_trends: Data: 0.02MB + Index: 0.02MB + Engine InnoDB zscaumjw_wpmailsmtp_emails_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB zscaumjw_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.01MB + Engine MyISAM zscaumjw_wpmelon_advbedit_temp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ### Post Type Counts ### acf-field: 2 acf-field-group: 1 attachment: 3061 custom_css: 2 customize_changeset: 8 ditty_news_ticker: 1 elementor_library: 19 fusion_element: 6 fusion_template: 2 jet-woo-builder: 3 nav_menu_item: 54 oembed_cache: 2 page: 18 post: 3 product: 517 product_variation: 437 revision: 34 shop_order: 5034 slide: 5 slidervilla: 26 tribe_events: 19 tribe_organizer: 6 tribe_venue: 6 yith_wcps_type: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (37) ### Gravity Forms: by Gravity Forms – 2.5.3 Admin Columns Pro - WooCommerce: by AdminColumns.com – 3.5.10 Admin Columns Pro: by AdminColumns.com – 5.5.1 Admin Menu Editor Pro: by Janis Elsts – 2.14.2 Adminimize: by Frank Bültge – 1.11.7 All in One SEO: by All in One SEO Team – 4.1.1.1 Element Pack: by BdThemes – 5.8.0 Blackhole for Bad Bots: by Jeff Starr – 3.1 BBQ Firewall: by Jeff Starr – 20210211 Disable Admin Notices Individually: by Creative Motion – 1.2.6 Disable WooCommerce Bloat: by ospiotr – 2.4.8 Disable Gutenberg: by Jeff Starr – 2.4 Extras for Elementor: by Namogo – 2.2.51 Elementor Pro: by Elementor.com – 3.2.2 Elementor: by Elementor.com – 3.2.3 Gravity Forms User Registration Add-On: by Gravity Forms – 4.7.2 Imsanity: by Exactly WWW – 2.7.1 JetWooBuilder For Elementor: by Crocoblock – 1.8.0 Members: by MemberPress – 3.1.5 PowerPack Pro for Elementor: by Team IdeaBox - PowerPack Elements – 2.3.6 Sucuri Security - Auditing, Malware Scanner and Hardening: by Sucuri Inc. – 1.8.26 The Plus Addons for Elementor Page Builder Lite: by POSIMYTH – 2.0.8 The Plus Addons for Elementor Page Builder: by POSIMYTH – 4.1.11 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.56 Wonder Slider Lite: by Magic Hills Pty Ltd – 12.8 WooCommerce - Minimum/Maximum Quantities: by WPElitePlugins – 2.1.2 WooCommerce Search Engine: by Guaven Labs – 2.2.0 Variation Swatches for WooCommerce - Pro: by Emran Ahmed – 1.1.17 Variation Swatches for WooCommerce: by Emran Ahmed – 1.1.17 WooCommerce Advanced Bulk Edit: by George Iron – 4.6.2.3 WooCommerce Print Invoices/Packing Lists: by SkyVerge – 3.11.1 WooCommerce Protected Categories: by Barn2 Plugins – 2.4.1 WooCommerce Sequential Order Numbers Pro: by SkyVerge – 1.17.0 WooCommerce: by Automattic – 5.2.2 (update to version 5.3.0 is available) WP Mail SMTP: by WPForms – 2.8.0 Smart Image Resize PRO: by Nabil Lemsieh – 1.5.0 YITH WooCommerce Quick View Premium: by YITH – 1.5.3 ### Inactive Plugins (2) ### Limit Login Attempts Reloaded: by Limit Login Attempts Reloaded – 2.22.1 LiteSpeed Cache: by LiteSpeed Technologies – 3.6.4 ### Dropin Plugins (1) ### maintenance.php: maintenance.php ### 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: – ### WC Pages ### Shop base: #19301 - /xm6bfuyjhyjw/ Basket: ? Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block. Checkout: ? Page does not contain the [woocommerce_checkout] shortcode or the woocommerce/checkout block. My account: ? Page does not contain the [woocommerce_my_account] shortcode. Terms and conditions: ? Page not set ### Theme ### Name: xxxx Version: 1.0.1 Author URL: https://xxxx Child Theme: ? Parent Theme Name: Hello Elementor Parent Theme Version: 2.3.1 Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash WooCommerce Support: ? ### Templates ### Overrides: xxxx/woocommerce/myaccount/form-login.php xxxx/woocommerce/myaccount/form-lost-password.php xxxx/woocommerce/myaccount/form-reset-password.php xxxx/woocommerce/myaccount/lost-password-confirmation.php ### Action Scheduler ### Canceled: 1 Oldest: 2021-05-20 03:00:40 +0100 Newest: 2021-05-20 03:00:40 +0100 Complete: 503 Oldest: 2021-05-12 17:35:01 +0100 Newest: 2021-05-27 16:37:02 +0100 Pending: 1 Oldest: 2021-05-27 21:25:07 +0100 Newest: 2021-05-27 21:25:07 +0100 ### Status report information ### Generated at: 2021-05-27 17:40:54 +01:00
Hi @shaolin – thanks for including that system status report.
To clarify, these messages you’re seeing (sent in your first reply) are not errors. Rather, they’re notices letting you know that your site is not using the latest version of WooCommerce Blocks. To note, your site is currently using version 4.7.2.
You can safely ignore the messages, or you can install the latest version of the WooCommerce Blocks plugin, 5.2.0, which you can find here: WooCommerce Blocks.
I hope this helps clarify things and, of course, if you have other questions, feel free to reach back out!
Hi Rahul, but I’m not using ANY woocommerce blocks, or Gutenberg come to that. Both have been deactivated.
I’m trying to cut down on plugins I have around 40 when the 2 inactive ones are switched back on and I’m trying to dump some which isn’t easy as woo needs a lot to provide the functions large stores need.
As I’m not using blocks at all it seems bizarre to have to install another plugin for something not used. Ignoring the server errors warnings wouldn’t be an issue but it’s a pain having to keep deleting the error logs because it makes it harder to look for real errors when it’s full of those messages.
Please look at fixing this in the next update as it shouldn’t be giving warnings if blocks are not being used at all.
Thanks.
Hi @shaolin,
We’ve received a confirmation from the developers that indeed this error notification may be a bit confusing.
This error is essentially related to the Cart and Checkout block and it should not show unless the Cart and Checkout block is used.
Our developers are going to improve this error notification (and you’ll find more details here) by making it clear that this error is related to the Cart and Checkout blocks and it will not show unless WooCommerce Blocks plugin is installed (where Cart and Checkout blocks is part of the plugin).
Cheers.
Hi Mirko
Thanks, that’s good to know! ??
As a temporary fix to prevent junk from being logged, you can change your PHP config to only log fatal errors by setting error_reporting to E_ERROR. Refer to documentation: https://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
If you can not change the PHP configuration on your hosting, you can try adding the following in your wp-config.php
ini_set('error_reporting', E_ERROR );
- The topic ‘I don’t use blocks but get PHP warnings about deactivated payment gateways’ is closed to new replies.