kffl / nextcloud-webhooks

Webhooks app for Nextcloud :globe_with_meridians: :zap:
https://apps.nextcloud.com/apps/webhooks
GNU Affero General Public License v3.0
45 stars 10 forks source link

Internal Server Error after go to: Administration->Security #27

Open tsr8 opened 1 year ago

tsr8 commented 1 year ago

I've got Internal Server Error after go to: Administration->Security if Webhooks app has been enabled.

from log: {"reqId":"ZA91ZOerowcy0SOwTQfH@AAAAW","level":3,"time":"2023-03-13T19:11:32+00:00","remoteAddr":"89.00.00.000","user":"admin","app":"index","method":"GET","url":"/index.php/settings/admin/security","message":"Call to undefined function OCA\Webhooks\Settings\exec() in file '/home/tsr/domains/cpdm.pl/public_html/chmura/apps/webhooks/lib/Settings/Admin.php' line 81","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0","version":"25.0.4.1","exception":{"Exception":"Exception","Message":"Call to undefined function OCA\Webhooks\Settings\exec() in file '/home/tsr/domains/cpdm.pl/public_html/chmura/apps/webhooks/lib/Settings/Admin.php' line 81","Code":0,"Trace":[{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OCA\Settings\Controller\AdminSettingsController"],"index"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Settings\Controller\AdminSettingsController","index",["OC\AppFramework\DependencyInjection\DIContainer"],["security","settings.AdminSettings.index"]]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/base.php","line":1047,"function":"match","class":"OC\Route\Router","type":"->","args":["/settings/admin/security"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"Error","Message":"Call to undefined function OCA\Webhooks\Settings\exec()","Code":0,"Trace":[{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/apps/webhooks/lib/Settings/Admin.php","line":62,"function":"testCurl","class":"OCA\Webhooks\Settings\Admin","type":"::","args":[]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/apps/settings/lib/Controller/CommonSettingsTrait.php","line":129,"function":"getForm","class":"OCA\Webhooks\Settings\Admin","type":"->","args":[]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/apps/settings/lib/Controller/AdminSettingsController.php","line":83,"function":"formatSettings","class":"OCA\Settings\Controller\AdminSettingsController","type":"->","args":[[[["OCA\Settings\Settings\Admin\Security"]],[["OCA\Password_Policy\Settings"]],[["OCA\OAuth2\Settings\Admin"]],[["OCA\Webhooks\Settings\Admin"]]]]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/apps/settings/lib/Controller/CommonSettingsTrait.php","line":149,"function":"getSettings","class":"OCA\Settings\Controller\AdminSettingsController","type":"->","args":["security"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/apps/settings/lib/Controller/AdminSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\Settings\Controller\AdminSettingsController","type":"->","args":["admin","security"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"index","class":"OCA\Settings\Controller\AdminSettingsController","type":"->","args":["security"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OCA\Settings\Controller\AdminSettingsController"],"index"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[["OCA\Settings\Controller\AdminSettingsController"],"index"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Settings\Controller\AdminSettingsController","index",["OC\AppFramework\DependencyInjection\DIContainer"],["security","settings.AdminSettings.index"]]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/lib/base.php","line":1047,"function":"match","class":"OC\Route\Router","type":"->","args":["/settings/admin/security"]},{"file":"/home/tsr/domains/cpdm.pl/public_html/chmura/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/tsr/domains/cpdm.pl/public_html/chmura/apps/webhooks/lib/Settings/Admin.php","Line":81},"CustomMessage":"--"}}

joshtrichards commented 1 year ago

https://github.com/kffl/nextcloud-webhooks#requirements

It sounds like you have the exec() function disabled in your PHP environment. It's required to use this app.