A problem with saving

Since the 5.1 betas I experience an issue where Cornerstone won’t save after having been open for a long time, like overnight.

Here’s the console output from when this occurs:


Hi @JvP,

That nonce verification issue is unfortunately a long standing issue we’ve not resolved yet. If you’ve left it open for a long time, you’ll want to refresh first, then it will operate like normal.

I’ll try to remember to refresh the builder if it’s been open for a while. Hopefully you can fix the underlying issue soon :smiley:

Thanks! Sounds good.

Hey @charlie,

This is still an issue to this day. When I leave the builder open for hours and then return to it, changes cannot be saved until I refresh the builder first. Surely I’m not the only one who’s experiencing this?

I have not had it where it would not save. It usually asks me to re login if it’s been left on over night. What was the error message saying? It sounds like if we just picked up a new nonce it’d start working. I’ll have to check how this nonce works. I haven’t tried this, but apparently you can modify the lifetime of a nonce.

// 3 day nonce life
add_filter( 'nonce_life', function () { return 3 * 24 * HOUR_IN_SECONDS; } );

Haven’t checked the console for any errors lately regarding this, so I can’t tell you. I’ll see what it says next time. I’m not prompted to login again, this happens when still logged into wp-admin. Only the Cornerstone builder needs to be refreshed.

It just happened again.

Nevermind on that filter before. Even just changing the cornerstone nonce action cornerstone_nonce, seem to only have negative effects without ever lasting the lifetime I set.

I have a feeling relying on the default WP ajax nonce would help this. I’ll have to play around with this some more.

Dont get me wrong, but for which reason is necessary to fix? Why someone would let open Cornerstone for hours or overnight? Just save, close Cornerstone and next time you want to work again with Cornerstone, open it again.

While working on stuff I tend to leave the tabs open. Why close out of everything to reopen later? I like to pick up where I left off quickly.

Why “out of everything”. Its Cornerstone within one tab.

I work in multiple tabs, often across multiple sites.

It’s valid to fix, it’s pretty useful when it just asks to login again instead of forcing you to reload. It’d be a lot easier to fix if that nonce_life filter worked, but I’m sure we can fix it at some point.

1 Like