Home›Support›English Support›[Assigned] Critical error when accessing ACF options - Post Types, Taxonomies and Options Pages
[Assigned] Critical error when accessing ACF options - Post Types, Taxonomies and Options Pages
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/
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?
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.
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?
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.
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.
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!
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.