e-alfred / nextcloud-printer

App to allow direct printing from Nextcloud through LPR/CUPS-connected printers
GNU General Public License v3.0
23 stars 9 forks source link

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

Open mehdibo opened 3 years ago

mehdibo commented 3 years ago

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

RealKoenisch commented 2 years ago

I can confirm the error with the actual Nextcloud 22.2.0.

alghanim-lab commented 2 years ago

I have same error with Nextcoud version 22.2.2.0

alemairebe commented 2 years ago

still there on Nextcloud 24

FadeFx commented 9 months ago

Too bad, seems that app is abandoned.

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