
Experienced this same issue with WPAI ACF Addon. I haven’t quite fixed it entirely yet, but I drilled it down (based on the error) to line 473
in /wpai-acf-add-on/wpai-acf-add-on.php
.
$fields = acf_local()->fields;
if ( ! empty($fields) ) {
foreach ($fields as $key => $field) {
self::$all_acf_fields[] = $field['name'];
}
}
Then looked at a previous version of ACF Pro and there’s a file includes/local.php
that features that class acf_local
. In the newest version of ACF, it seems they did a lot of code refactoring. This file doesn’t exist. The closest thing I found was acf()->fields
I got this partially fixed (no more WSOD) but crashes on the “import” screen of WPAI, so THIS IS NOT A FIX. Maybe it’ll help someone continue with the fix. For me at this point, I’m downgrading ACF to 5.7.10 – where acf_local
exists.
Replace that code above with:
$fields = acf()->fields;
if ( ! empty($fields) ) {
foreach ($fields as $key => $field_parent) {
foreach ($field_parent as $field_child) {
if (isset($field_child->name)) {self::$all_acf_fields[] = $field_child->name;}
}
}
}

Experienced this same issue with WPAI ACF Addon. I haven’t quite fixed it entirely yet, but I drilled it down (based on the error) to line 473
in /wpai-acf-add-on/wpai-acf-add-on.php
.
$fields = acf_local()->fields;
if ( ! empty($fields) ) {
foreach ($fields as $key => $field) {
self::$all_acf_fields[] = $field['name'];
}
}
Then looked at a previous version of ACF Pro and there’s a file includes/local.php
that features that class acf_local
. In the newest version of ACF, it seems they did a lot of code refactoring. This file doesn’t exist. The closest thing I found was acf()->fields
I got this partially fixed (no more WSOD) but crashes on the “import” screen of WPAI, so THIS IS NOT A FIX. Maybe it’ll help someone continue with the fix. For me at this point, I’m downgrading ACF to 5.7.10 – where acf_local
exists.
Replace that code above with:
$fields = acf()->fields;
if ( ! empty($fields) ) {
foreach ($fields as $key => $field_parent) {
foreach ($field_parent as $field_child) {
if (isset($field_child->name)) {self::$all_acf_fields[] = $field_child->name;}
}
}
}