elementor / elementor/elementor

🐞 Form Submissions not being stored if Form Name has over 60 characters.

Open
#24,482 3 comments 0 reactions 0 assignees View on GitHub
mod/e* product/pro type/content-management widget/pro/form widget/pro/form/actions widget/pro/form/submissions
Dominant language
PHP
Stars
7.1k
Forks
1.6k
Avg merge
1d 5h
Merged PRs (30d)
193

Description

### Prerequisites

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

### Description

When using the Form widget with Collect Submissions enabled, if the form name has over 60 characters the submission will fail to get stored without showing any error.

### Steps to reproduce

1) Add a **Form Widget** to any page or post. You can leave "**Collect Submissions**" in "Actions After Submit" as the only action.
2) You can leave the default fields or set any you want.
3) Set the **Form Name** (first option of the form) to something **over 60 characters**. (With 60 characters it will work, but with 61 will already fail.)
4) Save the changes, visit your form on the front-end, and submit it.
5) Check your submissions page in your dashboard. The form won't appear if the **Form Name** had 61 or more characters.

### Isolating the problem

- [X] This bug happens with only Elementor plugin active (and Elementor Pro).
- [X] This bug happens with a Blank WordPress theme active ([Hello theme](https://wordpress.org/themes/hello-elementor/)).
- [X] I can reproduce this bug consistently following the steps above.

### System Info

Click to reveal

````txt


== Server Environment ==
Operating System: Linux
Software: LiteSpeed
MySQL version: MariaDB Server v10.6.15
PHP Version: 7.4.33
PHP Memory Limit: 1024M
PHP Max Input Vars: 30000
PHP Max Post Size: 512M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected

== WordPress Environment ==
Version: 6.4.1
Site URL: https://sandbox.gerardreches.com
Home URL: https://sandbox.gerardreches.com
WP Multisite: No
Max Upload Size: 256 MB
Memory limit: 40M
Max Memory limit: 1024M
Permalink Structure: /index.php/%year%/%monthnum%/%day%/%postname%/
Language: en-US
Timezone: 0
Debug Mode: Inactive

== Theme ==
Name: Hello Elementor
Version: 2.9.0
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/119.0.0.0 Safari/537.36

== Active Plugins ==
Advanced Custom Fields
Version: 6.2.3
Author: WP Engine

Advanced WP Reset PRO
Version: 2.57
Author: Owleads & SigmaPlugin

Elementor
Version: 3.17.3
Author: Elementor.com

Elementor Pro
Version: 3.17.1
Author: Elementor.com

== Elements Usage ==

wp-post : 0
container : 2
gallery : 1
heading : 5
text-editor : 1
wp-page : 2
container : 1
form : 1

== Settings ==

allow_tracking: yes
font_display: swap

== Features ==
Custom Fonts: 0
Custom Icons: 0

== Integrations ==

== Elementor Experiments ==
Optimized DOM Output: Active by default
Improved Asset Loading: Active by default
Improved CSS Loading: Active by default
Inline Font Icons: Inactive by default
Additional Custom Breakpoints: Active by default
admin_menu_rearrangement: Inactive by default
Flexbox Container: Active by default
Upgrade Swiper Library: Active by default
Grid Container: Inactive by default
Default to New Theme Builder: Active by default
Hello Theme Header & Footer: Active by default
Editor Top Bar: Inactive by default
Optimized Gutenberg Loading: Inactive by default
Build with AI: Inactive by default
Landing Pages: Active by default
Nested Elements: Inactive by default
Lazy Load Background Images: Inactive by default
Optimize Image Loading: Inactive by default
Global Style Guide: Active by default
Page Transitions: Active by default
Notes: Active by default
Form Submissions: Active by default
Scroll Snap: Active by default
Menu: Inactive by default
Taxonomy Filter: Inactive by default

== Log ==

JS: showing 1 of 1JS: 2023-10-06 15:11:25 [error X 22][../wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.16.4:3:133293] C.getNamespaceArray is not a function

Log: showing 20 of 252023-10-09 11:42:26 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.16.4',
'to' => '3.16.5',
)]
2023-10-09 11:42:26 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.16.4',
'to' => '3.16.5',
)]
2023-10-09 11:43:35 [info] elementor-pro::elementor_pro_updater Started
2023-10-09 11:43:35 [info] Elementor Pro/Upgrades - _on_each_version Start
2023-10-09 11:43:35 [info] Elementor Pro/Upgrades - _on_each_version Finished
2023-10-09 11:43:35 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.12.3',
'to' => '3.16.2',
)]
2023-10-09 11:43:35 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.12.3',
'to' => '3.16.2',
)]
2023-11-26 06:29:09 [info] elementor-pro::elementor_pro_updater Started
2023-11-26 06:29:09 [info] Elementor Pro/Upgrades - _on_each_version Start
2023-11-26 06:29:09 [info] Elementor Pro/Upgrades - _on_each_version Finished
2023-11-26 06:29:09 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.16.2',
'to' => '3.17.1',
)]
2023-11-26 06:29:09 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.16.2',
'to' => '3.17.1',
)]
2023-11-26 06:29:09 [info] elementor::elementor_updater Started
2023-11-26 06:29:09 [info] Elementor/Upgrades - _on_each_version Start
2023-11-26 06:29:09 [info] Elementor/Upgrades - _on_each_version Finished
2023-11-26 06:29:09 [info] Elementor/Upgrades - _v_3_17_0_site_settings_updates Start
2023-11-26 06:29:09 [info] Elementor/Upgrades - _v_3_17_0_site_settings_updates Finished
2023-11-26 06:29:09 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.16.5',
'to' => '3.17.3',
)]
2023-11-26 06:29:09 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.16.5',
'to' => '3.17.3',
)]
2023-12-04 11:40:45 [error] Save submission failed, db error: WordPress database error: Processing the value for the following field failed: form_name. The supplied value may be too long or contains invalid data.

PHP: showing 1 of 1PHP: 2023-10-09 13:31:38 [notice X 1][../wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-color.php::34] Undefined offset: 1 [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]

== Elementor - Compatibility Tag ==

Elementor Pro: Compatible

== Elementor Pro - Compatibility Tag ==

````

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.