• Resolved staygre

    (@staygre)


    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)
  • Plugin Support Elena

    (@elenathemehigh)

    Thank you for bringing this to our attention.

    It seems this is related to a compatibility issue with PHP 8.1.

    We will be adding the fix for this issue in the upcoming version of our plugin.

    If you would like to get this sorted urgently, then feel free to submit a ticket through our website, and our technical team will assist you as soon as possible by providing an updated plugin file.

    Thank you!

Viewing 1 replies (of 1 total)

The topic ‘Php 8.1 error’ is closed to new replies.