nextcloud-printer
nextcloud-printer copied to clipboard
Exception: Call to a member function getLocalFile() on null
When printing, I get the following error in the logs:
Exception: Call to a member function getLocalFile() on null at lib/private/AppFramework/Http/Dispatcher.php line 159
0. lib/private/AppFramework/App.php line 157
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Printer\Controller\PrinterController {}, "printfile")
1. lib/private/Route/Router.php line 302
OC\AppFramework\App::main("OCA\\Printer\\Controller\\PrinterController", "printfile", OC\AppFramework\DependencyInjection\DIContainer {}, {_route:"printer.printer.printfile"})
2. lib/base.php line 993
OC\Route\Router->match("\/apps\/printer\/printfile")
3. index.php line 37
OC::handleRequest()
Caused by Error: Call to a member function getLocalFile() on null at lib/private/Files/Filesystem.php line 557
0. custom_apps/printer/lib/Controller/PrinterController.php line 31
OC\Files\Filesystem::getLocalFile("REDACTED_FILENAME")
1. lib/private/AppFramework/Http/Dispatcher.php line 218
OCA\Printer\Controller\PrinterController->printfile("REDACTED_FILENAME", "landscape")
2. lib/private/AppFramework/Http/Dispatcher.php line 127
OC\AppFramework\Http\Dispatcher->executeController(OCA\Printer\Controller\PrinterController {}, "printfile")
3. lib/private/AppFramework/App.php line 157
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Printer\Controller\PrinterController {}, "printfile")
4. lib/private/Route/Router.php line 302
OC\AppFramework\App::main("OCA\\Printer\\Controller\\PrinterController", "printfile", OC\AppFramework\DependencyInjection\DIContainer {}, {_route:"printer.printer.printfile"})
5. lib/base.php line 993
OC\Route\Router->match("\/apps\/printer\/printfile")
6. index.php line 37
OC::handleRequest()
And it just keeps spinning
I can confirm the error with the actual Nextcloud 22.2.0.
I have same error with Nextcoud version 22.2.2.0
still there on Nextcloud 24
Too bad, seems that app is abandoned.
@e-alfred is there a chance we get this fixed at some point?