And this error too (See picture)
Now we are have some styling issues as well on check out, see pictures attached and also a syntax error that was thrown out when a customer completed the order.
I added the code and also fixed the cart page .
Please check and confirm.
About the code we are sure that it will work when user purchases a membership but we are not sure that it will work in case cancellations co we did not know the exact hook to be implemented on cancellations .
For that can please contact the woocommerce subscriptions plugin ?
Just need to run " bp_course_disable_access " function on the cacelaations hook and it accepts order_id as parameter .