- 🐛 Fixed tiers not appearing on custom signup pages (#16828) - Kevin Ansfield
View the changelog for full details: v5.48.0...v5.48.1
🌐 Help us translate Ghost + Portal: https://forum.ghost.org/t/help-translate-ghost-beta/37461
Tag Name: v5.48.1
Release Date: 5/18/2023
GhostOpen-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.
No migration steps are required for this release. The fix for tiers on custom signup pages is applied automatically when you update to v5.48.1.
This release contains a critical fix for sites using custom signup pages with membership tiers. We strongly recommend all Ghost installations be updated to v5.48.1, especially if you:
The update process is straightforward with no migration steps required. The fix will be applied automatically when you update.
This release fixes a critical bug where membership tiers were not appearing on custom signup pages. The issue was in the TiersRepository's internal caching mechanism:
toPrimitive() method had a bug that resulted in cached tier objects having very few propertiesevents property){events: [], active: true, type: 'paid', id: 'abcd'}getAll() method uses NQL to match against cached tier objects, but with incomplete data, it couldn't match properly and returned an empty arrayThe fix changes the spread to use tier.toJSON(), ensuring all tier data is properly populated and allowing filter matches to work correctly.
This release doesn't introduce new features as it's primarily a bug fix release. However, it does include several Admin X Design System improvements that were added during development but not highlighted in the main release notes:
No security fixes were included in this release.
No specific performance improvements were highlighted in this release. The primary focus was on fixing the bug with tier display on custom signup pages and including various Admin X Design System enhancements.
This release addresses a significant bug that affected the display of membership tiers on custom signup pages. The issue was caused by a problem in the TiersRepository's caching mechanism, where tier objects weren't being fully populated when cached. This resulted in the API being unable to properly match and return tiers, causing them to not appear on custom signup pages.
The impact was primarily on sites using custom signup pages with multiple membership tiers, potentially affecting conversion rates as visitors couldn't see or select from available subscription options. The fix ensures that all tier data is properly populated in the cache, allowing the API to correctly match and return tiers.
While this is a small patch release in terms of code changes, it resolves an important issue for membership functionality, which is a core feature for many Ghost publications. The release also includes various Admin X Design System improvements that were added during development but not highlighted in the main release notes.
View the changelog for full details: v5.48.0...v5.48.1
🌐 Help us translate Ghost + Portal: https://forum.ghost.org/t/help-translate-ghost-beta/37461