e-alfred / ocdownloader

ocDownloader - AGPL-licensed multi-protocol download manager for Nextcloud using ARIA2, youtube-dl and Curl (supports Youtube, BitTorrent, HTTP, FTP)
https://github.com/e-alfred/ocdownloader
GNU Affero General Public License v3.0
375 stars 85 forks source link

[index] Error: Exception: OC\Files\Utils\Scanner::__construct() #248

Closed Emporea closed 1 year ago

Emporea commented 2 years ago

I installed all requierements, but when I try to open ocdownloader i get the blue nextcloud error side and this logs:

[index] Error: Exception: OC\Files\Utils\Scanner::__construct(): Argument #4 ($logger) must be of type Psr\Log\LoggerInterface, OC\Log given, called in /var/www/html/custom_apps/ocdownloader/controller/index.php on line 249 in file '/var/www/html/lib/private/Files/Utils/Scanner.php' line 95 at <<closure>>

0. /var/www/html/lib/private/AppFramework/App.php line 172
   OC\AppFramework\Http\Dispatcher->dispatch(OCA\ocDownloader\Controller\Index {}, "Add")
1. /var/www/html/lib/private/Route/Router.php line 298
   OC\AppFramework\App::main("IndexController", "Add", OC\AppFramework\ ... {}, ["ocdownloader.Index.Add"])
2. /var/www/html/lib/base.php line 1030
   OC\Route\Router->match("/apps/ocdownloader/add")
3. /var/www/html/index.php line 36
   OC::handleRequest()

GET /apps/ocdownloader/add
from xxx by xxx at 2022-09-14T23:02:26+00:00

{"reqId":"wkIhkhSRtnmfS7pTm37R","level":3,"time":"2022-09-14T23:02:26+00:00","remoteAddr":"xxx","user":"xxx","app":"index","method":"GET","url":"/apps/ocdownloader/add","message":"OC\\Files\\Utils\\Scanner::__construct(): Argument #4 ($logger) must be of type Psr\\Log\\LoggerInterface, OC\\Log given, called in /var/www/html/custom_apps/ocdownloader/controller/index.php on line 249 in file '/var/www/html/lib/private/Files/Utils/Scanner.php' line 95","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0","version":"24.0.5.1","exception":{"Exception":"Exception","Message":"OC\\Files\\Utils\\Scanner::__construct(): Argument #4 ($logger) must be of type Psr\\Log\\LoggerInterface, OC\\Log given, called in /var/www/html/custom_apps/ocdownloader/controller/index.php on line 249 in file '/var/www/html/lib/private/Files/Utils/Scanner.php' line 95","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\ocDownloader\\Controller\\Index"},"Add"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["IndexController","Add",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},["ocdownloader.Index.Add"]]},{"file":"/var/www/html/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/ocdownloader/add"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","Line":165,"Previous":{"Exception":"TypeError","Message":"OC\\Files\\Utils\\Scanner::__construct(): Argument #4 ($logger) must be of type Psr\\Log\\LoggerInterface, OC\\Log given, called in /var/www/html/custom_apps/ocdownloader/controller/index.php on line 249","Code":0,"Trace":[{"file":"/var/www/html/custom_apps/ocdownloader/controller/index.php","line":249,"function":"__construct","class":"OC\\Files\\Utils\\Scanner","type":"->","args":["xxx",{"__class__":"OC\\DB\\ConnectionAdapter"},{"__class__":"OC\\EventDispatcher\\EventDispatcher"},{"__class__":"OC\\Log"}]},{"file":"/var/www/html/custom_apps/ocdownloader/controller/index.php","line":91,"function":"syncDownloadsFolder","class":"OCA\\ocDownloader\\Controller\\Index","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":225,"function":"add","class":"OCA\\ocDownloader\\Controller\\Index","type":"->","args":[]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":133,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\ocDownloader\\Controller\\Index"},"Add"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":172,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\ocDownloader\\Controller\\Index"},"Add"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":298,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["IndexController","Add",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},["ocdownloader.Index.Add"]]},{"file":"/var/www/html/lib/base.php","line":1030,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/ocdownloader/add"]},{"file":"/var/www/html/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/lib/private/Files/Utils/Scanner.php","Line":95},"CustomMessage":"--"},"id":"63225d8d15223"}