Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues when making changes to text or other elements within Elementor Pro, especially when the 'Nested Elements' experimental feature is enabled and a form is placed as a sub-element of a tab, this is due to a known bug.
Solution:
We recommend either turning off the 'Nested Elements' feature in the Elementor settings or not placing the Form as a child of the Tab element. If you prefer to adjust the code, follow these steps:
1. Edit the file

wp-content\plugins\elementor-pro\modules\forms\widgets\form.php

2. Locate the line:

echo Utils::get_current_post_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"/>

3. Replace it with:

if (get_the_ID()) {<br />    echo Utils::get_current_post_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"/><br /><?php } ?>

If this solution doesn't seem relevant to your issue, please open a new support ticket with us.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 9 replies, has 2 voices.

Last updated by Dražen 1 year, 3 months ago.

Assisted by: Dražen.

Author Posts
January 19, 2024 at 8:52 am #15203401

christophS-64

Hi, i mean not the titel i mean please test it whne you make a change in the text or so

January 19, 2024 at 8:54 am #15203408

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

can you please check if the same issue happens on staging site, and please share admin and FTP access to staging site so I can check further.

Thanks,
Drazen

January 19, 2024 at 9:00 am #15203483

christophS-64

Hi, stagig and live are the same FTP Data, i have chacked itrs the same problem

January 19, 2024 at 9:38 am #15203771

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks, since I see you are using the latest PHP which also WP is not yet entirely compatible with, can you please try to lower it to 8.0?

- https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/

Let me know and I will re-check on staging.

Thanks,
Drazen

January 19, 2024 at 9:44 am #15203786

christophS-64

Hi, Problem is that our customer (ist the Austrian Students Website from the Government)They have this as a requirement in the request

January 19, 2024 at 9:58 am #15203877

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

okay, I understand.

Is then okay a take a copy of website and test it out further on our side and test server?

Thanks,
Drazen

January 19, 2024 at 10:00 am #15203879

christophS-64

Yes thats great thank you

January 19, 2024 at 12:19 pm #15204818

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

okay, I found the problem, it seems it is a known bug and our team is waiting for Elementor authors to apply the fix in future versions.

In the meantime you can use the next workaround(code change) and it works fine, I tested and the page is saved.

The problem happens only with the Experiment feature enabled on Elementor Pro. If you enable "Nested Elements" in Elementor settings and then add the form as sub-element of tab the issue will happen.

We need to change the code in the Elementor file or turn off "Nested Elements" in Experimental features. or Do not place the Form as a child of the Tab element.

To adjust the Elementor code.

Edit the file wp-content\plugins\elementor-pro\modules\forms\widgets\form.php

Replace

echo Utils::get_current_post_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"/>

with this one

if (get_the_ID()) {
    echo Utils::get_current_post_id(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>"/>
<?php } ?>

[/php]

Regards,
Drazen

January 19, 2024 at 2:45 pm #15205353

christophS-64

Hi, thank you very much, this is a great Solution. We will Talk to our customer, they will give is feedback next week. Best regards Christoph

January 19, 2024 at 3:38 pm #15205683

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello Christoph,

great, let us know if anything else is needed.

Regards,
Drazen