processwire-issues icon indicating copy to clipboard operation
processwire-issues copied to clipboard

Outputformatting exception when saving page with repeater matrix field

Open adrianbj opened this issue 1 month ago • 1 comments

Can’t save page (id=50813): /repeaters/for-field-185/for-page-50808/1762281864-5294-2/: Call $page->of(false); before getting/setting values that will be modified and saved. [body] (/wire/core/PagesEditor.php:470)

And another related one that referenced [Page::statusCorrupted] instead of [body]

These are happening when simply saving a page in the admin. It is a complex repeater matrix field and some of the blocks include repeater fields.

I feel like I have reported this before but can't seem to find at the moment.

adrianbj avatar Nov 04 '25 19:11 adrianbj

A little more debugging - the block type was one with a simple body field (CK Editor) and if I save with text in the field then I get that error, but if I add the block, save, and then add text to the body field, then it saves OK.

Maybe that [Page::statusCorrupted] is the key to all this - maybe it got stuck in some weird state?

adrianbj avatar Nov 04 '25 20:11 adrianbj