Preserve the content before trying to repair a WordPress block that reports unexpected or invalid content. Keep the current text, saved block markup and important links or image references, then compare the proposed recovery in a controlled copy. Making the warning disappear is not enough if the repair removes information.

This guide uses official WordPress documentation checked on October 13, 2026. It covers a content-validation warning inside the native editor, rather than every reason an editor, plugin or public page can fail.
Identify which problem you actually have
WordPress's invalid-content documentation describes warnings that can follow manual HTML changes, unexpected formatting or component interactions. Record the exact message, selected block and when it began. Do not assume that a problem on the public page has the same cause.
| Observation | Starting question | Different responsibility |
|---|---|---|
| Unexpected or invalid block content | Does the saved content match the block's expected representation? | Block validation and recovery |
| A block type is unavailable | Is its supporting block registration present? | Theme/plugin dependency and compatibility |
| Updating failed or invalid JSON response | What happened to the save request? | Session, route and server response |
| Content looks wrong only on the public page | Which saved output and styles were served? | Rendering, assets or caching investigation |
Use the editor save-failure guide for the separate request problem. A validation warning and a failed save can coexist, so preserve evidence for each rather than pressing recovery repeatedly.
The short route through the warning
- Select the broken block, open the three-dot More options menu in its toolbar and choose Copy Block. Paste it into a private text file before you try anything else.
- From the same menu, choose Resolve. The comparison shows the current markup on the left, with a Convert to HTML button, and the rebuilt block on the right, with a Convert to Blocks button.
- Compare the two sides line by line. If the right side keeps every word and link, choose Convert to Blocks. Attempt Block Recovery, the button on the block itself, gives the same rebuilt result without showing the comparison.
- If the right side drops something you need, choose Convert to HTML instead. The content moves into a Custom HTML block with its markup intact, and you can rebuild it as native blocks later.
- Save as a draft or update once, reload the editor and confirm the warning is gone and the text is complete.
A common case is a paragraph edited with Edit as HTML. The saved markup carries an inline style the Paragraph block does not expect:
Current (left side)
<!-- wp:paragraph -->
<p style="color:#c2185b">Call us before 5 pm for same-day repairs.</p>
<!-- /wp:paragraph -->
After conversion (right side)
<!-- wp:paragraph -->
<p>Call us before 5 pm for same-day repairs.</p>
<!-- /wp:paragraph -->
Here the words survive and only the color is lost, so Convert to Blocks is safe; reapply the color with the block's own Color setting. If the right side had lost a link or a sentence, Convert to HTML would be the better choice.
Capture the original content and scope
Keep the affected editor open while making a private copy. Record the title, visible block text, links, image references and any important settings. Copy the relevant block markup or whole body where appropriate, without assuming that this also backs up every custom field or publication setting.
The Block Editor guide documents Visual and Code editor views and content-copying tools. Use those to preserve evidence, not to edit unfamiliar block comments until the warning disappears. Keep confidential source material out of public paste services.
List View helps identify whether the warning belongs to a paragraph, nested list item, group or a larger reusable item. A warning inside a container does not justify replacing the whole article. Note whether one block, one type or many documents are affected.
When the content came from a migration or a block update, retain a representative original with its previous software context. A maintainer needs that sample to investigate the mismatch without experimenting on every live placement.
Check an available saved version before reconstruction
WordPress revisions can help compare earlier saved content and autosaves when suitable records exist. Our article recovery guide covers choosing a version without assuming that the newest unsaved work is already protected.
Compare the useful text and structure, not only the timestamp. An earlier version may predate the warning but also lack a recent correction. Restoring the whole post could replace unrelated newer changes, so decide whether the affected block can be recovered more narrowly.
Keep the public article and its current publication state separate from a test copy. Do not publish a duplicate merely to see whether a reconstructed block validates. Review a draft or protected environment with a clear account of what would eventually change.
Understand the validation boundary
The Block Editor Edit and Save reference explains how saved markup is checked against the representation regenerated from parsed attributes. The purpose includes protecting content from a block that cannot restore it accurately.
For a hypothetical custom callout, changing the developer's saved wrapper from a div to a section can alter that representation even when the wording looks identical. This is an illustrative compatibility question, not a diagnosis of a real plugin or an instruction to replace those elements manually.
A page that displays plausible HTML does not establish that the native block can reopen and save it safely. Conversely, the warning does not prove that all visible text is gone. Inspect the preserved content and the actual proposed result.
Verify the supporting block before converting it away
The block registration reference describes how a block type is registered, while block metadata documentation identifies the type and its capabilities. The displayed marketing name alone may not identify the responsible extension.
Record the block type and supporting theme/plugin, their versions and any recent change. If the support is missing or incompatible, ask its maintainer about the correct installation or update path. Turning a dynamic or interactive block into static HTML may discard the very feature it provides.
Use the plugin dependency audit before removing components. A theme change or plugin deactivation is a controlled compatibility test, not a reason to reset the live site or delete stored data.
Review recovery and conversion as different choices
The documented native options include Attempt Block Recovery and, where available, Resolve and conversion routes. Their presentation can vary with the installed editor and block state. Inspect the comparison or resulting copy before saving over the original.
Attempt Block Recovery may remove unsupported customization while rebuilding the expected block. Check whether all intended text, links, list structure and settings remain. If the result becomes empty or loses a needed element, stop and keep the preserved source; repeated recovery is not a substitute for diagnosis.
Resolve can expose a choice between retaining HTML and converting to blocks. Review the displayed differences and the effect on editing controls. The right choice depends on whether the content is meant to remain a maintained native block or a deliberately reviewed static fragment.
The Custom HTML documentation describes that block's role and capability-dependent handling. Conversion is not sanitization or a security review. Do not paste unfamiliar scripts, grant broader capabilities or disable filtering to preserve code from an untrusted example. A Classic conversion, where offered, also changes the editing model and needs its own result check.
Give a maintainer a reproducible compatibility case
When a block changed its expected saved output, the block deprecation reference documents handling older representations and migrations. That is a developer responsibility; users should not need to rewrite every saved block by hand to make a new version accept it.
Provide a private minimal sample, the relevant versions, the last known working context and the exact action that triggers the warning. State whether the same sample fails after reopening, not merely during the first insertion. Remove private material from anything shared publicly.
Test the proposed repair using the WordPress update-testing workflow. Keep a recovery route and check representative older content, since making a new block work does not establish compatibility with all historical saved versions.
For a hypothetical callout containing a heading, a warning and a reference link, write those three requirements before testing recovery. If the rebuilt block retains the heading but drops the link, it fails the content comparison even if the warning disappears. If a reviewed static replacement preserves all three but removes a necessary interactive feature, that is a different failed requirement. This acceptance record lets the content owner and developer agree on what must survive before choosing a conversion.
Accept content preservation and native reopening separately
- Compare the repaired copy with the preserved source for text, links, lists, media and intended behavior.
- Check native editor controls and the visual preview.
- Save the controlled copy once, wait for confirmation and reopen it.
- Verify that the warning does not return and that content remains correct.
- Review the public reading layout and relevant interaction before a scoped release.
- Retain the original evidence until the intended live result is verified.
If the warning returns, preserve the new observation and investigate the repeated transformation rather than accepting another temporary conversion. A successful repair retains the intended information and behavior, reopens predictably and has an explained source of compatibility.