microsoft / ApplicationInsights-WordPress

Main development repository for Application Insights WordPress plugin.
MIT License
45 stars 42 forks source link

Telemetry send but errors generated in php #6

Closed techgeek03 closed 8 years ago

techgeek03 commented 8 years ago

Hello, The php error log is full with 'Call to undefined function ApplicationInsights\Channel\utf8_encode()' errors. Here is the full stack. 2016/03/15 12:53:36 [error] 1271#1271: *35 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ApplicationInsights\Channel\utf8_encode() in /var/www/html/wp-content/plugins/application-insights/vendor/microsoft/application-insights/ApplicationInsights/Channel/Telemetry_Channel.php:165 Stack trace: /var/www/html/wp-content/plugins/application-insights/vendor/microsoft/application-insights/ApplicationInsights/Telemetry_Client.php(281): ApplicationInsights\Channel\Telemetry_Channel->send() /var/www/html/wp-content/plugins/application-insights/src/Server_Instrumentation.php(31): ApplicationInsights\Telemetry_Client->flush() /var/www/html/wp-includes/plugin.php(525): ApplicationInsights\WordPress\Server_Instrumentation->endRequest('') /var/www/html/wp-includes/load.php(635): do_action('shutdown')

{main} thrown in /var/www/html/wp-content/plugins/application-insights/vendor/microsoft/application-insights/ApplicationInsights/Channel/Telemetry_Channel.php on line 165" while reading upstream, request: "GET /account/edit/ HTTP/2.0", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:"

techgeek03 commented 8 years ago

I think I found the problem. Packege php7.0-xml was missing. apt-get install php7.0-xml solved the problem