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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Asia/Yerevan (GMT+04:00)

Tagged: 

This topic contains 1 replies, has 0 voices.

Last updated by Christopher Amirian 2 weeks, 3 days ago.

Assisted by: Christopher Amirian.

Author Posts
March 19, 2026 at 7:09 am #17909798

anastasiosM-7

Some pages at the wesite were broken. The problem have to do with ACFML and more specficlly file: acfml/classes/Strings/FieldHooks.php because I got errors like:
TypeError: ACFMLStringsFieldHooks::shouldSkipField(): Argument #1 ($field) must be of type array, false given.
You should change line:
if ( self::shouldSkipField( $field ) ) {
to:
if ( !is_array( $field ) || self::shouldSkipField( $field ) ) {

and also:

private static function shouldSkipField( array $field )
to:
private static function shouldSkipField( $field )

March 19, 2026 at 7:32 am #17909822

Christopher Amirian
WPML Supporter since 07/2020

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hello,

Thank you for your report. I added an initial internal issue tracker entry.

Do you think you will be able to show the issue on your installation?

If So I'd appreciate it if you could create a copy/staging version of your website and set the next reply as private to provide the login info.

Then you can tell us what to do to see the error in your installation.

Thanks

The topic ‘[Closed] Bug in ACFML’ is closed to new replies.