Saltar navegación

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

Problema:
Si estás intentando traducir un producto en WooCommerce y recibes un error fatal del tipo E_ERROR en la línea 497 de

/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php

, es posible que se deba a que no has completado la configuración de WooCommerce Multilingual.
Solución:
Para resolver este problema, sigue estos pasos:
1. Desactiva y elimina el plugin WPML de tu sitio.
2. Limpia la caché de tu sitio y del servidor (si hay algún mecanismo de caché activado en el servidor).
3. Instala y activa la última versión del plugin WPML en tu sitio.
4. Asegúrate de que tu perfil tenga nombre y apellido añadidos en "Usuarios > Perfil".
5. Intenta traducir el producto nuevamente.
Si el problema persiste, consulta la siguiente errata para obtener más información: https://wpml.org/errata/woocommerce-multilingual-fatal-error-uncaught-error-call-to-a-member-function-get_source_language_code-on-bool/
Si esta solución no parece relevante, por favor abre un nuevo ticket de soporte en nuestro foro: https://wpml.org/es/forums/forum/soporte-en-espanol/

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 2 respuestas, tiene 2 voces.

Última actualización por javierR-54 hace 1 año, 2 meses.

Asistido por: Prosenjit Barman.

Autor Entradas
diciembre 14, 2023 en 3:32 pm #15065989

javierR-54

Cuéntenos qué está intentando hacer.
Intentando traducir un producto de woocommerce me ha venido este mensaje de error:
Detalles del error
==================
Se ha producido un error del tipo E_ERROR en la línea 497 del archivo /home/customer/www/encyclobjects.com/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php. Mensaje de error: Uncaught Error: Call to a member function get_source_language_code() on bool in /home/customer/www/encyclobjects.com/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:497
Stack trace:
#0 /home/customer/www/encyclobjects.com/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(153): wpml_tm_create_ATE_job_creation_model(489, true)
#1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure}(489, 0)
#2 /home/customer/www/encyclobjects.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map(Object(Closure), Array, Array)
#3 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#4 /home/customer/www/encyclobjects.com/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#5 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#6 /home/customer/

¿Hay alguna documentación que está siguiendo?
la habitual

¿Hay algún ejemplo similar que podamos ver?

¿Cuál es el enlace a su sitio?
enlace oculto

Mensaje de Wordpress error.jpg
diciembre 18, 2023 en 9:15 am #15081425

Prosenjit Barman
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.

To reduce the waiting time, I took this ticket and responded in English. If you prefer to continue the conversation in Spanish, please let me know in the next response. I will forward this ticket to one of my Spanish-speaking colleagues.

I've checked the Error log and understood the issue. We had a similar issue in the past that was happening due to not completing the WooCommerce Multilingual setup. Please check the Errata below for more information.

- https://wpml.org/errata/woocommerce-multilingual-fatal-error-uncaught-error-call-to-a-member-function-get_source_language_code-on-bool/

Since the issue persists even after using the latest version of WooCommerce Multilingual, please try the following and check if that helps to solve the issue.

- Please deactivate and delete the WPML plugin from your site.
- Clear the cache from your site and server(if any caching mechanism is activated on the server)
- Install and activate the latest version of WPML plugin on your site.
- Additionally, ensure that First Name and Last Name is added for your profile by going to "Users > Profile"
- Try to Translate the product again.

Please let me know if that helps to solve the issue or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

diciembre 18, 2023 en 3:17 pm #15085507

javierR-54

Dear Prosenjit:
Thank you very much for your kind answer.
While receiving your reply, I cleared the server and Speed Optimizer plugin caches while increasing the PHP memory in wp.config.php. I managed to translate everything without problems.
If this error appears again, I will proceed as you indicated.
Without further ado, receive cordial greetings.

diciembre 18, 2023 en 3:18 pm #15085517

javierR-54

Thank you very much for the support.