Home

>

Tools

>

Ghost

>

Releases

>

4.36.1

Ghost Release: 4.36.1

Tag Name: v4.36.1

Release Date: 2/16/2022

Ghost LogoGhost

Open-source publishing platform specifically designed for professional bloggers and publications. Focuses on clean, minimalist writing and publishing experience.

TL;DR

Ghost v4.36.1 fixes a critical bug that caused "Invalid mobiledoc structure" errors when saving posts with header cards. This patch addresses an issue in the slugify() utility that would throw errors when header or subheader fields were left blank in header cards, ensuring content creators can now work with these elements without encountering save errors.

Highlight of the Release

    • Fixed "Invalid mobiledoc structure" errors when saving posts with header cards
    • Resolved bug in the slugify() utility that affected header cards with empty fields
    • Updated all packages dependent on @tryghost/kg-utils to include the fix

Migration Guide

No migration steps are required for this update. This is a drop-in replacement that fixes a bug without changing any APIs or requiring configuration changes.

Upgrade Recommendations

This update is highly recommended for all Ghost installations, especially for sites where content creators use header cards in their posts. The bug fix prevents content saving errors that could disrupt publishing workflows.

The update can be applied using your standard Ghost update process:

ghost update

If you're using a managed Ghost(Pro) instance, this update will be automatically applied.

Bug Fixes

Fixed "Invalid mobiledoc structure" errors

This release fixes a bug in the slugify() utility within the @tryghost/kg-utils package that was causing "Invalid mobiledoc structure" errors when saving posts containing header cards with empty header or subheader fields.

The issue occurred when:

  • A content creator added a header card to a post
  • The header or subheader field was left blank
  • The post was saved, triggering the error

All packages with a dependency on @tryghost/kg-utils have been updated to include this fix, ensuring consistent behavior across the platform.

New Features

No new features were introduced in this patch release. This is a bug fix release focused on resolving a specific issue with header cards.

Security Updates

No security fixes were included in this patch release.

Performance Improvements

No specific performance improvements were included in this patch release. The focus was on fixing the critical bug affecting content creation.

Impact Summary

This patch release addresses a specific bug that was causing content saving errors when working with header cards. While the scope of changes is minimal (affecting only 3 files with 48 total changes), the impact is significant for content creators who use header cards in their posts.

The fix ensures that the content editing experience remains smooth and error-free, particularly when working with header cards that might have empty fields. By resolving this issue, Ghost maintains its reliability as a content management platform and prevents potential frustration and workflow disruptions for users.

No changes to existing functionality were made beyond fixing the bug, so users can update with confidence that their existing content and workflows will continue to work as expected, but with improved stability.

Full Release Notes

Statistics:

File Changed3
Line Additions24
Line Deletions24
Line Changes48
Total Commits3

User Affected:

  • Can now save posts with header cards that have empty header or subheader fields without encountering errors
  • No longer experience workflow interruptions when working with header cards
  • Improved reliability when editing and publishing content that uses header cards

Contributors:

kevinansfielddaniellockyer