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

InvalidArgumentException #48

Open
BattleMoench opened this issue Jul 21, 2020 · 4 comments
Open

InvalidArgumentException #48

BattleMoench opened this issue Jul 21, 2020 · 4 comments

Comments

@BattleMoench
Copy link

i have an invalid argument exception now when using config:import command ([Symfony\Component\Console\Exception\InvalidArgumentException] The "shop" option does not exist. )

I am sure, that shop-config option has to defined in commando before requesting it in the core.

@BattleMoench
Copy link
Author

i added

        ->addOption(
    'shop',
    's',
    InputOption::VALUE_OPTIONAL,
    "test"
);

to commandbase and error is not poping up anymore

@alfredbez
Copy link

Which version of the oxid-console and oxid_modules_config do you use?

i have an invalid argument exception now [...]

What do you mean by now? Did you change something lately?

@alfredbez alfredbez changed the title InvalidArgumentAxception InvalidArgumentException Jul 21, 2020
@BattleMoench
Copy link
Author

modules-config: 6.0.0-beta5
oxid-console: 6.0.0-beta3
symfony/console: 2.8.3 (quite old ...)

i did some composer:install/update changes, nothing more. TeamMember do not see this error yet. Perhaps symfony console was updated. I am nearly sure, that i ran into https://github.com/symfony/console/blob/e4a70bd8c5a4382630197b7b87910b3fc0e6b526/Input/Input.php#L147, so providing a commando Option fixed the issue

@alfredbez
Copy link

Try to update to the latest version, the problem is known in the beta version and already fixed.

I recommend to use these versions in your composer.json:

oxid-professional-services/oxid-modules-config: "^6.0",
oxid-professional-services/oxid-console: "^6.0",

After you changed that in the composer.json you need to run composer update oxid-professional-services/oxid-console oxid-professional-services/oxid-modules-config to update both packages.

Let me know if that solved your issue or not.

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

No branches or pull requests

2 participants