nextcloud / documentserver_community

Document server for onlyoffice
https://apps.nextcloud.com/apps/documentserver_community
128 stars 29 forks source link

Error When 'occ documentserver:flush' #326

Open bpruneau opened 2 months ago

bpruneau commented 2 months ago
$ php occ documentserver:flush
An unhandled exception has been thrown:
TypeError: Return value of "OCA\DocumentServer\Command\FlushChanges::execute()" must be of the type int, "null" returned. in /home/itzvfozw/public_html/3rdparty/symfony/console/Command/Command.php:301
Stack trace:
#0 /home/itzvfozw/public_html/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /home/itzvfozw/public_html/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /home/itzvfozw/public_html/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OCA\DocumentServer\Command\FlushChanges), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /home/itzvfozw/public_html/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /home/itzvfozw/public_html/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /home/itzvfozw/public_html/console.php(100): OC\Console\Application->run()
#6 /home/itzvfozw/public_html/occ(11): require_once('/home/itzvfozw/...')

$ php -v
PHP 8.1.28 (cli) (built: Apr 18 2024 08:52:48) (NTS)
bpruneau commented 2 months ago

I had lots of errors in my log file and I think it is related: image