stayallive / wp-sentry

A (unofficial) WordPress plugin reporting PHP and JavaScript errors to Sentry.
https://wordpress.org/plugins/wp-sentry-integration/
MIT License
300 stars 48 forks source link

CURLOPT_TIMEOUT #160

Closed AlexWebpuro closed 1 year ago

AlexWebpuro commented 1 year ago

PHP Fatal error: Uncaught Error: Undefined constant "CURLOPT_TIMEOUT" in /wp-content/plugins/wp-sentry-integration/build/vendor/sentry/sentry/src/HttpClient/HttpClientFactory.php:108.

How I can resolve this, when I run the wp cli doesn't work and appear this error log.

Thanks for your help.

stayallive commented 1 year ago

Hi @AlexWebpuro is it possible your PHP installation doesn't have the cURL extension installed?

AlexWebpuro commented 1 year ago

You completely right, this was resolved installing php curl extension

$ sudo apt install php8.1-curl -y

stayallive commented 1 year ago

Awesome, glad you got it solved 😎