Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCA\GroupFolders\Command\ListCommand::execute() must be of the type int, null returned #1281

Closed
francoisPE opened this issue Feb 10, 2021 · 7 comments
Labels
0. Needs triage Issues that need to be triaged bug feature: occ Items related to the OCC CLI interface low low priority

Comments

@francoisPE
Copy link

francoisPE commented Feb 10, 2021

Hello,
When I run groupfolders CLI command I have always same error.
In web interface seems to work !

Example of command

 php occ groupfolders:list
 php occ groupfolders:quota 1 10G

Error

An unhandled exception has been thrown:
TypeError: Return value of "OCA\GroupFolders\Command\ListCommand::execute()" must be of the type int, "null" returned.                                        in /var/mypath/apps/mail/vendor/symfony/console/Command/Command.php:258
Stack trace:
#0 /var/mypath/core/Command/Base.php(169): Symfony\Component\Console\Command\Command->run()
#1 /var/mypath/apps/mail/vendor/symfony/console/Application.php(971): OC\Core\Command\Base->run(                                       )
#2 /var/mypath/apps/mail/vendor/symfony/console/Application.php(290): Symfony\Component\Console\                                       Application->doRunCommand()
#3 /var/mypath/apps/mail/vendor/symfony/console/Application.php(166): Symfony\Component\Console\                                       Application->doRun()
#4 /var/mypath/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->                                       run()
#5 /var/mypath/console.php(100): OC\Console\Application->run()
#6 /var/mypath/occ(11): require_once('/mypath...')
@francoisPE

This comment has been minimized.

@solracsf solracsf changed the title An unhandled exception has been thrown: "OCA\GroupFolders\Command\ListCommand::execute()" must be of the type int, "null" returned Feb 17, 2021
@kowalski7cc
Copy link

It happens to me on occ groupfolders:scan 3 -vvv

An unhandled exception has been thrown:
TypeError: Return value of "OCA\GroupFolders\Command\Scan::execute()" must be of the type int, "null" returned. in /var/www/html/custom_apps/mail/vendor/symfony/console/Command/Command.php:258
Stack trace:
#0 /var/www/html/core/Command/Base.php(169): Symfony\Component\Console\Command\Command->run()
#1 /var/www/html/custom_apps/mail/vendor/symfony/console/Application.php(971): OC\Core\Command\Base->run()
#2 /var/www/html/custom_apps/mail/vendor/symfony/console/Application.php(290): Symfony\Component\Console\Application->doRunCommand()
#3 /var/www/html/custom_apps/mail/vendor/symfony/console/Application.php(166): Symfony\Component\Console\Application->doRun()
#4 /var/www/html/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#5 /var/www/html/console.php(100): OC\Console\Application->run()
#6 /var/www/html/occ(11): require_once('/var/www/html/c...')
#7 {main}

@francoisPE
Copy link
Author

francoisPE commented Feb 23, 2021

Hello,
I confirm today :

php occ groupfolders:create Sharedfolder

gives

An unhandled exception has been thrown:
TypeError: Return value of "OCA\GroupFolders\Command\Create::execute()" must be of the type int, "null" returned. in /mypath/apps/mail/vendor/symfony/console/Command/Command.php:258

and

php occ groupfolders:quota 1 100G

gives

An unhandled exception has been thrown:
TypeError: Return value of "OCA\GroupFolders\Command\Quota::execute()" must be of the type int, "null" returned. in /mypath/apps/mail/vendor/symfony/console/Command/Command.php:258

Versions
       "groupfolders": {
            "enabled": "yes",
            "installed_version": "8.2.0",
            "types": "filesystem,dav"
        },
        "groupquota": {
            "enabled": "yes",
            "installed_version": "0.1.4",
            "types": "filesystem"

Many thanks for your help in building a workaround

@vasyugan
Copy link

If more confirmations are needed: I see the same, with two Nextcloud instances using PHP 7.4 on Ubuntu 20.04

@pierreozoux
Copy link
Member

@vasyugan and @francoisPE cam you specify your Nc and groupfolder version?

@pierreozoux pierreozoux added low low priority feature: occ Items related to the OCC CLI interface 0. Needs triage Issues that need to be triaged labels Mar 10, 2021
@francoisPE
Copy link
Author

My conf
NC 20.0.7
groupfolders 8.2.0

@solracsf solracsf changed the title "OCA\GroupFolders\Command\ListCommand::execute()" must be of the type int, "null" returned OCA\GroupFolders\Command\ListCommand::execute() must be of the type int, null returned Apr 16, 2021
@fschrempf
Copy link
Contributor

This looks like a duplicate of the already fixed #1153. Please reopen or create a new issue if this is wrong. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged bug feature: occ Items related to the OCC CLI interface low low priority
Projects
None yet
Development

No branches or pull requests

5 participants