keeporsweep / keeporsweep.net

💻🔀🗑️ Randomly declutter your digital life!
http://keeporsweep.net
GNU Affero General Public License v3.0
73 stars 9 forks source link

KeepOrSweep 0.2.1 on NextCloud - Call to a member function getDirectoryContent() on null #11

Open boyddensmore opened 3 years ago

boyddensmore commented 3 years ago

Hi there, I've just installed KeepOrSweep on Nextcloud 22.1.1.2 and when I enter the application everything looks OK but no file loads. Looking at the Nextcloud logs I get the following error. Clicking Keep or Sweep does nothing, as the directory contents haven't been loaded and a file hasn't been picked. Let me know if there's any other info I can provide.

OS: Debian Linux 5.10.63-v8+ aarch64 GNU/Linux Apache: Apache/2.4.38 (Raspbian) PHP: 7.3.29-1~deb10u1 (cli)

{"reqId":"YUjObhf5d3aIpY40GzaupwAASSM"
    "level":3
    "time":"2021-09-20T18:09:50+00:00"
    "remoteAddr": [[REDACTED]]
    "user":[[REDACTED]]
    "app":"index"
    "method":"GET"
    "url":"/index.php/apps/keeporsweep/files"
    "message":"Call to a member function getDirectoryContent() on null"
    "userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0"
    "version":"22.1.1.2"
    "exception":{"Exception":"Exception"
    "Message":"Call to a member function getDirectoryContent() on null"
    "Code":0
    "Trace":[{"file":"/media/data/www/nextcloud/lib/private/AppFramework/App.php"
    "line":156
    "function":"dispatch"
    "class":"OC\\AppFramework\\Http\\Dispatcher"
    "type":"->"
    "args":[{"__class__":"OCA\\KeepOrSweep\\Controller\\ApiController"}
    "files"]}
{"file":"/media/data/www/nextcloud/lib/private/Route/Router.php"
    "line":301
    "function":"main"
    "class":"OC\\AppFramework\\App"
    "type":"::"
    "args":["OCA\\KeepOrSweep\\Controller\\ApiController"
    "files"
    {"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"}
    {"_route":"keeporsweep.api.files"}]}
{"file":"/media/data/www/nextcloud/lib/base.php"
    "line":1000
    "function":"match"
    "class":"OC\\Route\\Router"
    "type":"->"
    "args":["/apps/keeporsweep/files"]}
{"file":"/media/data/www/nextcloud/index.php"
    "line":36
    "function":"handleRequest"
    "class":"OC"
    "type":"::"
    "args":[]}]
"File":"/media/data/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
    "Line":158
    "Previous":{"Exception":"Error"
    "Message":"Call to a member function getDirectoryContent() on null"
    "Code":0
    "Trace":[{"file":"/media/data/www/nextcloud/apps/keeporsweep/lib/Controller/ApiController.php"
    "line":25
    "function":"getDirectoryContent"
    "class":"OC\\Files\\Filesystem"
    "type":"::"
    "args":[""]}
{"file":"/media/data/www/nextcloud/apps/keeporsweep/lib/Controller/ApiController.php"
    "line":14
    "function":"getFilesRecursive"
    "class":"OCA\\KeepOrSweep\\Controller\\ApiController"
    "type":"->"
    "args":[]}
{"file":"/media/data/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
    "line":217
    "function":"files"
    "class":"OCA\\KeepOrSweep\\Controller\\ApiController"
    "type":"->"
    "args":[]}
{"file":"/media/data/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php"
    "line":126
    "function":"executeController"
    "class":"OC\\AppFramework\\Http\\Dispatcher"
    "type":"->"
    "args":[{"__class__":"OCA\\KeepOrSweep\\Controller\\ApiController"}
    "files"]}
{"file":"/media/data/www/nextcloud/lib/private/AppFramework/App.php"
    "line":156
    "function":"dispatch"
    "class":"OC\\AppFramework\\Http\\Dispatcher"
    "type":"->"
    "args":[{"__class__":"OCA\\KeepOrSweep\\Controller\\ApiController"}
    "files"]}
{"file":"/media/data/www/nextcloud/lib/private/Route/Router.php"
    "line":301
    "function":"main"
    "class":"OC\\AppFramework\\App"
    "type":"::"
    "args":["OCA\\KeepOrSweep\\Controller\\ApiController"
    "files"
    {"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"}
    {"_route":"keeporsweep.api.files"}]}
{"file":"/media/data/www/nextcloud/lib/base.php"
    "line":1000
    "function":"match"
    "class":"OC\\Route\\Router"
    "type":"->"
    "args":["/apps/keeporsweep/files"]}
{"file":"/media/data/www/nextcloud/index.php"
    "line":36
    "function":"handleRequest"
    "class":"OC"
    "type":"::"
    "args":[]}]
"File":"/media/data/www/nextcloud/lib/private/Files/Filesystem.php"
    "Line":865}
    "CustomMessage":"--"}
    "id":"6148ce7a756c5"}
hosea1008 commented 2 years ago

Yeah, I got the same error