Php 8.1 error
-
hi, i have the following in my php error log:
PHP Fatal error: Uncaught TypeError: array_diff(): Argument #1 ($array) must be of type array, bool given in …./public_html/wp-content/plugins/woocommerce-checkout-field-editor-pro/admin/class-thwcfe-admin-utils.php:474 Stack trace:….
if(isset($keys)){ $keys = array_diff($keys, $custom_field_keys); $keys = array_merge($custom_field_keys, $keys); }Problem solved replacing with this:
if(isset($keys) && is_array($keys)){
$keys = array_diff($keys, $custom_field_keys);
$keys = array_merge($custom_field_keys, $keys);
} else {
$keys = $custom_field_keys;}
Why is this happening? Is this php 8.1compatility error?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Php 8.1 error’ is closed to new replies.