nextcloud-printer icon indicating copy to clipboard operation
nextcloud-printer copied to clipboard

Exception: Call to a member function getLocalFile() on null

Open mehdibo opened this issue 3 years ago • 4 comments

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

mehdibo avatar Mar 01 '21 13:03 mehdibo

I can confirm the error with the actual Nextcloud 22.2.0.

RealKoenisch avatar Nov 09 '21 15:11 RealKoenisch

I have same error with Nextcoud version 22.2.2.0

alghanim-lab avatar Dec 11 '21 12:12 alghanim-lab

still there on Nextcloud 24

alemairebe avatar May 22 '22 16:05 alemairebe

Too bad, seems that app is abandoned.

@e-alfred is there a chance we get this fixed at some point?

FadeFx avatar Sep 23 '23 15:09 FadeFx