Title: Fatal error when using PHP 8.0
Last modified: September 9, 2022

---

# Fatal error when using PHP 8.0

 *  [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-when-using-php-8-0/)
 * After updating to PHP 8.0 I’m receiving e-mails about critical errors regarding
   this plugin, and in the list of support threads I see this is already a known
   issue for many months now and a fix should be available. When can we expect that
   patch?
 *     ```
       Een fout van het type E_ERROR werd veroorzaakt op regelnummer 42 van het bestand /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php. Foutmelding: Uncaught TypeError: strlen(): Argument #1 ($string) must be of type string, array given in /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php:42
       Stack trace:
       #0 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php(42): strlen()
       #1 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php(914): FacebookAds\Object\ServerSide\Normalizer::normalize()
       #2 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php(863): FacebookAds\Object\ServerSide\UserData->normalizeHashDedup()
       #3 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php(373): FacebookAds\Object\ServerSide\UserData->normalize()
       #4 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(302): FacebookAds\Object\ServerSide\Event->normalize()
       #5 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(240): FacebookAds\Object\ServerSide\EventRequest->normalize()
       #6 /.../wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(235): FacebookAds\Object\ServerSide\EventRequest->defaultExecute()
       #7 /.../wp-content/plugins/official-facebook-pixel/core/FacebookServerSideEvent.php(108): FacebookAds\Object\ServerSide\EventRequest->execute()
       #8 /.../wp-content/plugins/official-facebook-pixel/core/ServerEventAsyncTask.php(147): FacebookPixelPlugin\Core\FacebookServerSideEvent::send()
       #9 /.../wp-content/plugins/official-facebook-pixel/vendor/techcrunch/wp-async-task/wp-async-task.php(164): FacebookPixelPlugin\Core\ServerEventAsyncTask->run_action()
       #10 /.../wp-includes/class-wp-hook.php(307): WP_Async_Task->handle_postback()
       #11 /.../wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
       #12 /.../wp-includes/plugin.php(476): WP_Hook->do_action()
       #13 /.../wp-admin/admin-post.php(85): do_action()
       #14 {main}
         thrown
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * (@jhorowitz)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-using-php-8-0/#post-16153831)
 * Hi [@josklever](https://wordpress.org/support/users/josklever/),
 * This is very likely the same issue a lot of people have been having with PHP 
   8, which is fixed by my PR here:
    [https://github.com/facebookincubator/Facebook-Pixel-for-Wordpress/pull/32](https://github.com/facebookincubator/Facebook-Pixel-for-Wordpress/pull/32)
 * It has been sitting around for a very long time but will hopefully get merged
   in and released eventually. In the meantime you can apply the changes in that
   PR to the plugin yourself on your site.
 *  Thread Starter [Jos Klever](https://wordpress.org/support/users/josklever/)
 * (@josklever)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-using-php-8-0/#post-16153905)
 * I’ve already seen your comment on other posts and thanks for that, but as it’s
   not allowed to post “same issue” comments on existing topics I created my own.
   But support seems none existent here.
 * As multiple clients are using this plugin, I think it’s time to start looking
   for an alternative.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error when using PHP 8.0’ is closed to new replies.

 * ![](https://ps.w.org/official-facebook-pixel/assets/icon.svg?rev=3158868)
 * [Meta pixel for WordPress](https://wordpress.org/plugins/official-facebook-pixel/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/official-facebook-pixel/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/official-facebook-pixel/)
 * [Active Topics](https://wordpress.org/support/plugin/official-facebook-pixel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/official-facebook-pixel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/official-facebook-pixel/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jos Klever](https://wordpress.org/support/users/josklever/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-when-using-php-8-0/#post-16153905)
 * Status: not resolved