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

Last updated by jaimeG-2 2 weeks ago.

Assigned support staff: Itamar.

Author Posts
April 12, 2019 at 6:57 pm #3601333

enriqueG-5

I am trying to:
I had ACF with WPML installed and it was working properly. In latest updates, it appears Warning before calling a Gallery Image Loop.

Link to a page where the issue can be seen:
I've hidden the use not showing errors in php, so I attach an image with the error reporting.

I expected to see:
I should not see any warning because everything in code might be fine (it was months ago). Our php version is 7.2

Instead, I got:
Warning messages calling the gallery field variable, before the Advanced Custom Fields loop.

April 14, 2019 at 6:45 pm #3608503

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

I can see a few similar reports in our forum. We have started to receive these reports in the last couple of days. Still, we have not to pinpointed out the issue. We need to be able to replicate it. For this, I need a copy of your site, please. In the next reply that I'll send you, I'll add all the details of how you can migrate your site to our test server. The process is quite easy.

Could you please follow the instruction in my next reply and share a copy of your site with us?

Thanks,
Itamar.

April 26, 2019 at 10:59 am #3690091

enriqueG-5

Hi, I can't do that by now.
Same problem is appearing in all websites using ACF Galleries and WPML.
I attach another screenshot from other site we have.

Any idea for an update solving that?

April 28, 2019 at 5:21 pm #3698733

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

By now our developers have recognized the problem, and they will fix it in future versions of the plugin. Meanwhile, there is a workaround that you can use. Here is what you need to do.

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.

Now the warning shouldn't appear, and you should see the gallery.
Please let me know if it is working for you.

When we have the version with the fix released we would inform you here.

Thanks,
Itamar.

June 10, 2019 at 2:58 pm #3988393

enriqueG-5

Hi, I've updated wpml to latest version and still have to do this "trick".
Is it going to be solved in next updates?

June 11, 2019 at 9:07 am #3993437

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi.

Yes, according to our internal documentation, it is planned to be included in the next major release of ACFML. I'll keep you updated when the version that includes the fix is released.

Regards,
Itamar.

June 13, 2019 at 3:25 pm #4014579

jaimeG-2

Aha, in progress then - I just found this issue too. Cheers