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

The "user" option does not exist #310

Closed
shasta123 opened this issue Jun 23, 2022 · 10 comments · Fixed by #312
Closed

The "user" option does not exist #310

shasta123 opened this issue Jun 23, 2022 · 10 comments · Fixed by #312
Assignees

Comments

@shasta123
Copy link

Hi,

I just noticed (after upgrading to NC 24) that occ sharing:list constantly outputs

The "user" option does not exist.

no matter what options (if any) I specify.

On first glance I spot nothing in the log file.

Cheers,
Michael

@support-tt
Copy link

Same Problem here Nextcloud:

php occ status
  - installed: true
  - version: 24.0.0.12
  - versionstring: 24.0.0
  - edition: 
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud
  - extendedSupport: false
php occ sharing:list --user admin                        
The "user" option does not exist.  
sharing:list [-u|--user [USER]] [-p|--path [PATH]] [-t|--token [TOKEN]] [-f|--filter [FILTER]]
php occ sharing:list -u admin
The "user" option does not exist.  
sharing:list [-u|--user [USER]] [-p|--path [PATH]] [-t|--token [TOKEN]] [-f|--filter [FILTER]]

@th0ger
Copy link

th0ger commented Jun 27, 2022

Same issue here, first time user.

$ php occ status
  - installed: true
  - version: 24.0.2.1
  - versionstring: 24.0.2
  - edition:
  - maintenance: false
  - needsDbUpgrade: false
  - productname: Nextcloud
  - extendedSupport: false

@Rdenney1967
Copy link

Same here

  • installed: true
  • version: 24.0.2.1
  • versionstring: 24.0.2
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false

@CarlSchwan
Copy link
Member

Fix incomming #312

@kroerig
Copy link

kroerig commented Jul 4, 2022

Are you shure, that this fixes the problem?
I change the function from public to proteced manually and got the following error:
PHP Fatal error: Access level to OCA\ShareListing\Command\ListShares::run() must be public (as in class OC\Core\Command\Base) in html/nextcloud/apps/sharelisting/lib/Command/ListShares.php on line 94

@CarlSchwan
Copy link
Member

Are you shure, that this fixes the problem? I change the function from public to proteced manually and got the following error: PHP Fatal error: Access level to OCA\ShareListing\Command\ListShares::run() must be public (as in class OC\Core\Command\Base) in html/nextcloud/apps/sharelisting/lib/Command/ListShares.php on line 94

You need to also change run to execute and add :int at the end

@kroerig
Copy link

kroerig commented Jul 4, 2022

Ok.
But now I get a new error:

An unhandled exception has been thrown:
TypeError: Return value of OCA\ShareListing\Command\ListShares::execute() must be of the type int, none returned in /html/nextcloud/apps/sharelisting/lib/Command/ListShares.php:123
Stack trace:
#0 /html/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\ShareListing\Command\ListShares->execute()
#1 /html/nextcloud/core/Command/Base.php(168): Symfony\Component\Console\Command\Command->run()
#2 /html/nextcloud/3rdparty/symfony/console/Application.php(1009): OC\Core\Command\Base->run()
#3 /html/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#4 /html/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#5 /html/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#6 /html/nextcloud/console.php(99): OC\Console\Application->run()
#7 /html/nextcloud/occ(11): require_once('/var/www/share....')
#8 {main}

@CarlSchwan
Copy link
Member

return 0; at the end of the method :) See the changes in https://github.com/nextcloud/sharelisting/pull/312/files

@pReya
Copy link

pReya commented Jul 13, 2022

@CarlSchwan I have the same problem. I just installed the app from the store (App v1.1.0 Nextcloud 23.0.6). Have the fixes in #312 not landed in a release, yet? Any way to run the version from master branch, if there's no release, yet?

@nursoda
Copy link
Contributor

nursoda commented Jul 15, 2022

I confirm that 1.1.1 fixes the issue for me. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants