[Resuelto] El plugin no ha podido activarse porque ha provocado un error fatal
Este hilo está resuelto. Aquí tienes una descripción del problema y la solución.
Problema: El cliente no puede activar el plugin WPML debido a un error fatal que indica que falta una clase de WPML en el plugin. Solución: Si estás experimentando este problema, te recomendamos que sigas estos pasos: 1. Ve a "Plugins > Plugins instalados". 2. Desactiva y elimina el plugin WPML de tu sitio. 3. Descarga la última versión del plugin WPML desde tu cuenta de WPML en https://wpml.org/es/account/downloads/. 4. Instala y activa el plugin en tu sitio.
Esperamos que esto resuelva el problema que estás enfrentando. Sin embargo, si la solución no es relevante debido a que está desactualizada o no se aplica a tu caso, te sugerimos abrir un nuevo ticket de soporte. También recomendamos encarecidamente revisar los problemas conocidos en https://wpml.org/known-issues/, verificar la versión de la solución permanente y confirmar que has instalado las últimas versiones de temas y plugins. Si necesitas asistencia adicional, no dudes en contactarnos en el foro de soporte de WPML.
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.
He instalado el plugin WPML en la web y lo he registrado pero no permite activarlo. En cuanto lo intento activar me aparece el error "El plugin no ha podido activarse porque ha provocado un error fatal."
He desactivado todos los otros plugins, uno a uno, pero aún teniéndolos todos desactivados, sigue apareciendo el mismo error. Lo mismo sucede con los temas: he probado con diferentes temas pero todos dan el mismo error. Todos los plugins y temas, así como el propio WordPress están actualizados y también borré la caché.
El archivo debug.log contiene la siguiente información:
[22-Feb-2024 12:48:01 UTC] PHP Warning: include(/var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php): failed to open stream: No such file or directory in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/plugins/otgs-installer-plugin/vendor/composer/ClassLoader.php on line 571
[22-Feb-2024 12:48:01 UTC] PHP Warning: include(): Failed opening '/var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/plugins/sitepress-multilingual-cms/vendor/composer/../wpml-shared/wpml-lib-dependencies/src/dependencies/class-wpml-dependencies.php' for inclusion (include_path='.:/opt/plesk/php/7.4/share/pear') in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/plugins/otgs-installer-plugin/vendor/composer/ClassLoader.php on line 571
[22-Feb-2024 12:48:01 UTC] PHP Fatal error: Uncaught Error: Class 'WPML_Dependencies' not found in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.php:75
Stack trace:
#0 /var/www/vhosts/rcgep.com/new.rcgep.com/wp-admin/includes/plugin.php(2318): include_once()
#1 /var/www/vhosts/rcgep.com/new.rcgep.com/wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
#2 /var/www/vhosts/rcgep.com/new.rcgep.com/wp-admin/plugins.php(58): activate_plugin()
#3 {main}
thrown in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/plugins/sitepress-multilingual-cms/sitepress.php on line 75
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:30:49 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: font-family in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 112
[22-Feb-2024 13:43:09 UTC] PHP Notice: Undefined index: variant in /var/www/vhosts/rcgep.com/new.rcgep.com/wp-content/themes/grulf/includes/actions.php on line 123
Necesito saber qué debo hacer para poder activar el plugin y empezar a traducir la web.
To reduce the waiting time, I took this ticket from the Spanish queue and responded in English. Please let me know if you're okay with it. If you want to continue the conversation in Spanish, please feel free to let me know so that I can forward this ticket to one of my Spanish-speaking colleagues to assist you further.
I understand the issue you're having. Based on the error log you provided, it appears that a certain WPML class is missing within the plugin, which mainly causing the issue. This issue often arises when the WPML plugin has not been installed correctly.
Please do the following and hopefully, it will help to solve the issue.
- Please go to "Plugins > Installed plugins"
- Deactivate and Delete the WPML plugin from your site.
- Once done, download the latest version of the WPML plugin from your WPML account(https://wpml.org/es/account/downloads/)
- Install and activate the Plugin on your site
I hope the issue you're having will be resolved after reinstalling the WPML plugin. But, if you need further assistance, feel free to let me know. I will be happy to help.