Title: PHP 8 problem
Last modified: November 12, 2021

---

# PHP 8 problem

 *  [Zarausto](https://wordpress.org/support/users/zarausto/)
 * (@zarausto)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-problem-3/)
 * WordPress versão 5.8.1
    Plugin atual: Facebook for WordPress (versão 3.0.6) PHP
   versão 8.0.12
 * Um erro do tipo E_ERROR foi causado na linha 42 do arquivo /home/[…]/wp-content/
   plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/
   Object/ServerSide/Normalizer.php. Mensagem de erro: Uncaught TypeError: strlen():
   Argument #1 ($string) must be of type string, array given in /home/[…]/wp-content/
   plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/
   Object/ServerSide/Normalizer.php:42
    Stack trace: #0 /home/[…]/wp-content/plugins/
   official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/
   ServerSide/Normalizer.php(42): strlen() #1 /home/[…]/wp-content/plugins/official-
   facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/
   UserData.php(914): FacebookAds\Object\ServerSide\Normalizer::normalize() #2 /
   home/[…]/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-
   sdk/src/FacebookAds/Object/ServerSide/UserData.php(863): FacebookAds\Object\ServerSide\
   UserData->normalizeHashDedup() #3 /home/[…]/wp-content/plugins/official-facebook-
   pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.
   php(373): FacebookAds\Object\ServerSide\UserData->normalize() #4 /home/[…]/wp-
   content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/
   FacebookAds/Object/ServerSide/EventRequest.php(302): FacebookAds\Object\ServerSide\
   Event->normalize() #5 /home/[…]/wp-content/plugins/official-facebook-pixel/vendor/
   facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(
   240): FacebookAds\Object\ServerSide\EventRequest->normalize() #6 /home/[…]/wp-
   content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/
   FacebookAds/Object/ServerSide/EventRequest.php(235): FacebookAds\Object\ServerSide\
   EventRequest->defaultExecute() #7 /home/[…]/wp-content/plugins/official-facebook-
   pixel/core/FacebookServerSideEvent.php(101): FacebookAds\Object\ServerSide\EventRequest-
   >execute() #8 /home/[…]/wp-content/plugins/official-facebook-pixel/core/ServerEventAsyncTask.
   php(147): FacebookPixelPlugin\Core\FacebookServerSideEvent::send() #9 /home/[…]/
   wp-content/plugins/official-facebook-pixel/vendor/techcrunch/wp-async-task/wp-
   async-task.php(164): FacebookPixelPlugin\Core\ServerEventAsyncTask->run_action()#
   10 /home/[…]/wp-includes/class-wp-hook.php(303): WP_Async_Task->handle_postback()#
   11 /home/[…]/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #12/
   home/[…]/wp-includes/plugin.php(470): WP_Hook->do_action() #13 /home/[…]/wp-admin/
   admin-post.php(51): do_action() #14 {main} thrown

The topic ‘PHP 8 problem’ 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/)

## Tags

 * [E_ERROR](https://wordpress.org/support/topic-tag/e_error/)

 * 0 replies
 * 0 participants
 * Last reply from: [Zarausto](https://wordpress.org/support/users/zarausto/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/php-8-problem-3/)
 * Status: not resolved