getgrav / grav-plugin-admin

Grav Admin Plugin
http://getgrav.org
MIT License
355 stars 222 forks source link

curl_multi_exec() Error in admin gui #2378

Open apaeffgen opened 8 months ago

apaeffgen commented 8 months ago

I tried to use grav in sourceforge.net and infinityfree.com Both are free hosting services. In both services i have no chance to change anything. Both produce the same error:

Call to undefined function Symfony\Component\HttpClient\Response\curl_multi_exec()

A comment on FAQ of infinityfree.com:

The function curl_multi_exec() has never worked on free hosting, however PHP8 changed the way that undefined functions work, as they throw a fatal error now. If your code was working before, just removing the function and all should be good.

I just would like to suppress the message, if the code is needed for other purpuses. Or an Option to turn on / off the functionality for the curl function.

Wohma commented 6 months ago

Same issue for me, tried changing PHP versions (tested with 8.1 and 8.3) but it didn't change anything. Latest version of grav and grav-admin (1.10.43) and the Reports page in the admin shows all green/correctly set up.

Wohma commented 6 months ago

... and I think I may have solved it by going to Configuration -> System -> Advanced -> HTTP Section -> Remote Fetch Method = fopen (it was on auto and probably trying curl first before falling back to fopen)