- Added category restrictions for Listings
It’s now possible to apply restrictions to specific listing categories. - Added restriction filters to the Plans block
Plans can now be displayed based on content types and restrictions. - Added the plans link to the error messages
Now, users can click the link instead of searching for the Plans page. - Fixed redirect to the custom Plans page
There was an issue with preserving URL query parameters on redirect. - Fixed purchasing multiple plans at once
For multiple plans, all the linked WooCommerce products are fetched. - Fixed expiring multiple memberships
Memberships now expire in randomly selected batches for consistency. - Fixed template-specific Plans block
This block now shows only relevant settings when used in a template.
URGENT - Memberships 2.2.0 caused a fatal error on our live site.
Error: Call to protected method HivePress\Components\Attribute::get_category_id() from scope HivePress\Components\Membership
File: hivepress-memberships/includes/components/class-membership.php on line 1338
Method: redirect_model_view_page()
Stack trace: The Membership component calls Attribute::get_category_id() which is a protected method in the Attribute class, so it’s not accessible from the Membership class.
This crashed the entire frontend of the live site. We had to deactivate the Memberships plugin to restore the site.
HivePress version: 1.7.22
Memberships version: 2.2.0
WordPress: 6.9.1
PHP: 8.4
Sorry for the inconvenience – this error should affect the listing archive pages only (search/category pages), and only if there’s an old version of HivePress. Please update HivePress to 1.7.23 first, and the issue will be resolved.
A post was split to a new topic: Fatal Error When Featuring Listings