Script: magento setup:install ..db-name=....... --db-user=.... ---and --and
OS: 4.4.0-19041-Microsoft #1-Microsoft Fri Dec 06 14:06:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux (Ubuntu from microsoft store)
XDebug: 3.0.0-dev Support Xdebug on Patreon, GitHub, or as a business: https://xdebug.org/support
(compiled by phpize/configue ..../make.....)
PHP Fatal error: Uncaught Error: Call to undefined function xdebug_disable() in /var/www/m2/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php:78
Hi @engcom-Lima. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
Hello @AndyP1965
Could you provide more details for reproduce this issue?
Please add steps to reproduce and version of magento.
Thank you!
@AndyP1965, we are closing this issue due to inactivity. If you'd like to update it, please reopen the issue.
I just ran into this issue myself. To reproduce it, install Xdebug 3 on PHP 7.3 or 7.4 with Magento 2.4 and MFTF 3.1.1 and run any bin/magento
command. It's also breaking PHPCS in PhpStorm.
Seems to be related to new xdebug v3.0.0
For the moment, I did a quick composer remove magento/magento2-functional-testing-framework
and that seems to make my dev environment work again. But this is surely a temporary fix...
Issue is followed there: https://github.com/magento/magento2-functional-testing-framework/issues/808
Any way to downgrade Xdebug?
pecl install -f xdebug-2.9.8
vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/_bootstrap.php
Replace:
if (!(bool)$debugMode && extension_loaded('xdebug')) {
xdebug_disable();
}
By:
if (!(bool)$debugMode && extension_loaded('xdebug')) {
if (function_exists('xdebug_disable')) {
xdebug_disable();
}
}
I faced the same issue after updating and upgrading my Ubuntu server. I needed to downgrade xDebug version to fix this issue for Magento 2.4.1 and PHP7.4:
sudo pecl install -f xdebug-2.9.8
If you get “phpize: command not found” error, you can run pecl command again:
sudo apt-get install php7.4-dev
I use multiple PHP versions on my server. For older version like PHP7.3, you modified its php.ini file and add the path of xdebug-2.9.8. On ubuntu, I edited php.ini by running:
sudo vi /etc/php/7.3/fpm/conf.d/20-xdebug.ini
and added:
zend_extension=/usr/lib/php/20190902/xdebug.so
@wasimhc I have the same issue. We downgraded our xdebug aswel to 2.9. It would be awesome if this can be resolved. Since it now adds a lot of errors to my console. Can this ticket be reopened.
@leonhelmus How are you sure xDebug has been downgraded to 2.9.8 or 2.9 at your end?
Most helpful comment
pecl install -f xdebug-2.9.8