Title: PHP Error on Plugin
Last modified: February 3, 2023

---

# PHP Error on Plugin

 *  [vpsgeneral](https://wordpress.org/support/users/vpsgeneral/)
 * (@vpsgeneral)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/php-error-on-plugin/)
 *     ```wp-block-code
       I'm getting daily notificaionts on 10+ wordpress sites of this plugin causing errors. It needs to be updated. It's been going on for weeks.
   
   
   
       When seeking help with this issue, you may be asked for some of the following information:
   
       WordPress version 6.1.1
   
        Current plugin: Meta pixel for WordPress (version 3.0.8) PHP version 8.0.25
   
       Error Details
   
       =============
   
       An error of type E_ERROR was caused in line 42 of the file /nas/content/live/apcinc/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 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php:42
   
       Stack trace:
   
       #0 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Normalizer.php(42): strlen(Array)
   
       #1 /nas/content/live/apcinc/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 /nas/content/live/apcinc/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 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/Event.php(373): FacebookAds\Object\ServerSide\UserData->normalize()
   
       #4 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(302): FacebookAds\Object\ServerSide\Event->normalize()
   
       #5 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(240): FacebookAds\Object\ServerSide\EventRequest->normalize()
   
       #6 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/EventRequest.php(235): FacebookAds\Object\ServerSide\EventRequest->defaultExecute()
   
       #7 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/core/FacebookServerSideEvent.php(108): FacebookAds\Object\ServerSide\EventRequest->execute()
   
       #8 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/core/ServerEventAsyncTask.php(147): FacebookPixelPlugin\Core\FacebookServerSideEvent::send(Array)
   
       #9 /nas/content/live/apcinc/wp-content/plugins/official-facebook-pixel/vendor/techcrunch/wp-async-task/wp-async-task.php(164): FacebookPixelPlugin\Core\ServerEventAsyncTask->run_action()
   
       #10 /nas/content/live/apcinc/wp-includes/class-wp-hook.php(308): WP_Async_Task->handle_postback('')
   
       #11 /nas/content/live/apcinc/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
   
       #12 /nas/content/live/apcinc/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       #13 /nas/content/live/apcinc/wp-admin/admin-post.php(61): do_action('admin_post_nopr...')
   
       #14 {main}
   
         thrown
       ```
   

Viewing 1 replies (of 1 total)

 *  [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * (@jhorowitz)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-error-on-plugin/#post-16601929)
 * Hi [@vpsgeneral](https://wordpress.org/support/users/vpsgeneral/),
 * 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 1 replies (of 1 total)

The topic ‘PHP Error on Plugin’ 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/)

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