Skip to content Skip to sidebar

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 3 replies, has 1 voice.

Last updated by francescC-6 3 months, 4 weeks ago.

Assisted by: Otto.

Author Posts
March 25, 2025 at 2:13 pm #16858107

francescC-6

Background of the issue:
I am trying to bulk edit a group of posts with the bulk edit tool from WordPress when Advanced Custom Fields Multilingual is active. You can only see this in the admin of hidden link. This issue is coming from a database just migrated from the production site. In production, this problem is not occurring. But in this staging site, we have added new ACF field groups from JSON files that come from my local development site. This will be the new version of the site, with a new theme.

Symptoms:
I got a fatal error: 'Fatal error: Uncaught TypeError: Cannot access offset of type array in isset or empty in /var/www/vhosts/nou.pre.junior-report.media/httpdocs/wp-content/plugins/sitepress-multilingual-cms/classes/core-abstract-classes/class-wpml-element-translation.php:282'.
The issue only occurs when Advanced Custom Fields Multilingual is active. If I deactivate it, no issue. I have reviewed the ACF field groups and resolved two warnings about not setting the language translation, but the problem persists.

Questions:
Why does the fatal error occur when Advanced Custom Fields Multilingual is active during bulk editing?
How can I resolve the fatal error related to the bulk edit tool?

March 25, 2025 at 3:18 pm #16858697

francescC-6

Adding information that is lost when your IA make the abstract.

I have deactivated all the plugins except the esentials to run the site (ACF and WPML), so is, I deactivated the Gravity forms, MemberPress, Woocommerce. and all the others.
Then I begun to activate plugin an test the bulk edit. It was running fine until I activated the Advanced Custom Fields Multilingual. This is because I think the problem is this.

About memory limits, I have changed them directly in the server, trhough Plesk, yesterday. But I have changed the wp-config.php also as you reclaim.

About WPML I have installed de OTGS plugin, but the activation is not running, the system says it has been activated, but the plugin is not active in the plugins screen. Maybe this is something related with the issue?

So, now, I'm going to install independently the new versions of WPML.

I add an screenshot from the settings on server.

Thanks in advance.

Núria

2025-03-25_16-17-30.jpg
March 25, 2025 at 10:48 pm #16860089

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

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

While one of my teammates handles your ticket, I will provide you with initial debugging steps.

About WPML I have installed de OTGS plugin, but the activation is not running, the system says it has been activated, but the plugin is not active in the plugins screen. Maybe this is something related with the issue?

If WPML plugins are actived and running, the OTGS Installer plugin is no longer needed.

Please update your WPML plugin and add-ons to the latest version, 4.7.2, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.

You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/

If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.

Please remember to backup your database before you proceed.

Let us know if the issue persists after an update has been done.

March 26, 2025 at 11:20 am #16862181

francescC-6

Hello, after upload the new versions of wpml, the issue persists.

I have to tell that I couldn't update yours plugins because they didn't appear to be updatables. First image is a print screen from the commercial tab, where you can see how there was not installed the latest version, but it's not askng for updates.

In second image you can see also the others wpml plugins in same screen.

Then, third image show the plugins list page, where wpml plugins are not telling the have to be updated. May be this is normal now, but I found it rare.

In forth image, I show you what is displaying in WPML Support Page, after update the fourth plugins. You can see that WPML Media seems not to be installed, but it is, as you can see in third image. Is this normal?

Well, in any case, the problem is still there. Hope you can help us, because the editors has to make a lot of changes and bulk edit is very needed.

Thanks!

Núria

2025-03-26_11-59-30.jpg
2025-03-26_11-41-51.jpg
2025-03-26_11-41-05.jpg
2025-03-26_11-40-41.jpg
March 27, 2025 at 1:53 pm #16868879

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now.

Can you please try this:
- Go to: WPML -> Support -> Troubleshooting
- Click on "Remove ghost entries from the translation table"

Best Regards,
Otto

March 27, 2025 at 5:51 pm #16869989

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi,

I am sorry; I forgot to ask you for permission to replicate your site locally. For this, I'll need to temporarily install a plugin called “Updraft Plus” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved, I will delete the local site.

Also, does the issue happen with all the post types? Or which one should I try? How many posts are you trying to bulk edit?

Best Regards,
Otto

March 27, 2025 at 6:12 pm #16870092

francescC-6

You can do it, no problem. You have admin permissions to install the plugins.

The problem is happening in post type post, I haven't tried with the other cpts, but I will try now and tell you. Remember to deactivate the Advanced Custom Fields Multilingual
to see how the problem disappears.

March 27, 2025 at 6:32 pm #16870143

francescC-6

I just tried with Situaciones de Aprendizaje, and also occurs the same problem.

I have activated the debug display to see the error. Now here is 7:25pm so people are not yet working (except me), so you can make now all the testing that you want, I'm working on local, developing the new theme, so it's no problem for me. You can deactivate plugins, (not wmpl, acf, and PZ Custom ACF & functions plugin, because is the plugin that register the new cpts and the new taxonomies).
I have made a database dump when you asked the access.

If this can help, from two days ago, we are finding taxonomy terms in catalan language when review the list of posts in spanish. And I don't understand why. Not sure if can be related with the main issue.

If you have any other doubt, tell me, I will try to be alert on your messages.

Thanks

Núria

March 27, 2025 at 6:46 pm #16870205

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi,

Thanks.

Can you please finish the ACF Multilingual setup?

If you go to WPML -> Translation Management, you'll see a notice.

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/

Best Regards,
Otto

March 27, 2025 at 6:59 pm #16870232

francescC-6

Hi, Otto, I can't see the notification that you said. I have tried also in settings of wpml, but I can't see any notification. Here is the screen I see.
I tried in catalan and spanish. We are not using english.

2025-03-27_19-57-55.jpg
March 27, 2025 at 7:11 pm #16870283

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

I can't see it now, either, but it was there. Sadly, I didn't take a screenshot.

In any case, I am checking the issue in my local copy of your site.

I'll get back to you as soon as I have news.

Best Regards,
Otto

March 27, 2025 at 7:28 pm #16870309

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

These are my findings so far:
- The error does not happen with PHP7.4
- Also, it does not happen when changing the default theme with Twenty Twenty Five

So, I think there is an incompatibility there. Can you please confirm?

Best Regards,
Otto

March 27, 2025 at 8:06 pm #16870379

francescC-6

I confirm that changing to 20-25 theme the error disappears.It seems the problem comes from some incompatibility related to my new theme and ACF Multilingual setup. Because with my theme but ACF multilingual deactivated, there is no problem.

I can't see javascript errors on my theme. The theme is not finished yet but the fundamentals are. Do you have any idea from where can comes the problem?

Thanks,

Núria

March 27, 2025 at 8:38 pm #16870461

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi,

The issue does not happen with PHP7.4. In PHP 7.4 the code may only produce a warning/notices, whereas PHP 8 treats it as a fatal TypeError, which is why the issue disappears. Likewise, disabling ACFML likely avoids executing the problematic code path in WPML/ACFML, preventing the error.

We already have a similar issue, but it should be fixed now:
https://wpml.org/errata/advanced-custom-fields-fatal-error-uncaught-typeerror-illegal-offset-type-in-isset-or-empty-in

In the error stacktrace I can see:

/var/www/vhosts/nou.pre.junior-report.media/httpdocs/wp-content/themes/junior-report-2024/source/inc/admin-functions/acf-functions.php(18): acf_get_field_groups()

I'd start debugging from there. Debugging custom code is outside the scope of our support, but please let me know if there is something on our end and we will be happy to help.

Best Regards,
Otto

March 28, 2025 at 9:05 am #16871632

francescC-6

Thanks for pointing me in the right direction. The issue has been resolved after removed the function that calls the acf_get_field_gropus(). I will do the same in another way and I will contact the ACF plugin authors, because it seems something related with the compatibility of this function and PHP 8.

Thank you.

Núria