Title: Error Uncaught TypeError: strlen()
Last modified: January 19, 2023

---

# Error Uncaught TypeError: strlen()

 *  [sergiodevify](https://wordpress.org/support/users/sergiodevify/)
 * (@sergiodevify)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-uncaught-typeerror-strlen/)
 * Hi, I have this error:
 * Uncaught TypeError: strlen() Normalizer.php file.
 * Can you help me?
 * Thank you.

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

 *  [stevek2](https://wordpress.org/support/users/stevek2/)
 * (@stevek2)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-uncaught-typeerror-strlen/#post-16401913)
 * Same here:
 * An error of type E_ERROR was caused in line 42 of the file …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 …wp-content/plugins/official-
   facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/Object/ServerSide/
   Normalizer.php:42
 * WordPress version 6.1.1
   Current plugin: Meta pixel for WordPress (version 3.0.8)
   PHP version 8.0.27
 *  [brian@foxxr.com](https://wordpress.org/support/users/brianfoxxrcom/)
 * (@brianfoxxrcom)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/error-uncaught-typeerror-strlen/#post-16404090)
 * Same issue here:
   **Error Details**An error of type E_ERROR was caused in line
   42 of the file …/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 …/wp-content/plugins/official-facebook-pixel/vendor/facebook/php-business-
   sdk/src/FacebookAds/Object/ServerSide/Normalizer.php:42Stack trace:**0 …/wp-content/
   plugins/official-facebook-pixel/vendor/facebook/php-business-sdk/src/FacebookAds/
   Object/ServerSide/Normalizer.php(42): strlen(Array)****1 …/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 …/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 …/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(Array)****9 …/wp-content/plugins/official-
   facebook-pixel/vendor/techcrunch/wp-async-task/wp-async-task.php(164): FacebookPixelPlugin\
   Core\ServerEventAsyncTask->run_action()**
    -  This reply was modified 3 years, 4 months ago by [brian@foxxr.com](https://wordpress.org/support/users/brianfoxxrcom/).
    -  This reply was modified 3 years, 4 months ago by [brian@foxxr.com](https://wordpress.org/support/users/brianfoxxrcom/).
 *  [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * (@jhorowitz)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/error-uncaught-typeerror-strlen/#post-16601922)
 * Hi [@sergiodevify](https://wordpress.org/support/users/sergiodevify/),
 * 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 3 replies - 1 through 3 (of 3 total)

The topic ‘Error Uncaught TypeError: strlen()’ 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/)

 * 3 replies
 * 4 participants
 * Last reply from: [Jonathan Horowitz](https://wordpress.org/support/users/jhorowitz/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/error-uncaught-typeerror-strlen/#post-16601922)
 * Status: not resolved