You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On vient de passer à php 8.0 et on a cette erreur critique. Une erreur de type E_ERROR a été causée dans la ligne 54 du fichier /plugins/acf-extensions/fields/class-acf-field-dynamic_select.php. Message d’erreur : Uncaught TypeError: strlen(): Argument #1 ($str) must be of type string, array given in plugins/acf-extensions/fields/class-acf-field-dynamic_select.php:54
J'ai du pousser un hotfix sur ma prod, j'ai fait ça :
Ligne 54 et 55, j'ai remplacé par
if (is_string($choice)) {
$choices[sanitize_title($choice)] = $choice;
} elseif (is_array($choice)) {
foreach ($choice as $item) {
if (is_string($item)) {
$choices[sanitize_title($item)] = $item;
} else {
error_log("Invalid choice found: " . print_r($item, true));
}
}
} else {
error_log("Invalid choice data type: " . gettype($choice));
}
The text was updated successfully, but these errors were encountered:
Hello,
On vient de passer à php 8.0 et on a cette erreur critique. Une erreur de type E_ERROR a été causée dans la ligne 54 du fichier /plugins/acf-extensions/fields/class-acf-field-dynamic_select.php. Message d’erreur : Uncaught TypeError: strlen(): Argument #1 ($str) must be of type string, array given in plugins/acf-extensions/fields/class-acf-field-dynamic_select.php:54
J'ai du pousser un hotfix sur ma prod, j'ai fait ça :
Ligne 54 et 55, j'ai remplacé par
if (is_string($choice)) {
$choices[sanitize_title($choice)] = $choice;
} elseif (is_array($choice)) {
foreach ($choice as $item) {
if (is_string($item)) {
$choices[sanitize_title($item)] = $item;
} else {
error_log("Invalid choice found: " . print_r($item, true));
}
}
} else {
error_log("Invalid choice data type: " . gettype($choice));
}
The text was updated successfully, but these errors were encountered: