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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by Riffaz 6 months ago.

Assigned support staff: Riffaz.

Author Posts
April 11, 2019 at 7:38 am

elenaA-11

On some pages of my site there are some Warnings like:

Warning: Illegal offset type in /web/htdocs/www.hotelsancelso.com/home/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php on line 258

Link to a page where the issue can be seen: hidden link

I expected to see: No Warnings.

April 11, 2019 at 12:35 pm #3587537

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

This may happen if you updated the ACML before updating the core WPML.
Did you update the ACML ?

Let me know.

Regards,

April 11, 2019 at 12:49 pm #3587725

elenaA-11

I have update ACML, there just this update available. Anyway, how can we solve?
TY

April 14, 2019 at 6:59 am #3607085

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

These are warning.
Your site will work fine with this issue.
If you have a backup before you did the update you can restore as well.

Our developers are looking into this.
Soon there will be an update regarding this.

Thank you for your patient.

Regards,

April 19, 2019 at 12:23 pm #3645687

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Problem coming from here \acfml\classes\class-wpml-acf-attachments.php:L13

if we change

if ( is_serialized($value) ) {

to

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

then problem is fixed. However, I am not sure if it is safe to pass to the customers.
this will be included in the next update.

Regards,
Riffaz.

The topic ‘[Closed] Warning on my site’ is closed to new replies.