Saltar al contenido Saltar a la barra lateral

Este hilo está resuelto. Aquí tienes una descripción del problema y la solución.

Problem:
You are experiencing a critical issue with WPML and Elementor that prevents you from saving/publishing pages in your secondary language (Spanish), resulting in a 500 error. This is due to a loop of warnings from Elementor integration causing a fatal memory error, as WPML seems to be looping through Elementor's translatable nodes endlessly on save, exhausting the 768MB memory limit.
Solution:
We recommend following these steps to identify and potentially resolve the issue:
1. Create a complete backup of your site or set up a staging site with a copy of your production site. You can use the WP Staging plugin for this purpose.
2. Clear any existing cache.
3. Update any outdated plugins or themes.
4. Edit the page in English and check for any elements not directly from Elementor, such as those from third-party plugins or the theme. If such an element exists, remove it or create a new page without this element. Consider that if this occurs on all pages, it might be an element from a template like the header or footer.
5. Save the changes and re-translate the page.
6. Check if the problem disappears and monitor if it reoccurs when adding the element back.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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 at WPML support forum.

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Etiquetado: 

Este tema contiene 1 respuesta, tiene 0 voces.

Última actualización por Carlos Rojas hace 2 semanas, 2 días.

Asistido por: Carlos Rojas.

Autor Publicaciones
Abril 6, 2026 a las 15:05 #17951878

consulting-informatico-de-cant

Hi,

I'm experiencing a critical issue with WPML and Elementor that prevents me from saving/publishing pages in my secondary language (Spanish). The primary language (English) works fine.

Environment:
- WordPress with Elementor page builder
- WPML Multilingual CMS 4.9.2
- WPML String Translation 3.5.1
- WPML SEO 2.2.5
- WPML Multilingual for CF7 1.3.3
- Hosting: CDMON (PHP 8.3)
- PHP Memory limit: 768MB

The issue:
Every time I try to publish/update a page in Spanish using Elementor, I get a 500 error. The English version of the same page saves without any problem.

From the PHP error log, I can see two things happening:

1. A loop of warnings from your Elementor integration:
PHP Warning: Undefined array key "fields" in .../sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/class-wpml-elementor-translatable-nodes.php on line 38
PHP Warning: foreach() argument must be of type array|object, null given in ...class-wpml-elementor-translatable-nodes.php on line 38

2. Which then causes a fatal memory error:
PHP Fatal error: Allowed memory size of 805306368 bytes exhausted (tried to allocate 1249280 bytes) in .../wp-includes/class-wpdb.php on line 2328

It seems like WPML is looping through Elementor's translatable nodes endlessly on save, exhausting the 768MB memory limit.

Note: Duplicating the Spanish page temporarily fixes the issue, but the error comes back after a few saves.

Could you please advise on a fix or workaround for this issue?

Thank you.

Abril 7, 2026 a las 07:50 #17952858

Carlos Rojas
Partidario de WPML desde 03/2017

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/Madrid (GMT+02:00)

Hola,
Muchas gracias por volver a contactarnos

Este error parece causado por un elemento de Elementor que no tiene una estructura correcta o que no ha sido registrado correctamente en WPML.

Te pido que realices los siguientes pasos para identificar la causa del problema:
- Crea una copia de seguridad del sitio completo o crea un sitio staging con una copia del sitio en producción (puedes utilizar el plugin WP Staging de forma gratuita y sencilla)
- Borra cualquier memoria caché que pueda existir
- Actualiza cualquier plugin o tema desactualizado
- Edita la página en inglés y comprueba si hay algún elemento que no venga directamente de Elementor, es decir, que provenga de un plugin de terceros o del tema. Si existe dicho elemento, elimínalo o crea una nueva página sin este elemento. Ten en cuenta que si sucede en todas las páginas, puede ser un elemento de una plantilla como el header o el footer.
- Guarda los cambios y vuelve a traducir la página
- Si el problema desapareció, entonces comprueba si vuelve a suceder al agregar este elemento de vuelta

Quedo a la espera de tu respuesta.
Saludos,
Carlos