Fatal error with 2.21.2: method __invoke does not exist
-
Hi,
We’ve had to downgrade to 2.21.0, because the latest version triggers a fatal error on our website. This caused the website as well as the admin backend to become unavailable.
Please look into this with some matter of urgency; if this happened to us, it’s likely to happen to others who upgrade regularly as well.
PHP Fatal error: Uncaught Give\Framework\Exceptions\Primitives\InvalidArgumentException: The method __invoke does not exist on Give\Promotions\FreeAddonModal\Controllers\PreventFreshInstallPromotion in ./wp-content/plugins/give/src/Helpers/Hooks.php:27
Stack trace:
#0 ./wp-content/plugins/give/src/Promotions/ServiceProvider.php(68): Give\Helpers\Hooks::addAction()
#1 ./wp-content/plugins/give/src/Promotions/ServiceProvider.php(35): Give\Promotions\ServiceProvider->bootFreeAddonModal()
#2 ./wp-content/plugins/give/give.php(420): Give\Promotions\ServiceProvider->boot()
#3 ./wp-content/plugins/give/give.php(255): Give->loadServiceProviders()
#4 ./wp-includes/class-wp-hook.php(307): Give->init()
#5 / in ./wp-content/plugins/give/src/Helpers/Hooks.php on line 27PHP Fatal error: Uncaught Give\Framework\Exceptions\Primitives\InvalidArgumentException: The method __invoke does not exist on Give\Promotions\FreeAddonModal\Controllers\PreventFreshInstallPromotion in ./wp-content/plugins/give/src/Helpers/Hooks.php:27
Stack trace:
#0 ./wp-content/plugins/give/src/Promotions/ServiceProvider.php(68): Give\Helpers\Hooks::addAction()
#1 ./wp-content/plugins/give/src/Promotions/ServiceProvider.php(35): Give\Promotions\ServiceProvider->bootFreeAddonModal()
#2 ./wp-content/plugins/give/give.php(420): Give\Promotions\ServiceProvider->boot()
#3 ./wp-content/plugins/give/give.php(255): Give->loadServiceProviders()
#4 ./wp-includes/class-wp-hook.php(307): Give->init()
#5 / in ./wp-content/plugins/give/src/Helpers/Hooks.php on line 27The error occured with these plugin versions:
give 2.21.2 give-google-analytics 1.2.5 give-manual-donations 1.6.0 give-mollie 1.2.4 give-recurring 1.15.0 givewp-donation-widgets-for-elementor 1.1.1
- The topic ‘Fatal error with 2.21.2: method __invoke does not exist’ is closed to new replies.