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

customer:delete Fatal php error #642

Closed
danshumaker opened this issue Aug 14, 2015 · 4 comments
Closed

customer:delete Fatal php error #642

danshumaker opened this issue Aug 14, 2015 · 4 comments
Assignees
Labels

Comments

@danshumaker
Copy link

I'm getting this error with magerun 1.97.4 (installed from downloaded phar file) and 1.96.1 (installed via composer) when I do a customer:delete --all

PHP Fatal error:  Call to undefined method Symfony\Component\Console\Helper\DialogHelper::getQuestion() in phar:///Users/dan/bin/php/n98-magerun.phar/src/N98/Magento/Command/Customer/DeleteCommand.php on line 187
PHP Stack trace:
PHP   1. {main}() /Users/dan/bin/php/n98-magerun.phar:0
PHP   2. N98\Magento\Application->run() /Users/dan/bin/php/n98-magerun.phar:8
PHP   3. Symfony\Component\Console\Application->run() phar:///Users/dan/bin/php/n98-magerun.phar/src/N98/Magento/Application.php:643
PHP   4. N98\Magento\Application->doRun() phar:///Users/dan/bin/php/n98-magerun.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:126
PHP   5. Symfony\Component\Console\Application->doRun() phar:///Users/dan/bin/php/n98-magerun.phar/src/N98/Magento/Application.php:583
PHP   6. Symfony\Component\Console\Application->doRunCommand() phar:///Users/dan/bin/php/n98-magerun.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:195
PHP   7. N98\Magento\Command\AbstractMagentoCommand->run() phar:///Users/dan/bin/php/n98-magerun.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:882
PHP   8. Symfony\Component\Console\Command\Command->run() phar:///Users/dan/bin/php/n98-magerun.phar/src/N98/Magento/Command/AbstractMagentoCommand.php:430
PHP   9. N98\Magento\Command\Customer\DeleteCommand->execute() phar:///Users/dan/bin/php/n98-magerun.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:257
PHP  10. N98\Magento\Command\Customer\DeleteCommand->shouldRemove() phar:///Users/dan/bin/php/n98-magerun.phar/src/N98/Magento/Command/Customer/DeleteCommand.php:168
@ktomk ktomk added the bug label Aug 15, 2015
@ktomk ktomk self-assigned this Aug 15, 2015
@ktomk
Copy link
Collaborator

ktomk commented Aug 15, 2015

Thanks for reporting the issue.

Funny, I just had the same error yesterday (just created #643) . There is a fix already available (you can track process here: #644) which will become part of the unstable version within the next few hours, I'll post here again.

ktomk added a commit to ktomk/n98-magerun that referenced this issue Aug 15, 2015
In b5c7137 the customer:delete command was introducted. It made use of an
Dialog helper that had the getQuestion() method.

The current Dialog helper does not have such a method any longer. Now the
Dialog helper is:

   Symfony\Component\Console\Helper\DialogHelper

which is deprecated.

Fix is to not call that method any longer. Instead a private helper
method is called which returns the string of the question.

Closes netz98#643
Closes netz98#642
@ktomk
Copy link
Collaborator

ktomk commented Aug 15, 2015

This has been fixed in the development version (unstable) and the fix will be part of the next stable release.

Please let me know if you're able to test this with the unstable version or not.

@ktomk ktomk closed this as completed Aug 15, 2015
@danshumaker
Copy link
Author

Hi Ktomk, Yes, using the latest dev build, customer:delete --all works without error!!! Woo Hoo! Thanks!

@ktomk
Copy link
Collaborator

ktomk commented Aug 17, 2015

Great feedback! Just FYI: Feel free to use the latest stable build as well, the fix for the fatal error made it into stable (1.97.5) before Monday.

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

No branches or pull requests

2 participants