Latest WpForo is th...
 
Notifications
Clear all

[Solved] Latest WpForo is throwing Fatal WooCommerce Subscription Payments Errors

3 Posts
2 Users
3 Likes
226 Views
Posts: 49
Topic starter
(@novedddd)
Trusted Member
Joined: 2 years ago

Everything was working just fine until we updated to the most recent version of wpforo (2.2.4)

It seems that a major fatal error stemming from the cache file is conflicting and/or preventing recurring subscription payments to run. We're running PHP 8 and latest version of Woocommerce (8.3.1)

 

Below is the error:

Uncaught Error: Typed property wpforo\classes\Cache::$dir must not be accessed before initialization in /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/wpforo/classes/Cache.php:346 Stack trace: #0 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/wpforo/includes/functions.php(2374): wpforo\classes\Cache->clean() #1 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/wpforo/classes/Members.php(1817): wpforo_clean_cache() #2 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/wpforo/classes/Members.php(3287): wpforo\classes\Members->reset() #3 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/wpforo/includes/hooks.php(2088): wpforo\classes\Members->set_secondary_groupids() #4 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/wpforo/includes/hooks.php(2211): wpforo_synch_user_roles() #5 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(324): wpforo_update_usergroup_on_role_change() #6 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /kunder/serveb_12557/tapeo_12882/public/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-user.php(562): do_action() #9 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-user-functions.php(91): WP_User->add_role() #10 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-user-functions.php(40): wcs_update_users_role() #11 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/wcs-user-functions.php(52): wcs_maybe_make_user_inactive() #12 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(324): wcs_maybe_make_user_inactive_for() #13 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #14 /kunder/serveb_12557/tapeo_12882/public/wp-includes/plugin.php(517): WP_Hook->do_action() #15 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscription.php(573): do_action() #16 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce/includes/class-wc-order.php(253): WC_Subscription->status_transition() #17 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/class-wc-subscription.php(531): WC_Order->save() #18 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/includes/class-wcs-paypal-standard-ipn-handler.php(301): WC_Subscription->update_status() #19 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/includes/class-wcs-paypal-standard-ipn-handler.php(66): WCS_PayPal_Standard_IPN_Handler->process_ipn_request() #20 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce-subscriptions/vendor/woocommerce/subscriptions-core/includes/gateways/paypal/class-wcs-paypal.php(337): WCS_PayPal_Standard_IPN_Handler->valid_response() #21 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(324): WCS_PayPal::process_ipn_request() #22 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #23 /kunder/serveb_12557/tapeo_12882/public/wp-includes/plugin.php(517): WP_Hook->do_action() #24 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/class-wc-gateway-paypal-ipn-handler.php(49): do_action() #25 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(324): WC_Gateway_Paypal_IPN_Handler->check_response() #26 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #27 /kunder/serveb_12557/tapeo_12882/public/wp-includes/plugin.php(517): WP_Hook->do_action() #28 /kunder/serveb_12557/tapeo_12882/public/wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action() #29 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(324): WC_API->handle_api_requests() #30 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #31 /kunder/serveb_12557/tapeo_12882/public/wp-includes/plugin.php(565): WP_Hook->do_action() #32 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp.php(418): do_action_ref_array() #33 /kunder/serveb_12557/tapeo_12882/public/wp-includes/class-wp.php(813): WP->parse_request() #34 /kunder/serveb_12557/tapeo_12882/public/wp-includes/functions.php(1336): WP->main() #35 /kunder/serveb_12557/tapeo_12882/public/wp-blog-header.php(16): wp() #36 /kunder/serveb_12557/tapeo_12882/public/index.php(17): require('...') #37 {main} thrown

 

See the attached screenshot showing the woocommerce error logs

 

Please advise ASAP, thanks!

 

 

2 Replies
Robert
Posts: 10478
Admin
(@robert)
Support Team
Joined: 8 years ago

Hi @novedd,

Please update to 2.2.5 version. 

Posts: 49
Topic starter
(@novedddd)
Trusted Member
Joined: 2 years ago

Thank you. This seem to have solved the issue. I'm glad a fix was able to be released quickly.