Saltar al contenido Saltar a la barra lateral

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

Problem:
The client is experiencing a critical error when trying to activate the WPML plugin on their WordPress site. The error message indicates a missing 'DOMDocument' class, which is essential for WPML's operation. This issue persists even after updating PHP, the theme, and trying a default WordPress theme.
Solution:
We recommend installing the PHP XML extension, which includes the 'DOMDocument' class required by WPML. This extension is often missing in standard PHP installations, especially on custom or minimal server setups. To install this extension, you can run the following command on your server if you have SSH access:

sudo apt-get install php-xml

or for CentOS systems:

sudo yum install php-xml

After installing the PHP XML extension, try activating the WPML plugin again. If the problem persists, it might be due to other incompatibilities. In such cases, 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 this solution does not resolve your issue or seems irrelevant, please open a new support ticket at WPML support forum for further assistance.

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 voices.

Última actualización por lineH hace 4 meses, 1 semana.

Asistido por: Noman.

Autor Publicaciones
mayo 26, 2025 a las 9:17 am #17071921

lineH

Antecedentes del problema:
I am trying to activate the WPML plugin on my site, enlace oculto. We have purchased the license, registered the site, updated PHP to version 8.1, and updated our theme Flatsome. Despite these steps, we encounter a critical error when activating WPML. We also tried using a default theme like 'Twenty twenty-five', but faced a critical error due to incompatibilities with other plugins like Jetpack or WPML SEO.

Recorded screen: enlace oculto

Síntomas:
I am getting a critical error when activating WPML. The error message is: PHP Fatal error: Uncaught Error: Class "DOMDocument" not found in /home/R/rolfsenjuellcom/www/wp-content/plugins/sitepress-multilingual-cms/classes/xml-config/class-wpml-xml-config-validate.php:67.

Preguntas:
Why am I getting a critical error when activating WPML?
How can I resolve the incompatibility issues with other plugins like Jetpack or WPML SEO?

mayo 26, 2025 a las 9:37 am #17072094

Noman
Partidario de WPML desde 06/2016

Idiomas: Inglés (English )

Zona horaria: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Thanks for sharing the video and error details. We have another client who had a similar issue and was able to fix it by following the below thread: https://wpml.org/forums/topic/fatal-error-when-trying-to-access-installed-plugin/#post-12615561

Please let me know if this resolves your issue or if you need further assistance with this issue.

Thank you

mayo 29, 2025 a las 8:12 am #17086794

lineH

That was the problem. It's solved. Thanks!