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 1 reply, has 2 voices.

Last updated by Radu 6 months ago.

Assigned support staff: Radu.

Author Posts
April 20, 2019 at 11:53 am

janetC

We updated the hidden link website a couple of days ago, and suddenly started seeing Illegal offset warnings:

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 247

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Warning: Illegal offset type in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Warning: Illegal offset type in isset or empty in /home/katheri2/public_html/treddolphin/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262

Digging through it all, it all comes down to the function used to display a gallery of images on the room summary sections, namely

$gallery_images = get_field( 'gallery', $default_lang_room_id, false );

I've added code to the config.php file to hide the warnings for now, but is this a known incompatibilty, and if so, when is it likely to be fixed?

April 22, 2019 at 9:24 am #3654837

Radu
Supporter

Languages: English (English )

Timezone: Europe/Bucharest (GMT+03:00)

Hey Janet,

There's a little issue with the last version of ACFML but we already took care of it.

In order to apply an early fix, please go to wp-content/plugins/acfml/classes folder through FTP, edit the file called class-wpml-acf-attachments.php and edit the line 13 from this:

if ( is_serialized($value) ) {

to this

if ( is_serialized($value) || is_array($value) ) {

Can you do this change and tell me if things are back to normal, please? This fix will definitely be included in the next update of the plugin but this is an early fix so you don't have to wait for the new version.

Thanks,
Radu

The topic ‘[Closed] Use of ACF get_field() suddenly raising WPML warnings’ is closed to new replies.