• Hello,

    PHP Fatal error: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given /plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php:42

    It appears that the Normalizer only works on strings, but is being called somewhere with an array. While that call may be in error, I’ve patched it by adding an is_array check after the null/0 length check:

    // If not a string, just return the data as-is
    if (is_array($data))
    {
    return $data;
    }

    This may not be the best solution, but it prevents the crash. I hope that this helps and a more official solution can be added in the next release.

    Thank you,

    Kevin Hock

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal Error on PHP 8.1 in Normalizer.php’ is closed to new replies.