• Hi there,

    We just had a client of ours install this plugin. We run google page speed in cPanel (which we manually installed) and it is not finding the CURL extension. How does it look for it? We have curl for all of our PHP versions, yet we get the following error:

    [07-Jul-2017 09:47:42 UTC] PHP Fatal error: Google Pagespeed Insights requires the CURL PHP extension in /home/disarsa/public_html/wp-content/plugins/google-pagespeed-insights/core/init.php on line 24

    Looking forward to your assistance!

    Warm regards,
    Lucas

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matt Keys

    (@mattkeys)

    The plugin checks to see if the “curl_init” function exists during activation, and if it doesn’t find it, will trigger the error you see.

    Here is the PHP manual on that function: https://php.net/manual/en/function.curl-init.php

    Supported PHP versions of that function: (PHP 4 >= 4.0.2, PHP 5, PHP 7)

    Are you on one of those PHP versions?

    If you are positive that your server is setup properly for CURL, you can disable that check by commenting out lines 21-26 of /core/init.php and try using the plugin.

    Alternatively I also have a release candidate for v2.0 of this plugin which is pretty much a top-to-bottom rewrite of this plugin and may avoid this issue entirely. If you want to try that send me a message through my sites contact form and let me know. https://mattkeys.me/about/

    Plugin Author Matt Keys

    (@mattkeys)

    FYI, I ended up launching v2.0 today. Let me know if you are still having troubles with this latest version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CURL not found?’ is closed to new replies.