Ir al contenido Ir a la barra lateral

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

Problema:
Estás intentando traducir tu página al inglés y al instalar el plugin "WPML String Translation" recibes un error crítico. El error indicado en el debug.log es un PHP Fatal error debido a un tipo incorrecto de argumento en la función WP_Translation_Controller::translate().
Solución:
Nosotros hemos verificado que el plugin "WPML String Translation" ya estaba activo en tu sitio y que tanto la página de inicio predeterminada como su versión en inglés cargaban correctamente sin errores fatales. Después de realizar una pequeña modificación y actualizar la traducción, no se presentaron errores fatales. Te recomendamos que borres las cachés de tu sitio y navegador y lo intentes de nuevo. Si el problema persiste, por favor, comparte el enlace a la página exacta donde el error es visible junto con los pasos para replicar el problema para que podamos investigar más a fondo.

Si esta solución no resuelve tu problema, puede que ya no sea relevante debido a actualizaciones o porque no se aplica a tu caso. Te recomendamos revisar los problemas conocidos y verificar que tienes las últimas versiones de los temas y plugins instalados. Si necesitas más ayuda, no dudes en abrir un nuevo ticket de soporte en nuestro foro de soporte.

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

Última actualización por Prosenjit Barman hace 1 año, 1 mes.

Asistido por: Prosenjit Barman.

Autor Publicaciones
mayo 15, 2024 a las 8:43 pm #15632362

juanT-15

Estoy intentando: traducir la pagina al idioma inglés y al instalar el plugin "wpml string translation" recibo un error crítico en la web. En el debug.log los errores dicen PHP Fatal error: Uncaught TypeError: WP_Translation_Controller::translate(): Argument #1 ($text) must be of type string, array given...

Actualmente tengo el plugin "wpml string translation desactivado" porque la pagina se rompe al activarlo.

Enlazar a una página donde se pueda ver el tema: enlace oculto

¿Qué debo hacer para poder activar el plugin correctamente y poder tener la página en inglés y español?

mayo 16, 2024 a las 8:38 am #15633779

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello There,
Thanks for contacting WPML Support.

To reduce the waiting time, I took this ticket and responded in English. Please let me know if you're okay with it or want to continue the conversation in Spanish language. I will check and forward this ticket to one of our Spanish supporters to assist you in Spanish language.

I understand the issue you're experiencing. If you could share the full debug log, it would help identify which plugin and file the issue originates from. However, as a first step to resolve this, please try the following and see if it helps:

1. Deactivate and delete the String Translation plugin.
2. Clear the caches from your site and browser.
3. Go to "Plugins -> Add New -> Commercial" and check the box to install and activate the String Translation plugin.
4. Try to translate the page again.

But, if the issue persists, please copy the entire error log and share it in your next response. I will review it and suggest the next steps.

Looking forward to your response.

Best regards,
Prosenjit

mayo 22, 2024 a las 1:24 am #15652937

juanT-15

Hello,

Thank you very much. I am still having the issue. However, is it safe to share the whole debug log via this forum?

mayo 22, 2024 a las 7:28 am #15654362

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hi There,
Thank you for the update.

It would be better if you could upload the error log to a text-sharing platform like Pastebin and share the link. This will help keep the thread cleaner. It is safe to share the error log through our platform.

Looking forward to your response.

Best regards,
Prosenjit

mayo 22, 2024 a las 5:16 pm #15659499

juanT-15

Hello,

Thank you. The error log is in the following link:

enlace oculto

I have deactivated the wpml string translation plugin so the page can work properly for now.

I have noticed that the main home page (enlace oculto) gets a white screen with a critical error when I activate the plugin, however the home page with a "/en" at the end appears without the critical error (enlace oculto).

I look forward to your reply. Thank you.

mayo 24, 2024 a las 5:44 am #15665578

juanT-15

Hello!

I hope you are well.

I am following up on my previous message regarding the technical issue I am experiencing with the WPML String Translation plugin. As a reminder, here are the details:

Error Log: enlace oculto

Issue: The main homepage (enlace oculto) displays a white screen with a critical error when the plugin is activated. However, the homepage with "/en" at the end (enlace oculto) appears without any issues.

Current Status: I have deactivated the WPML String Translation plugin to allow the site to function properly in the meantime.

Could you please provide an update on this issue? Your assistance in resolving this matter is highly appreciated, as it is affecting the functionality of our website.

Thank you for your prompt attention to this matter. I look forward to your response.

mayo 25, 2024 a las 4:31 am #15669620

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello There,
I hope you're doing well. Sorry for the delay in responding.

Thank you for sharing the error log. I tried to access the file, but it appears to be protected. I have already requested access. Could you please check and approve the request so that I can investigate further?

Best regards,
Prosenjit

mayo 27, 2024 a las 2:42 pm #15674879

juanT-15

Hello,

Saturday I saw the request and granted access to the debug.log file. Please, can you tell me if there are there any updates? or if you need other information that could help speed up the process?

I appreciate your help.

mayo 28, 2024 a las 5:31 am #15676223

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello There,
Thank you for the update.

For some reason, I did not receive any notification that you had granted file access permission. However, when I tried accessing the link again, I was able to view the log.

From the error log, I found an error that is very similar to one we are aware of with the "Payzen for WooCommerce" plugin. Please check this errata for more details.

Since you're also using the same plugin, would you please apply the workaround mentioned in the Errata and check if that helps in solving the issue?

For your information, we have also released updates for the WPML and String Translation plugins. Please ensure you have installed the latest versions: WPML (4.6.11) and String Translation (3.2.12). After updating, please check again.

Please let me know how it goes. I will be happy to help if you need further assistaance in this matter.

Best regards,
Prosenjit

mayo 28, 2024 a las 5:28 pm #15680053

juanT-15

Hello Prosenjit,

Thank you for your response. I have applied the workoround as mentioned in the errata and as shown in the attached image, however the critical error (and the white screen) appears as soon as I activate the WPML String Translation plugin.

I am uploading a new debug.log file to show you updated errors:

enlace oculto

Thanks,
Juan

Workaround wpml -payzen .png
mayo 29, 2024 a las 6:57 am #15681767

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hi Juan,
Thank you for trying out the suggestions.

As the issue persists, a closer inspection will be required to understand the root cause of the issue.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
enlace oculto

Looking forward to your response.

Best Regards,
Prosenjit

mayo 30, 2024 a las 7:17 am #15686132

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hello Juan,

Thank you for sharing the access info. I'm currently investigating the issue. As soon as I have any update on this, I will promptly inform you.

Thank you so much for your continued patience and cooperation in this matter.

Best regards,
Prosenjit

mayo 30, 2024 a las 7:37 am #15686215

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hi,

When I logged in, I noticed that the String Translation plugin was already active on your site. I then accessed the Default homepage and found that it loaded properly without any issues. The English version of the homepage also loaded without any fatal errors.

However, since you mentioned in your first message that the issue occurs during the translation of the page, I approved the homepage translation, made a small change to the default page, and then updated the translation. I was able to update the translation without any issues, and no fatal errors occurred while the String Translation plugin was active.

You can check enlace oculto">this video for a better understanding.

As everything appears to be working fine, could you please clear the caches from your site and browser and then try again?

However, if you're still having the issue, I kindly request you to share the link to the exact page where the issue is visible along with the steps to replicate the issue. I will check accordingly and try my best to sort the issue for you.

Best regards,
Prosenjit

junio 6, 2024 a las 2:49 am #15709163

juanT-15

Hello Prosenjit,

Thank you for your help. As you mentioned the primary issue somehow got resolved and the string translation plugin has been working better. I had been making some changes, enabling and disabling some other plugins and clearing cache as you suggested. So maybe some of that actions resolved the issue.

However, I am still having some traduction issues. I will write to you tomorrow again if they persist or close the ticket. Thank you very much for you help.

junio 6, 2024 a las 8:14 am #15709718

Prosenjit Barman
Partidario de WPML desde 03/2023

Idiomas: Inglés (English )

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

Hi Juan,
Thank you for the update.

I'm glad to hear that everything is working fine now. Feel free to let me know if you encounter any issues or need assistance with String translation. I will be happy to help.

Just to inform you that as per our support policy, we are allowed to discuss one issue per ticket. If the other issue is different than the issue reported in this ticket, kindly create another ticket for that. One of our supporter will take over the ticket and assist you further.

Feel free to mark this ticket as resolved if the issue with String translation is solved now!

Best regards.
Prosenjit