Skip Navigation

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 3 replies, has 2 voices.

Last updated by Sebastian 1 year, 8 months ago.

Author Posts
September 21, 2023 at 10:43 pm #14442651

Sebastian

Hello,

I was trying to translate the page "Architecture" - add German language with the WPML Translate Editor. There is a ACF field attached, which I have set to "same fields".
As soon as I hit the Translator Editor button I get a fatal error.

PHP Fatal error: Uncaught TypeError: strlen(): Argument #1 ($str) must be of type string, array given in /home/sebastian/webapps/AndrewPhelps/wp-content/plugins/wpml-string-translation/classes/filters/strings-filter/class-wpml-register-string-filter.php:205
Stack trace:

September 22, 2023 at 2:41 pm #14447561

Bigul
WPML Supporter since 01/2013

Languages: English (English )

Timezone: Europe/Vienna (GMT+02:00)

Hello,

Welcome to the WPML support forum. We will do our best to help you to resolve the issue.

This may be related to the following ticket. Please try the workaround suggested there after a full site backup and let us know your feedback.

https://wpml.org/forums/topic/fatal-error-when-trying-to-add-a-translation-for-a-page/page/2/#post-13350115

--
Thanks!

Bigul

September 22, 2023 at 2:47 pm #14447581

Sebastian

Hello Bigul,
thanks for your message.
I am using ACF fields (including repeater / flexible content fields) on the site, but I don't use any ACF Blocks nor the table plugin mentioned in the other ticket.

September 23, 2023 at 8:06 pm #14451293

Sebastian

I've found the issue. The page has Bricksbuilder and ACF fields on it. When I removed the bricks content and used a template instead, it works again.