elementor / elementor

The most advanced frontend drag & drop page builder. Create high-end, pixel perfect websites at record speeds. Any theme, any page, any design.
https://elementor.com/
GNU General Public License v3.0
6.58k stars 1.42k forks source link

🧩 🐞 GravityForms doesn't work inside Footer templates (=< 3.15.0-dev2) #23051

Open mateitudor opened 1 year ago

mateitudor commented 1 year ago

Prerequisites

Description

If you add a GravityForms shortcode inside a footer template it fails to send. Console log: ReferenceError: Can’t find variable: gform

Just like issue #21977, there seem to be issues in certain ways Elementor loads things, like popups, etc.

Steps to reproduce

1) Create a Gravity Forms form 2) Create a footer using the theme builder 3) Use shortcode (with or without ajax) 4) View in the front-end

Isolating the problem

System Info

System Info ````txt == Server Environment == Operating System: Linux Software: LiteSpeed MySQL version: MySQL Community Server - GPL v8.0.33 PHP Version: 8.1.18 PHP Memory Limit: 1G PHP Max Input Vars: 15000 PHP Max Post Size: 1G GD Installed: Yes ZIP Installed: Yes Write Permissions: All right Elementor Library: Connected == WordPress Environment == Version: 6.2.2 Site URL: https://staging.mateitudor.com/washlinks Home URL: https://staging.mateitudor.com/washlinks WP Multisite: No Max Upload Size: 1 GB Memory limit: 40M Max Memory limit: 1G Permalink Structure: /%postname%/ Language: en-US Timezone: America/Toronto Admin Email: [REDACTED] Debug Mode: Inactive == Theme == Name: Washlinks Version: 0.0.5 Author: Matei Tudor Child Theme: Yes Parent Theme Name: Hello Elementor Parent Theme Version: 2.8.1 Parent Theme Author: Elementor Team == User == Role: administrator WP Profile lang: en_US User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15 == Active Plugins == Advanced Custom Fields PRO Version: 6.1.7 Author: WP Engine All-in-One WP Migration Version: 7.76 Author: ServMask All-in-One WP Migration Unlimited Extension Version: 2.52 Author: ServMask Custom Post Type Permalinks Version: 3.4.5 Author: Toro_Unit Elementor Version: 3.15.0-dev2 Author: Elementor.com Elementor Beta (Developer Edition) Version: 1.1.1 Author: Elementor.com Elementor Pro Version: 3.14.1 Author: Elementor.com FakerPress Version: 0.6.1 Author: Gustavo Bordoni GP Multi-page Navigation Version: 1.2.2 Author: Gravity Wiz GP Page Transitions Version: 1.0.18 Author: Gravity Wiz GP Populate Anything Version: 2.0.7 Author: Gravity Wiz Gravity Forms Version: 2.7.10 Author: Gravity Forms Gravity Forms Auto Formatter Version: 2.7.1 Author: Plugin Owl Gravity Forms Mailchimp Add-On Version: 5.2.0 Author: Gravity Forms Gravity Perks Version: 2.3.2 Author: Gravity Wiz LiteSpeed Cache Version: 5.5 Author: LiteSpeed Technologies ManageWP - Worker Version: 4.9.17 Author: GoDaddy Nested Pages Version: 3.2.4 Author: Kyle Phillips Post Type Switcher Version: 3.2.1 Author: Triple J Software, Inc. Rank Math SEO Version: 1.0.119 Author: Rank Math Rank Math SEO PRO Version: 3.0.32.1 Author: Rank Math WordPress Importer Version: 0.8.1 Author: wordpressdotorg WP Mail SMTP Version: 3.8.0 Author: WP Mail SMTP == Must-Use Plugins == ManageWP - Worker Loader Version: 1.0.0 Author: GoDaddy == Features == Custom Fonts: 0 Custom Icons: 0 == Integrations == == Elementor Experiments == Optimized DOM Output: Active Improved Asset Loading: Active Improved CSS Loading: Active Inline Font Icons: Active Additional Custom Breakpoints: Inactive admin_menu_rearrangement: Inactive by default Flexbox Container: Active Upgrade Swiper Library: Active Grid Container: Active Default to New Theme Builder: Inactive Hello Theme Header & Footer: Active by default Editor Top Bar: Active Landing Pages: Inactive Nested Elements: Active Lazy Load Background Images: Active Global Style Guide: Active by default Page Transitions: Inactive Notes: Inactive Loop: Active Form Submissions: Active Scroll Snap: Active Menu: Active == Log == Log: showing 20 of 332023-06-21 09:00:22 [info] elementor-pro::elementor_pro_updater Started 2023-06-21 09:00:22 [info] Elementor Pro/Upgrades - _on_each_version Start 2023-06-21 09:00:22 [info] Elementor Pro/Upgrades - _on_each_version Finished 2023-06-21 09:00:22 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.13.2', 'to' => '3.14.0', )] 2023-06-21 09:00:22 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.13.2', 'to' => '3.14.0', )] 2023-06-21 09:00:23 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.13.2', 'to' => '3.14.0', )] 2023-06-26 15:03:18 [info] elementor::elementor_updater Started 2023-06-26 15:03:18 [info] Elementor/Upgrades - _on_each_version Start 2023-06-26 15:03:18 [info] Elementor/Upgrades - _on_each_version Finished 2023-06-26 15:03:18 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.14.0-dev2', 'to' => '3.14.0-dev5', )] 2023-06-27 04:59:49 [info] elementor-pro::elementor_pro_updater Started 2023-06-27 04:59:49 [info] Elementor Pro/Upgrades - _on_each_version Start 2023-06-27 04:59:49 [info] Elementor Pro/Upgrades - _on_each_version Finished 2023-06-27 04:59:49 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.14.0', 'to' => '3.14.1', )] 2023-06-27 04:59:50 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor Pro', 'from' => '3.14.0', 'to' => '3.14.1', )] 2023-07-10 05:35:07 [info] elementor::elementor_updater Started 2023-07-10 05:35:07 [info] Elementor/Upgrades - _on_each_version Start 2023-07-10 05:35:07 [info] Elementor/Upgrades - _on_each_version Finished 2023-07-10 05:35:07 [info] Elementor data updater process has been completed. [array ( 'plugin' => 'Elementor', 'from' => '3.14.0-dev5', 'to' => '3.15.0-dev2', )] 2023-07-10 05:35:08 [info] Elementor data updater process has been queued. [array ( 'plugin' => 'Elementor', 'from' => '3.14.0-dev5', 'to' => '3.15.0-dev2', )] JS: showing 6 of 6JS: 2023-05-24 15:16:51 [error X 1][https://washlinks.local/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.13.3:3:794942] undefined is not an object (evaluating 'T.originalEvent.key.toLowerCase') JS: 2023-06-27 11:15:01 [error X 1][https://staging.mateitudor.com/washlinks/wp-content/plugins/elementor/assets/js/web-cli.min.js?ver=3.14.0-dev5:3:107472] Routes: `panel/elements/rank-math` not found. JS: 2023-06-27 11:16:14 [error X 1][https://staging.mateitudor.com/washlinks/wp-content/plugins/elementor/assets/js/frontend.min.js?ver=3.14.0-dev5:2:31102] can't access property "model", elementor.settings.page is undefined JS: 2023-07-10 10:06:46 [error X 7][https://washlinks.local/wp-admin/load-scripts.php?c=0&loadchunk_0=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.2.2:2:31830] undefined is not an object (evaluating 'l[0].value') JS: 2023-07-10 10:48:17 [error X 1][https://washlinks.local/wp-content/plugins/elementor/assets/js/7fada1a61d72da6d46ab.bundle.min.js:2:7779] null is not an object (evaluating 'elementor.documents.currentDocument.id') JS: 2023-07-10 20:01:46 [error X 1][https://washlinks.local/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.15.0-dev2:3:689815] this.model.isValidChild is not a function. (In 'this.model.isValidChild(C)', 'this.model.isValidChild' is undefined) PHP: showing 3 of 3PHP: 2023-05-24 17:10:01 [warning X 3][/Users/mateitudor/Studio/Code/Sites/washlinks/app/public/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php::171] Undefined array key "editor_post_id" [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-05-24 18:53:34 [warning X 4][../wp-content/plugins/elementor/app/modules/import-export/module.php::717] Attempt to read property "label" on null [array ( 'trace' => ' #0: Elementor\Core\Logger\Manager -> shutdown() ', )] PHP: 2023-05-26 15:51:03 [warning X 6][../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array ( 'trace' => ' #0: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(150): Elementor\Core\Logger\Manager -> rest_error_handler() #1: ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_template_json_item() #2: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map() #3: ../wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(59): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_templates_json() #4: ../wp-content/plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items() ', )] == Elementor - Compatibility Tag == Elementor Pro: Incompatible == Elementor Pro - Compatibility Tag == ````
nicholaszein commented 1 year ago

Hello @mateitudor!

Thank you for submitting your issue! 🙏

Please allow us some time to investigate it, and get back to you with our findings. 🧐

Best regards

nicholaszein commented 1 year ago

Also,

⛔ 🧩 Please note that while we do welcome bug reports, we can't provide support for 3rd-party plugins.

Elementor currently does not have any integration with Gravity Forms.

If your issue is specifically happening only when you're using a feature from a 3rd-party software, or only when the 3rd-party software is active, you'll need to contact the support for that specific software or its developers.

However, I am going to analyze your issue and check on a clean and stable installation. Please stand by while I troubleshoot your issue. It may take a while.

⚠️ Elementor Developer Edition detected!

We noticed that you're using the Elementor Beta (Developer Edition) plugin. This edition is a playground for developers to test their plugins and themes with the most recent features of Elementor, and it's not quite intended for live websites.

Due to the experimental nature of this edition, we're unable to provide support for it. But don't worry! Our stable versions are full of great features that are ready for prime time on your website.

Please, switch back to a stable version if you're working on a production site.

Regards

erobertsme commented 1 year ago

I prefer to use the "Form" widget under the WordPress section seen below. I am not sure this will solve your issue, however. image

mateitudor commented 1 year ago

I prefer to use the "Form" widget under the WordPress section seen below. I am not sure this will solve your issue, however. image

Sorry but this post is not about Elementor widgets. It's a bug in how they load other widgets.