Please make sure to update to WPML to the latest and check our list of Known Issues before reporting

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 thread is resolved. Here is a description of the problem and solution.

Reports about PHP warnings after ACFML 1.2 update

1. Go to wp-content/plugins/acfml/classes folder through FTP
2. Edit the file called class-wpml-acf-attachments.php
3. On line number 13 change this:

if ( is_serialized($value) ) {

to this

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

4. Save the changes.


This topic contains 2 replies, has 2 voices.

Last updated by Roger 9 months ago.

Assigned support staff: Jamal.

Author Posts
May 29, 2019 at 10:23 am #3914169


The log of the server registers these warnings

FastCGI: server "/tmp/" stderr: \t\t\t\t    WHERE  realizada por require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/template/single-room.php'), include('/themes/template/parts/components.php'), have_rows, get_field_object, acf_get_value,...PHP message: PHP Warning:  Illegal offset type in isset or empty in /www/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 257PHP message: PHP Warning:  Illegal offset type in /www/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258PHP message: PHP Warning:  Illegal offset type in isset or empty in /www/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 262, referer: <em><u>hidden link</u></em>

FastCGI: server "/tmp/" stderr: PHP message: PHP Warning:  Illegal offset type in isset or empty in /www/htdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 247PHP message: Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 9 de la base de datos de WordPress para la consulta SELECT wpml_translations.translation_id, wpml_translations.element_id, wpml_translations.language_code, wpml_translations.source_language_code, wpml_translations.trid, wpml_translations.element_type, referer: <em><u>hidden link</u></em>

Note, domain name of client has been obscured here.

May 29, 2019 at 5:15 pm #3917681


Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)


Thank you for contacting WPML Support. I will be glad to help with this.

Would you try the fix in this thread
It consists of patching the Advanced Custom Fields Multilingual plugin.

If it does not resolve the issue, please let me take a Duplicator copy of your website to investigate this issue locally. Please share the credentials to access in the private box.

Best regards,
WPML Support

May 30, 2019 at 8:25 am #3921257


This solved the issue. It would be good to update the plugin with this solution.

Thank you!