This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 5 replies, has 2 voices.

Last updated by Andreas W. 1 month, 1 week ago.

Assigned support staff: Andreas W..

Author Posts
September 2, 2019 at 3:17 pm

marcosM-11

I am trying to:

we cannot translate shop urls (product-category, ...) . It is shown the same way in both languages (Spanish and English)

Link to a page where the issue can be seen:

hidden link
(it should be product-category)

Note: when we try to translate the url, we get an error (technical problems)

Enviado desde mi iPad

Inicio del mensaje reenviado:

De: Matilde Cano <matildecano@matildecano.es>
Fecha: 2 de septiembre de 2019, 16:10:42 CEST
Para: matildecano@matildecano.es
Asunto: [Matilde Cano] Tu sitio tiene problemas técnicos

¡Hola!

Desde WordPress 5.2 hay una característica incorporada que detecta cuando un plugin o tema causa un error fatal en tu sitio y te avisa mediante este correo electrónico automático.

En este caso, WordPress detectó un error con uno de tus plugins, WPML Multilingual CMS.

Primero, visita tu web (hidden link) y comprueba si hay algún problema visible. A continuación, visita la página donde se detectó el error (hidden link) y comprueba si hay algún problema visible.

Por favor, ponte en contacto con tu alojamiento para que te ayude a investigar más a fondo este problema.

Si tu sitio parece roto y no puedes acceder al escritorio, WordPress ahora tiene un «modo de recuperación» especial. Este te permite acceder de forma segura a tu escritorio e investigar más a fondo.

hidden link

Para mantener tu sitio seguro, este enlace caducará en 1 día. Sin embargo, no te preocupes por esto: recibirás por correo electrónico un nuevo enlace si el error ocurre de nuevo después de que caduque.

Detalles del error
==================
Se produjo un error del tipo E_ERROR en la línea 1119 del archivo /var/www/vhosts/matildecano.es/httpdocs/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php. Mensaje de error: Uncaught LogicException: A function must be an instance of \Twig_FunctionInterface or \Twig_SimpleFunction. in /var/www/vhosts/matildecano.es/httpdocs/wp-content/plugins/sitepress-multilingual-cms/lib/twig/src/Environment.php:1119
Stack trace:
#0 /var/www/vhosts/matildecano.es/httpdocs/wp-content/plugins/woocommerce-multilingual/inc/template-classes/store-urls/class-wcml-store-urls-translation-statuses-ui.php(28): WPML\Core\Twig\Environment->addFunction(Object(Twig_SimpleFunction))
#1 /var/www/vhosts/matildecano.es/httpdocs/wp-content/plugins/woocommerce-multilingual/inc/template-classes/store-urls/class-wcml-store-urls-translation-statuses-ui.php(32): WCML_Store_URLs_Translation_Statuses_UI->init_twig_functions()
#2 /var/www/vhosts/matildecano.es/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/templating/class-wpml-templates-factory.php(70): WCML_Store_URLs_Translation_Statuses_UI->get_model()
#3 /var/www/vhosts/matildecano.es/httpdocs/wp-content/plugins/woocommerce-multilingual/inc/template-c

September 2, 2019 at 7:13 pm #4499791

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for contacting the WPML Support Forum.

It seems this issue is related to a incomaptibility between our new CSM Mutlilingual Beta and WooCommerce Multilingual.

https://wpml.org/forums/topic/wpml-beta-causes-error-on-woocommerce-multilingual-multi-currency/

For now, I would adivse you to disable WooCommerce Multilingual. Our deveopers have been informed about the issue with your site and I will get back to you as soon I received feedback.

Kind regards
Andreas

September 2, 2019 at 8:09 pm #4499921

marcosM-11

can I go to the previous version of wpml?
besucase if I disable woocommerce multilingual, I will loose the English version of woocomerce pages ...and I don't want to loose it...we need English version of all products...
thanks

September 3, 2019 at 10:14 pm #4507391

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Could you please go to Plugins -> Add new -> Commercial. Make sure to enable WPML Beta Channel and search for new updates.

There should be a beta version for the upcoming WooCommerce Multingual available which should solve the issue.

Can you confirm that?

More information can be found here:
https://wpml.org/2019/08/wpml-4-3-beta-1-with-much-faster-string-translation/

Kind regards
Andreas

September 4, 2019 at 4:01 pm #4512733

marcosM-11

it seems it works!!
when should I change again to the production channel? now I am using the beta channel

thanks

September 4, 2019 at 4:22 pm #4512851

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

We have realesed WooCommerce Multilingual 4.6.6 today. Could you please install the plugin and let me know if the issue is solved?

In case the issue persits, please keep using the Beta until WCML 4.7 will be released.

Kind regards
Andreas