Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Grav 1.7 curl - PHP Curl in local host - Wamp

Solved by carlos View solution

Started by carlos 5 years ago · 7 replies · 1110 views
5 years ago

Good morning,
I'm trying to update grav to the latest version. I have a local copy in the pc with WAMP and PHP 7.4.16 with the extension curl activated.

As I understand, for some reason, Grav send me this error: Use of undefined constant CURLOPT_CAINFO - assumed 'CURLOPT_CAINFO' (this will throw an Error in a future version of PHP)
Nevertheless, you can see in the image curl is activated.

image|689x348, 75%

my local host display this:
image|690x92

any clue would be very much appreciated.
thanks
Carlos.

5 years ago

what does a simple phpinfo.php file in your root directory say ?

PHP
<?php
phpinfo();
?>
5 years ago

Thank you @hoernerfranz I don't have any file named: phpinfo.php.
Do I need to create a file that file in the grav site root directory?

best
C,

5 years ago

yes, you need to create it with the content I posted above.
then go to http://localhost/phpinfo.php and see what the webserver finds, especially curl.
you should get something like this:
ksnip_20210326-181838|597x500

last edited 03/26/21 by Werner Joss
5 years ago

Thank you!,
I don't have that module I will find the way how to installed.

thanks a lot.
best
C.

5 years ago

you're welcome - so this looks like a bug or a misconfiguration in your WAMP installation.
you could also try XAMPP, if you don't get curl to be included.

5 years ago Solution

I found that there is a problem between PHP 7.4 and the Apache version. soon as Apache is updated to 2.4.46 the problem is solved.

All the best
Carlos.

5 years ago

@cidelab, I've taken the liberty to change which reply should be considered the 'solution'. As you said yourself, upgrading Apache was the solution that solved the issue.

👍 1

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 56 13 hours ago
Support · by Anna, 3 days ago
2 61 16 hours ago
Support · by Justin Young, 17 hours ago
1 32 17 hours ago
Support · by Duc , 1 week ago
2 66 5 days ago
Support · by Colin Hume, 1 week ago
2 59 5 days ago