GiveWP should not cause fatal errors when using WP-CLI
complete
Ben Meredith
When running wp-cli commands on a site with the latest version of GiveWP installed, I’m getting the following PHP fatal error:
PHP Fatal error: Uncaught ReflectionException: Class Faker\Generator does not exist in /wp-content/plugins/give/src/Container/Container.php:744
This only appears using wp-cli and doesn’t appear using –skip-plugins –skip-themes, but thought you should know.
Jason Adams
complete
I'm happy to report this has been resolved in the new 2.9.7 release. 🎉
Drew H
I'm seeing the same problem:
[09-Feb-2021 20:59:02 UTC] PHP Fatal error: Uncaught ReflectionException: Class Faker\Generator does not exist in /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php:744
Stack trace:
#0 /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php(744): ReflectionParameter->getClass()
#1 /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php(707): Give\Container\Container->resolveDependencies(Array)
#2 /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php(595): Give\Container\Container->build('Give\\TestData\\F...')
#3 /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php(538): Give\Container\Container->resolve('Give\\TestData\\F...', Array)
#4 /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php(821): Give\Container\Conta in /home/customer/www/public_html/wp-content/plugins/give/src/Container/Container.php on line 744
Ben Meredith
in progress