-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
PHP Fatal error: Uncaught TypeError: Argument 1 passed to Symfony\Component\Console\Helper\ProgressBar::advance() must be of the type integer, null given #49
Comments
This looks like the phar isn't pulling in configuration correctly from the default config location as I'm experiencing this too with the phar on test. I think there is an error in acquiacli-robo.php which I'm going to create a PR for now. We can add in disabling the progress bar as a separate feature request if you'd like. Please feel free to create that ticket and I'll get to it when I have some time. I'm also happy for a PR to be contributed if you have specific ideas around how implementation for that would work. |
I'm deploying |
Thanks for the quick fix! |
This was caused last time by config not being passed through correctly. How did you install this one? It looks like it's installed globally with composer.
|
What's happening here is that the right config files aren't being found which control things like timezone, task timeout etc. This is failing when the tool waits for a notification (https://github.com/typhonius/acquia_cli/blob/master/src/Commands/AcquiaCommand.php#L168-L184). The |
Ok, based on what you said, I moved the config file from the project directory to the $HOME/.acquiacli directory and the command works. For now I can do that file move via our ci environment (docker build) commands and things should go ok! thank you. |
#56 I've put this in as it might assuage your issues. |
$root depends on where the library is. If it’s a phar, it’s the phar path, if it’s on it’s own in a git clone, it’s the root of the clone, if it’s required as part of another package, its the root of that package. I think it was probably a bug to have the default config associated with root as it’s position will never change. |
Describe the bug
Getting a PHP Fatal error as soon as a progress bar appears, when attempting to use many cloud operations, using the latest 2.0.2 PHAR.
Full error:
To Reproduce
Steps to reproduce the behavior including calling code:
acquiacli deploy:prepare
andacquiacli code:switch
under both PHP7.2 and 7.3, and got the same exact error.Expected behavior
Command to complete successfully.
Screenshots
Desktop (please complete the following information):
Additional context
Trying to set up for a CI/CD system... is there a switch to disable the progress bar? I tried passing -y, -n, --ansi, and even --progress-delay=600s with no difference in the output.
The text was updated successfully, but these errors were encountered: