CRITICAL Error: Call to a member function request() on null
-
Woocommerce version: 5.0.0
Wordpress version: 5.6.2
PHP version: 7.4.9ActiveCampaign for Woocommerce:
State: Active
API Key and URL: not defined, blank.
Version: 1.3.0ActiveCampaign:
State: Active
API Key and URL: defined.
Version: 8.1.5The problem:
1. For a moment, between plugin activation and API key/url setup, selling operation is broken by this plugin.CRITICAL Error when finishing payment.
Result:
– Order creation is interrupted
– Customer returns to payment page without any confirmation
– Payment gateway don’t receive the request, as php crash firstSeems that if this plugin is activated without api key/url, the request() function try to request on null, throwing an unhandled exception.
2021-03-07T01:39:31+00:00 CRITICAL Uncaught Error: Call to a member function request() on null in /var/www/html/wp-content/plugins/activecampaign-for-woocommerce/includes/api-client/class-activecampaign-for-woocommerce-api-client.php:400
Stack trace:
#0 /var/www/html/wp-content/plugins/activecampaign-for-woocommerce/includes/traits/class-activecampaign-for-woocommerce-interacts-with-api-trait.php(169): Activecampaign_For_Woocommerce_Api_Client->execute()
#1 /var/www/html/wp-content/plugins/activecampaign-for-woocommerce/includes/repositories/class-activecampaign-for-woocommerce-ecom-customer-repository.php(132): Activecampaign_For_Woocommerce_Ecom_Customer_Repository->get_result_set_from_api_by_filter()
#2 /var/www/html/wp-content/plugins/activecampaign-for-woocommerce/includes/events/class-activecampaign-for-woocommerce-order-finished-event.php(339): Activecampaign_For_Woocommerce_Ecom_Customer_Repository->find_by_email_and_connection_id()
#3 /var/www/html/wp-content/plugins/activecampaign-for-woocommerce/includes/events/class-activecampaign-, em /var/www/html/wp-content/plugins/activecampaign-for-woocommerce/includes/api-client/class-activecampaign-for-woocommerce-api-client.php, na linha 400
- The topic ‘CRITICAL Error: Call to a member function request() on null’ is closed to new replies.