Skip Navigation

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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Europe/Vienna (GMT+01:00)

This topic contains 2 replies, has 0 voices.

Last updated by Bigul 1 day, 10 hours ago.

Assisted by: Bigul.

Author Posts
November 22, 2024 at 11:34 am #16433631

davidF-18

Background of the issue:
I am trying to access ACF options in the website's WordPress Admin Area. I expected to see the usual ACF settings pages.

Symptoms:
There has been a critical error on this website. PHP Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /home/customer/www/lagavina.com/public_html/wp-content/plugins/sitepress-multilingual-cms/menu/post-menus/wpml-posts-listing-page.class.php:26

Questions:
How can I resolve the critical error when accessing ACF options?
What steps should I take to fix the PHP Fatal error related to the WPML plugin?

November 22, 2024 at 5:44 pm #16434982

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

As per the Debug information Advanced Custom Fields Multilingual plugin is not installed on the site. It is mandatory for the proper translation of ACF fields.

Therefore please activate the Advanced Custom Fields Multilingual after a full site backup and make sure the bug exists or not. Refer to the following article for more details.

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

--
Thanks!

Bigul

November 22, 2024 at 7:30 pm #16435163

davidF-18

Hi Bigul,

Thanks for picking this up.

We are reluctant to install the ACFML plugin as we find it causes other issues - we run quite a number of sites with WPML, so we do have some experience.

This site (and a lot of others we manage) has been running quite happily without this problem (and without ACFML) for several years.

I should also say that we have a clone of this site for dev purposes on a separate server that does not show this issue and it also doesn't have the ACFML plugin installed.

Finally, we have found at least one support request (unresolved) for a similar issue but only where ACFML was installed. So we think it very unlikely that lack of ACFML plugin is the issue.

Apart from the dev site on a different server, we have a staging copy of the site on the same server environment as the live site - this shows similar but not identical issues. Could I give you access to the staging site to take a look at that?

Thanks in advance,

David

November 23, 2024 at 2:44 pm #16436176

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi David,

Thank you for the details. We hope you have the same version of PHP and WordPress on the staging site (the one hosted on a separate server).

I am enabling the private option for the next reply. Please share the credentials to access the staging site. Also, please let us know the exact steps to reproduce the issue.

--
Thanks!

Bigul

November 25, 2024 at 10:46 am #16439218

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi David,

Thank you for the details and staging site credentials. I can reproduce the issue. Please allow me to make a duplicator copy of your site using the Duplicator plugin (https://wordpress.org/plugins/duplicator/) for debugging the issue on our test servers.

--
Thanks!

Bigul

November 25, 2024 at 10:49 am #16439224

davidF-18

Hello Bigul,

Absolutely no problem, please go ahead and install the plugin and take a copy of the site, or you can take a backup using All in One WP Migration which is already installed, if that's easier. As you prefer!

Thanks,

David

November 25, 2024 at 3:02 pm #16440711

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi David,

Thank you for the permission. I made a copy of the site using Duplicator. We will debug it further and get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

November 27, 2024 at 4:54 pm #16451156

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi David,

I had a few rounds of testing in our testing servers and also on your staging site. Locally we are not able to reproduce the issue. On your staging site, it happens only when the Speed Optimizer plugin (from SiteGround) is active. Please refer to the following screencast for more details.

hidden link

So please verify it on your live sites after a full site backup and make sure the issue exists when the Speed Optimizer plugin is inactive.

--
Thanks!

Bigul

November 27, 2024 at 8:31 pm #16451648

davidF-18

Hello Bigul,

That's fantastic, I think that is completely correct - by doing a bit more testing, it appears that by deactivating the Memcached option in the Siteground Speed Optimizer plugin, the issue is averted, so we can keep the majority of the caching options in place and only deactivate that.

I will verify everything with the person working on the site, but will not be able to do so until Friday, so please keep the ticket open until I report back with definitive confirmation in 48 hours or so.

Thanks very much for your assistance and input.

Regards,

David

November 28, 2024 at 7:12 am #16453076

Bigul
Supporter

Languages: English (English )

Timezone: Europe/Vienna (GMT+01:00)

Hi David,

Thank you for the feedback. Take your time. We will wait for your updates.

If possible, please create a fresh installation (with the default WordPress theme and only WPML & ACF plugins are active) on SiteGround. Then make sure the bug exists or not.

--
Thanks!

Bigul