Hi guys,
I always get the following fatal error if I open the Information tab with the security configuration on the admin panel:
Fatal Error.
Call to undefined function curl_init()
Log at time 2022-01-14T14:43:44+00:00 may have more data.
#0 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include()
#1 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile()
#2 /var/www/html/elgg/vendor/elgg/elgg/engine/lib/views.php(222): Elgg\ViewsService->renderView()
#3 /var/www/html/elgg/vendor/elgg/elgg/views/default/resources/admin.php(29): elgg_view()
#4 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(515): include('/var/www/html/e...')
#5 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/ViewsService.php(448): Elgg\ViewsService->renderViewFile()
#6 /var/www/html/elgg/vendor/elgg/elgg/engine/lib/views.php(377): Elgg\ViewsService->renderView()
#7 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(211): elgg_view_resource()
#8 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(122): Elgg\Router->prepareResponse()
#9 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Router.php(102): Elgg\Router->getResponse()
#10 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(419): Elgg\Router->route()
#11 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(310): Elgg\Application->run()
#12 /var/www/html/elgg/vendor/elgg/elgg/engine/classes/Elgg/Application.php(360): Elgg\Application::route()
#13 /var/www/html/elgg/index.php(8): Elgg\Application::index()
#14 {main}
This is the header of the request:
Request-URL: http://192.168.56.102/admin/security/information
Requestmethod: GET
Statuscode: 500 Internal Server Error
Remote-Addresse: 192.168.56.102:80
This is the apache2 log:
[Fri Jan 14 15:43:44.486462 2022] [php7:notice] [pid 609] [client 192.168.56.1:57136] [2022-01-14T14:43:44+00:00] ELGG.CRITICAL: Exception at time 1642171424:\nCall to undefined function curl_init()\n {"backtrace":[],"process_id":609,"memory_peak_usage":"2 MB","memory_usage":"2 MB","url":"/admin/security/information","ip":"192.168.56.1","http_method":"GET","server":"192.168.56.102","referrer":"http://192.168.56.102/admin/security"}\n, referer: http://192.168.56.102/admin/security
Thank you for the help!
Christoph
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Jerome Bakker@jeabakker

Jerome Bakker - 1 like
- Christoph Heck@ChristophHeck

Christoph Heck - 0 likes
You must log in to post replies.looks like you don't have the PHP module curl enabled. Check your php.ini
@JeromeBakker
Thank you very much for your help!
This tutorial helped me a lot:
https://www.geeksforgeeks.org/how-to-enable-curl-in-php/
Cheers
Christoph