Title: WordPress Meta pixel plugin error
Last modified: January 24, 2023

---

# WordPress Meta pixel plugin error

 *  [readframes](https://wordpress.org/support/users/readframes/)
 * (@readframes)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/wordpress-meta-pixel-plugin-error/)
 * Hello,
   I keep receiving the following message from my WordPress site:
 * Since WordPress 5.2 there is a built-in feature that detects when a plugin or
   theme causes a fatal error on your site, and notifies you with this automated
   email.
 * In this case, WordPress caught an error with one of your plugins, Meta pixel 
   for WordPress.
 * **The error itself looks the following:**
 * An error of type E_ERROR was caused in line 42 of the file /www/frames_935/public/
   wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/
   FacebookAds/Object/ServerSide/Normalizer.php. Error message: Uncaught TypeError:
   strlen(): Argument #1 ($string) must be of type string, array given in /www/frames_935/
   public/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-
   sdk/src/FacebookAds/Object/ServerSide/Normalizer.php:42
   Stack trace:#0 /www/frames_935/
   public/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-
   sdk/src/FacebookAds/Object/ServerSide/Normalizer.php(42): strlen(Array)#1 /www/
   frames_935/public/wp-content/plugins/official-facebook-pixel/vendor/facebook/
   php-business-sdk/src/FacebookAds/Object/ServerSide/UserData.php(914): FacebookAds\
   Object\ServerSide\Normalizer::normalize(’em’, Array)#2 /www/frames_935/public/
   wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/
   FacebookAds/Object/ServerSide/UserData.php(863): FacebookAds\Object\ServerSide\
   UserData->normalizeHashDedup(’em’, Array)#3 /www/frames_935/public/wp-content/
   plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/
   Object/ServerSide/Event.php(373): FacebookAds\Object\ServerSide\UserData->normalize()#
   4 /www/frames_935/public/wp-content/plugins/official-facebook-pixel/vendor/facebook/
   php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(302): FacebookAds\
   Object\ServerSide\Event->normalize()#5 /www/frames_935/public/wp-content/plugins/
   official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/
   ServerSide/EventRequest.php(240): FacebookAds\Object\ServerSide\EventRequest-
   >normalize()#6 /www/frames_935/public/wp-content/plugins/official-facebook-pixel/
   vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.
   php(235): FacebookAds\Object\ServerSide\EventRequest->defaultExecute()#7 /www/
   frames_935/public/wp-content/plugins/official-facebook-pixel/core/FacebookServerSideEvent.
   php(108): FacebookAds\Object\ServerSide\EventRequest->execute()#8 /www/frames_935/
   public/wp-content/plugins/official-facebook-pixel/core/ServerEventAsyncTask.php(
   147): FacebookPixelPlugin\Core\FacebookServerSideEvent::send(Array)#9 /www/frames_935/
   public/wp-content/plugins/official-facebook-pixel/vendor/techcrunch/wp-async-
   task/wp-async-task.php(164): FacebookPixelPlugin\Core\ServerEventAsyncTask->run_action()#
   10 /www/frames_935/public/wp-includes/class-wp-hook.php(308): WP_Async_Task->
   handle_postback(”)#11 /www/frames_935/public/wp-includes/class-wp-hook.php(332):
   WP_Hook->apply_filters(”, Array)#12 /www/frames_935/public/wp-includes/plugin.
   php(517): WP_Hook->do_action(Array)#13 /www/frames_935/public/wp-admin/admin-
   post.php(61): do_action(‘admin_post_nopr…’)#14 {main}thrown
 * Would you be able to help me? What am I supposed to do?
   Thanks a lot.

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

 *  [socialfirm](https://wordpress.org/support/users/socialfirm/)
 * (@socialfirm)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/wordpress-meta-pixel-plugin-error/#post-16465639)
 * Which version of WordPress and which version of PHP are you currently running
   on your server?
 *  [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * (@jhorowitz)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/wordpress-meta-pixel-plugin-error/#post-16601928)
 * Hi [@readframes](https://wordpress.org/support/users/readframes/),
 * 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 has finally been approved
   and will hopefully get merged in and released soon. In the meantime you can apply
   the changes in that PR to the plugin yourself on your site.

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

The topic ‘WordPress Meta pixel plugin error’ 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

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

 * 2 replies
 * 6 participants
 * Last reply from: [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/wordpress-meta-pixel-plugin-error/#post-16601928)
 * Status: not resolved