Error Uncaught TypeError: strlen()
-
Hi, I have this error:
Uncaught TypeError: strlen() Normalizer.php file.
Can you help me?
Thank you.
-
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.27Same 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:42
Stack 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
[email protected].
-
This reply was modified 3 years, 4 months ago by
[email protected].
Hi @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/32It 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.
-
This reply was modified 3 years, 4 months ago by
The topic ‘Error Uncaught TypeError: strlen()’ is closed to new replies.