nystudio107 / instantanalytics

DEPRECATED Instant Analytics brings full Google Analytics support to your Twig templates and automatic Craft Commerce integration with Google Enhanced Ecommerce.
Other
101 stars 4 forks source link

php warnings #9

Closed nealzie closed 7 years ago

nealzie commented 7 years ago

Hi!

When activating the plugin I get 500 server errors on my site. When switching to dev mode, I get this:

PHP warning

curl_init() has been disabled for security reasons

blabla/root/werkenbij/craft/plugins/instantanalytics/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(56)

Troubleshooting myself now but thought I'd report it in case.

khalwat commented 7 years ago

What version of PHP is on your server? Is this in local dev, and if so, what are you using for it?

It sounds like some kind of an issue with your server/PHP setup

nealzie commented 7 years ago

Local dev seems to work fine - php 5.6.10. Staging gives this error which is Apache 2.4.23 - php 5.6.27

khalwat commented 7 years ago

How was staging provisioned? The error you're seeing is coming from Guzzle, a widely used PHP package that Instant Analytics uses. I'm suspecting something is amiss with your server provisioning.

khalwat commented 7 years ago

Maybe this will help you: https://tipstricks.itmatrix.eu/warning-curl_exec-has-been-disabled-for-security-reasons/