This is a great module and was working well for me until today. I had to reset some store configurations and create new subscription products. After I did this, purchasing subscriptions did not work and the site generated errors when trying to purchase any subscription item.
The following error is seen by the user when attempting to add a subscription item to the cart while Commerce Limit Subscription is enabled. The user sees a status message saying the item is added to the cart but the cart is cleared.
Deprecated function: Creation of dynamic property Drupal\commerce_limit_subscriptions\EventSubscriber\LimitSubscriptions::$stringTranslation is deprecated in Drupal\commerce_limit_subscriptions\EventSubscriber\LimitSubscriptions->__construct() (line 106 of modules/contrib/commerce_limit_subscriptions/src/EventSubscriber/LimitSubscriptions.php).
In the logs, this is followed by the following error:
Error: Call to a member function getItems() on null in Drupal\commerce_limit_subscriptions\EventSubscriber\LimitSubscriptions->limitSubscriptions() (line 156 of /var/www/html/rabblevent/web/modules/contrib/commerce_limit_subscriptions/src/EventSubscriber/LimitSubscriptions.php)
The user is then redirected to the checkout page and receives a 403 error because the cart is empty.
Disabling Commerce Limit Subscription resolves the error, but then there are no limits for subscriptions! Any help with a patch for this would be greatly appreciated!
Active
1.0
Miscellaneous