Skip to content

🐞 Bug Report: WooCommerce PHP Notice for Payment gateway being de-activated in Cart and Checkout Blocks when Elementor is being used #20568

@askwpgirl

Description

@askwpgirl

Prerequisites

  • I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
  • The issue still exists against the latest stable version of Elementor.

Description

Editing any Elementor page results in the following PHP Notice to appear for each and every payment method on the site. For example:

Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wc-settings' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets

and

Payment gateway with handle 'wc-payment-method-cheque' has been deactivated in Cart and Checkout blocks because its dependency 'wc-blocks-registry' is not registered. Read the docs about registering assets for payment methods: https://github.com/woocommerce/woocommerce-blocks/blob/060f63c04f0f34f645200b5d4da9212125c49177/docs/third-party-developers/extensibility/checkout-payment-methods/payment-method-integration.md#registering-assets

Other people have been reporting similar issues via WooCommerce forums or the payment gateway forums not realizing it is an Elementor related issues.

I have de-activated all plugins except Elementor free version and WooCommerce. This started to occur after update to WooCommerce 7.x I believe. We updated in October, and it's been since then.

I am not seeing this on all Elementor/WooCommerce sites.

Here is another report:

https://wordpress.org/support/topic/error-in-elementor-3/

Steps to reproduce

  1. Install WooCommerce and Elementor.
  2. Enable payment methods in WooCommerce Settings. For my test, I enabled COD and Check options.
  3. Edit a page in Elementor.
  4. Check PHP error logs. The PHP notices will display there: 2 for each payment method enabled.

I am able to replicate this on new staging site. Here is a Loom video:

https://www.loom.com/share/ad8eeed653d04e24b8b99b0d00da95d6

We are running PHP 7.4.

Isolating the problem

  • This bug happens with only Elementor plugin active (and Elementor Pro).
  • This bug happens with a Blank WordPress theme active (Hello theme).
  • I can reproduce this bug consistently using the steps above.

System Info

== Server Environment ==
Operating System: Linux
Software: nginx/1.18.0
MySQL version: mariadb.org binary distribution v10.3.16
PHP Version: 7.4.28
PHP Memory Limit: 256M
PHP Max Input Vars: 5000
PHP Max Post Size: 500M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 6.1.1
Site URL: https://askwpgirldemo.sitedistrict.com
Home URL: https://askwpgirldemo.sitedistrict.com
WP Multisite: No
Max Upload Size: 500 MB
Memory limit: 768M
Max Memory limit: 768M
Permalink Structure: /%postname%/
Language: en-US
Timezone: Pacific/Honolulu
Admin Email: [email protected]
Debug Mode: Inactive

== Theme ==
Name: Hello Elementor
Version: 2.6.1
Author: Elementor Team
Child Theme: No

== User ==
Role: administrator
WP Profile lang: en_US
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

== Active Plugins ==
Elementor
Version: 3.8.1
Author: Elementor.com

WooCommerce
	Version: 7.1.0
	Author: Automattic

== Must-Use Plugins ==
SiteDistrict Hosting SMTP
Version: 0.1.1
Author: SiteDistrict Team

SiteDistrict Single Sign-on
	Version: 0.1.0
	Author: SiteDistrict Team

== Elements Usage ==

archive : 0
	archive-posts : 1
	heading : 1
	shortcode : 1
	theme-archive-title : 2
header : 0
	image : 1
	nav-menu : 1
page : 2
	button : 3
	heading : 8
	icon : 1
	icon-box : 11
	image : 1
	posts : 1
	text-editor : 8
wp-post : 0
	heading : 1
	text-editor : 2
wp-page : 3
	button : -2
	container : -88
	heading : -39
	icon-box : 8
	image : -47
	image-carousel : 1
	image-gallery : 1
	loop-grid : 1
	spacer : 11
	text-editor : 15
	toggle : 1
single-post : 0
	form : 1
	gallery : 1
	heading : 5
	icon-list : 1
	post-info : 1
	posts : 3
	shortcode : 3
	text-editor : 3
	theme-post-content : 2
	theme-post-excerpt : 2
	theme-post-featured-image : 1
	theme-post-title : 2
loop-item : 0
	button : 3
	container : 2
	image : 1
	post-info : 7
	shortcode : 1
	text-editor : 2
	theme-post-excerpt : 3
	theme-post-featured-image : 3
	theme-post-title : 6
	video : 2
landing-page : 0
	button : 1
	form : 3
	heading : 15
	icon-box : 11
	icon-list : 2
	image : 12
	spacer : 8
	testimonial : 2
	text-editor : 12

== Elementor Experiments ==
Optimized DOM Output: Active
Improved Asset Loading: Active
Improved CSS Loading: Active
Inline Font Icons: Inactive
Accessibility Improvements: Active
Additional Custom Breakpoints: Active
Import Export Website Kit: Active
Hide native WordPress widgets from search results: Active by default
admin_menu_rearrangement: Inactive by default
Flexbox Container: Active
Hello Theme Header & Footer: Active
Landing Pages: Active by default
Color Sampler: Active by default
Favorite Widgets: Active by default
Admin Top Bar: Active by default

== Log ==

Log: showing 20 of 332022-11-01 08:29:37 [info] Elementor/Upgrades - _on_each_version Start
2022-11-01 08:29:37 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.8.0-beta4',
'to' => '3.8.0',
)]
2022-11-01 08:29:37 [info] Elementor/Upgrades - _on_each_version Finished
2022-11-01 08:29:37 [info] Elementor/Upgrades - _v_3_8_0_fix_php8_image_custom_size Start
2022-11-01 08:29:37 [info] Elementor/Upgrades - _v_3_8_0_fix_php8_image_custom_size Finished
2022-11-01 08:29:37 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.8.0-beta4',
'to' => '3.8.0',
)]
2022-11-13 14:01:44 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.8.0',
'to' => '3.8.1',
)]
2022-11-13 14:01:45 [info] elementor::elementor_updater Started
2022-11-13 14:01:45 [info] Elementor/Upgrades - _on_each_version Start
2022-11-13 14:01:45 [info] Elementor/Upgrades - _on_each_version Finished
2022-11-13 14:01:45 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.8.0',
'to' => '3.8.1',
)]
2022-11-14 10:55:35 [info] elementor-pro::elementor_pro_updater Started
2022-11-14 10:55:35 [info] Elementor Pro/Upgrades - _on_each_version Start
2022-11-14 10:55:35 [info] Elementor Pro/Upgrades - _on_each_version Finished
2022-11-14 10:55:35 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.8.0',
'to' => '3.9.0-beta1',
)]
2022-11-19 02:02:14 [info] elementor-pro::elementor_pro_updater Started
2022-11-19 02:02:14 [info] Elementor Pro/Upgrades - _on_each_version Start
2022-11-19 02:02:14 [info] Elementor Pro/Upgrades - _on_each_version Finished
2022-11-19 02:02:14 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.9.0-beta1',
'to' => '3.9.0-beta2',
)]
2022-11-19 02:02:15 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.9.0-beta1',
'to' => '3.9.0-beta2',
)]

PHP: showing 8 of 8PHP: 2022-11-01 08:29:37 [warning X 9][/www/wp-content/plugins/elementor/core/files/manager.php::111] unlink(/www/wp-content/uploads/elementor/css/min): Is a directory [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-01 08:54:02 [notice X 7][/www/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-url.php::34] Undefined offset: 1 [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-01 09:18:31 [notice X 34][/www/wp-content/plugins/elementor/modules/dev-tools/deprecation.php::304] The $control_id argument is deprecated since version 3.5.0! [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-01 09:18:32 [notice X 2][/www/wp-content/plugins/elementor/modules/dev-tools/deprecation.php::304] The $control_id argument is deprecated since version 3.5.0! [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /www/wp-content/plugins/elementor/modules/dev-tools/deprecation.php(304): class type trigger_error()
#2: /www/wp-content/plugins/elementor/includes/managers/controls.php(523): Elementor\Modules\DevTools\Deprecation -> deprecated_argument()
#3: /www/wp-content/plugins/elementor/includes/managers/controls.php(501): Elementor\Controls_Manager -> register()
#4: /www/wp-content/plugins/dynamic-visibility-for-elementor/class/controls.php(48): Elementor\Controls_Manager -> register_control()
',
)]
PHP: 2022-11-01 09:24:59 [notice X 3][/www/wp-content/plugins/elementor/includes/conditions.php::90] Trying to access array offset on value of type null [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-01 09:30:40 [notice X 1][/www/wp-content/plugins/elementor/core/dynamic-tags/manager.php::73] Array to string conversion [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-14 11:01:57 [warning X 14][/www/wp-content/plugins/elementor/core/files/file-types/svg.php::191] SimpleXMLElement::__construct(): ^ [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2022-11-16 08:29:36 [error X 2][/www/wp-content/plugins/elementor/core/wp-api.php::26] Uncaught Error: Call to undefined function Elementor\Core\get_plugins() in /www/wp-content/plugins/elementor/core/wp-api.php:26
Stack trace:
#0 /www/wp-content/plugins/elementor/modules/compatibility-tag/base-module.php(96): Elementor\Core\Wp_Api->get_plugins()
#1 /www/wp-content/plugins/elementor/modules/compatibility-tag/base-module.php(58): Elementor\Modules\CompatibilityTag\Base_Module->get_plugins_with_header()
#2 /www/wp-content/plugins/elementor/modules/compatibility-tag/module.php(57): Elementor\Modules\CompatibilityTag\Base_Module->get_plugins_to_check()
#3 /www/wp-content/plugins/elementor/modules/compatibility-tag/base-module.php(148): Elementor\Modules\CompatibilityTag\Module->get_plugins_to_check()
#4 /www/wp-includes/class-wp-hook.php(307): Elementor\Modules\CompatibilityTag\Base_Module->Elementor\Modules\CompatibilityTag{closure}()
#5 /www/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#6 /www/wp-includes/plugin.php(476): WP_Hook->do_action()
#7 /www/wp-content/plugins/elementor/ [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

JS: showing 1 of 1JS: 2022-11-01 18:53:32 [error X 1][https://askwpgirldemo.sitedistrict.com/wp-admin/post.php?post=254952&action=elementor:3:22112] Cannot read properties of null (reading 'getBoundingClientRect')

== Elementor - Compatibility Tag ==

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates a bug with one or multiple components.compatibility/3rd-partyIndicates a compatibility problem with a 3rd-party plugin or theme.integration/woocommerceReferences any component related to Elementor Pro’s WooCommerce Builder.mod*[Temp.] For internal use only.mod/b*[Temp.] For internal use only.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions