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.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Lucas Vidal de Andrade 11 months, 2 weeks ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
May 6, 2024 at 12:04 pm #15596947

jacksonM-4

Background of the issue:
I am updating the Option acf page for the default language on my WordPress site using the WPML plugin.

Symptoms:
I encounter a fatal error specifically when updating the Option acf page for the English language, which is the default. The error message is: 'Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, bool given in /var/www/site_files/wp-content/plugins/acfml/classes/Helper/HashCalculator.php:65'. This issue does not occur for the other two languages on the site.

Questions:
How can I resolve the fatal error occurring only for the default language when updating the Option acf page?
Why does this error not appear for the other languages?

May 7, 2024 at 2:29 pm #15602691

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for your patience, our queue has been quite high lately. To answer your questions, I need to investigate it further. I located a similar issue and would like to test it on a staging version of your website, if you have one. This is the similar issue I mentioned:

https://wpml.org/errata/advanced-custom-fields-and-php-8-0-offset-warning-and-error-on-acf-options-page-when-there-is-only-one-language/

If you don't have a staging version, I can make a copy of your website locally. To share access, you will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” 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. Let me know if this is ok with you.

IMPORTANT

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:

hidden link

The topic ‘[Closed] Fatal Error while updating the Option acf page for default language’ is closed to new replies.