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

[Bug]: Error: Undefined constant Symfony\Component\Console\Input\InputOption::VALUE_NEGATABLE #45099

Closed
5 of 8 tasks
Quix0r opened this issue Apr 29, 2024 · 1 comment
Closed
5 of 8 tasks
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug

Comments

@Quix0r
Copy link

Quix0r commented Apr 29, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

After upgrading from 28 to 29, I got this error:

$ ./occ app:update --all
An unhandled exception has been thrown:
Error: Undefined constant Symfony\Component\Console\Input\InputOption::VALUE_NEGATABLE in /var/www/.../core/Command/Config/App/SetConfig.php:76
Stack trace:
#0 /var/www/.../apps/sharerenamer/vendor/symfony/console/Command/Command.php(77): OC\Core\Command\Config\App\SetConfig->configure()
#1 /var/www/.../core/Command/Config/App/SetConfig.php(41): Symfony\Component\Console\Command\Command->__construct()
#2 [internal function]: OC\Core\Command\Config\App\SetConfig->__construct()
#3 /var/www/.../lib/private/AppFramework/Utility/SimpleContainer.php(83): ReflectionClass->newInstanceArgs()
#4 /var/www/.../lib/private/AppFramework/Utility/SimpleContainer.php(128): OC\AppFramework\Utility\SimpleContainer->buildClass()
#5 /var/www/.../lib/private/AppFramework/Utility/SimpleContainer.php(146): OC\AppFramework\Utility\SimpleContainer->resolve()
#6 /var/www/.../lib/private/ServerContainer.php(173): OC\AppFramework\Utility\SimpleContainer->query()
#7 /var/www/.../lib/private/AppFramework/Utility/SimpleContainer.php(64): OC\ServerContainer->query()
#8 /var/www/.../lib/public/Server.php(55): OC\AppFramework\Utility\SimpleContainer->get()
#9 /var/www/.../core/register_command.php(96): OCP\Server::get()
#10 /var/www/.../lib/private/Console/Application.php(107): require_once('...')
#11 /var/www/.../console.php(112): OC\Console\Application->loadCommands()
#12 /var/www/.../occ(11): require_once('...')

But the constant is there, so it looks like Nextcloud (never done before) has loaded some other Symfony? I have already checked my include paths, there is no other installed.

Steps to reproduce

  1. I just upgraded from 28.0.5 to 29.0.0 release

Expected behavior

The command should run with no flaws.

Installation method

Community Manual installation with Archive

Nextcloud Server version

29.0.0

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Apache (supported)

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

@Quix0r Quix0r added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 29, 2024
@solracsf
Copy link
Member

See JonathanTreffler/sharerenamer#270 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug
Projects
None yet
Development

No branches or pull requests

2 participants