Skip Navigation

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

Problem:
The client is unable to edit their website using WordPress and Elementor Pro due to an error message related to the WPML Sitepress Multilingual CMS vendor code. The error message indicates that headers cannot be modified after they are sent. The issue recurs after an unknown number of page edits, even after deleting and re-adding a user.
Solution:
We investigated the issue and found that it persists even when the WPML plugin is deactivated, suggesting it is not directly related to WPML. The problem was identified to occur when only the Yoast SEO plugin is active. Updating the Yoast SEO plugin resolved the issue, as demonstrated in a video we shared with the client. If you're experiencing this issue, we recommend trying the following steps:
1. Deactivate the WPML plugin to confirm if the issue persists.
2. If the problem continues, check if it occurs with only the Yoast SEO plugin active.
3. Update the Yoast SEO plugin to the latest version.
If these steps do not resolve the issue or if it appears unrelated to the plugins mentioned, it might be due to other factors. In such cases, the solution provided here might be outdated or not applicable to your specific situation. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket.

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.

This topic contains 7 replies, has 0 voices.

Last updated by julieJ-6 1 week ago.

Assisted by: Dražen.

Author Posts
June 17, 2025 at 8:50 am #17141415

julieJ-6

Background of the issue:
I am trying to edit my website using WordPress and Elementor Pro. However, I am encountering an error message related to the vendor code from WPML sitepress multilingual CMS, which prevents me from editing any pages. The issue can be seen at the following link: hidden link. I have a previous ticket that was closed, with a bug, which is still occurring. Previous ticket: https://wpml.org/forums/topic/warning-message-unable-to-edit-pages-because-of-bug/. I have already found that if I disable the plugins I can edit in safemode. Deleting and adding a user removes the issue. But it reoccurs after an unknown amount of page edits, and then I cannot edit again. The issue will not be visible on a new user before it has gone through an unknown amount of page edits.

Symptoms:
I expected to access editing in Elementor. Instead, I got: Warning: Cannot modify header information - headers already sent by (output started at /var/www/inextia.dk/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/UserInterface/Web/Infrastructure/WordPress/CompositionRoot/Config/ExistingPage/PostEditPage.php:23) in /var/www/inextia.dk/public_html/wp-includes/functions.php on line 7168.

Questions:
How can I resolve the error message related to the vendor code from WPML sitepress multilingual CMS?
Why does the issue reoccur after an unknown amount of page edits?

June 17, 2025 at 9:10 am #17141447

Dražen
Supporter

Languages: English (English )

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

Hello,

once staging site is ready please share access and steps to check the issue, so I can further debug the issue.

Regards,
Drazen

June 17, 2025 at 10:44 am #17141928

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks, I am checking but I do not see the issue. I am editing next post with Elementor and it opens and works fine:

- hidden link

Please check and let me know.

Regards,
Drazen

June 17, 2025 at 11:10 am #17142010

julieJ-6

Can I get you a login for another issue where the issue is currently on. As the login i provided does not currently have the issue

June 17, 2025 at 11:15 am #17142037

Dražen
Supporter

Languages: English (English )

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

Hello,

I am not sure I understand, if you wish to provide another user credentials, sure feel free to share them.

If you have another issue, then we need to open new ticket and check it there.

Regards,
Drazen

June 17, 2025 at 11:41 am #17142112

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks, I checked further and issue happens even when WPML is not active, so it is not an WPML related issue.

I checked further and it happens when only Yoast SEO is active, I update the plugin and seems to work fine now.

Video: hidden link

It should work fine now, as you can see in video, if you still have problems I would advise contacting Yoast SEO support and reporting this.

Regards,
Drazen

June 17, 2025 at 12:35 pm #17142387

julieJ-6

Updating the two plugins kind of worked. Although the error message is still visible on all pages. And i still cannot access pages 70% of the time

I updated them on the live site, but if you go onto the login you can see the error message is still there

I will contact Yoast SEO if the issue is on their end. From the error message it looks like it is from WPML if you follow the string. Am I reading it wrong?

Warning: Cannot modify header information - headers already sent by (output started at /var/www/inextia.dk/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wpml/src/UserInterface/Web/Infrastructure/WordPress/CompositionRoot/Config/ExistingPage/PostListingPage.php:23) in /var/www/inextia.dk/public_html/wp-includes/functions.php on line 7168

As it says "sitepress-multilingual-cms/vendor/wpml/wpml/" and anything on the vendor side i cannot access

June 17, 2025 at 12:48 pm #17142477

Dražen
Supporter

Languages: English (English )

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

Hello,

that is warning message and has nothing to do with issue your experience.

Warning is just a warning notice not an error message, it happens with PHP8+ version, and we will fix it in future versions, so warning does not happen, it does not cause any issue currently.

You can see from video I shared that issue happens even when WPML plugins disabled, you can try the same and confirm that way if related to WPML plugins or not.

If issue is happening when WPML is disabled it is not an WPML issue.

Hope this helps and clears thing up, let me know if any further doubts.

Regards,
Drazen

June 17, 2025 at 2:10 pm #17142824

julieJ-6

Okay thank you very much Dražen