grav-plugin-admin icon indicating copy to clipboard operation
grav-plugin-admin copied to clipboard

curl_multi_exec() Error in admin gui

Open apaeffgen opened this issue 1 year ago • 2 comments

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.

apaeffgen avatar Oct 30 '23 17:10 apaeffgen

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 avatar Dec 24 '23 21:12 Wohma

... 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)

Wohma avatar Dec 24 '23 21:12 Wohma