aljawaid / PluginManager

Replace the Installed Plugins section with a whole new interface. Plugin Manager provides both users and developers with an improved layout displaying a new section for troubleshooting plugins with a new plugin structure breakdown for each plugin. Install plugins directly or explore new upcoming or untested features from manual plugins.
MIT License
17 stars 3 forks source link

PHP Fatal error: Uncaught Error: Call to undefined function Kanboard\Plugin\PluginManager\Helper\curl_ini (PHP 8.1) #45

Closed Skyridr closed 1 year ago

Skyridr commented 1 year ago

Using the latest Kanboard version 1.2.28 with PHP 8.1. When trying to access plugin directory, the screen is mostly white

image

And this pops up in the logs:

2023/04/15 13:58:16 [error] 179399#179399: *185 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function Kanboard\Plugin\PluginManager\Helper\curl_init() in /var/www/xxx/plugins/PluginManager/Helper/PluginManagerHelper.php:60 Stack trace: /var/www/xxx/plugins/PluginManager/Template/plugin/directory.php(174): Kanboard\Plugin\PluginManager\Helper\PluginManagerHelper->lastUpdatedDirectory() /var/www/xxxx/app/Core/Template.php(83): include('...') /var/www/xxx/app/Helper/LayoutHelper.php(207): Kanboard\Core\Template->render() /var/www/xxx/app/Helper/LayoutHelper.php(142): Kanboard\Helper\LayoutHelper->subLayout() /var/www/xxx/app/Controller/PluginController.php(47): Kanboard\Helper\LayoutHelper->plugin() /var/www/xxx/app/Core/Controller/Runner.php(77): Kanboard\Controller\PluginController->directory() /var/www/xxx/app/Core/Controller/Runner.php(31): Kanboard\Core\Controller\Runner->executeController() /var/w" while reading response header from upstream, client: xxx, server: xxx, request: "GET /extensions/directory HTTP/1.0", upstream: "fastcgi://unix:/run/php/php8.1-fpm.sock:", host: "xxx"

Any idea what it might be?

aljawaid commented 1 year ago

Do you have curl installed on your server and also https://www.php.net/manual/en/function.curl-getinfo.php?

https://github.com/aljawaid/PluginManager/blob/master/Helper/PluginManagerHelper.php#L60

aljawaid commented 1 year ago

If you use https://github.com/aljawaid/KanboardSupport it should tell you or go to About page

image

image

Skyridr commented 1 year ago

šŸ‘Thanks! You were indeed correct. I've installed KanBoardSupport as well, appreciate the quick reply.