-
AuthorPosts
-
October 9, 2015 at 7:39 am #618049
I do not know how that happened, but my homepage is now not editable in cornerstone as it said I edited it outside of it. But even if I edited it in text mode or visual, which I did not – but even if I did, or a plugin did or whatever – why do we have to completely rebuild our pages in cornerstone if any change happens to the page?
Can you offer some backup solution? Or a solution in geneeral?
October 9, 2015 at 8:53 am #618135Hi there @xorred,
Hope you’re well today! 🙂
We currently have a active feature requests for implementing a restore/undo/redo functionality into Cornerstone, which hopefully something similar will come to Cornerstone in the near future.
At the moment, the closest would be the templates option of Cornerstone, so you could create a template from a Cornerstone page and then if the above happens, you can enter that page again in Cornerstone and upload your template so it can then once again be edited in Cornerstone.
You can read more about page templates here https://community.theme.co/kb/cornerstone-interface-layout/ 🙂
Thank you!
October 9, 2015 at 9:18 am #618165At this point I am more worried about having to rebuild the whole homepage from scratch. Where is the field that triggers 0 or 1 on modified or not, in the db?
October 9, 2015 at 10:47 am #618291Hi there @xorred,
I’ve been speaking with the developer of Cornerstone and technically if you switch back to the cornerstone editor after saving a page outside of Cornerstone, it should still remember the last point and use that data.
There have been known instances of ACF (Advance Custom Fields), conflciting and deleting Cornerstone data, you’ll find the Cornerstone data in your database with the meta key _cornerstone_data
Hope this helps.
Thanks!
October 9, 2015 at 11:52 am #618403I was asking which field in the db for that page to change from “edited outside of cornerstone” to “not edited outside of cornerstone”
October 9, 2015 at 11:54 am #618404maybe it’s a good idea to add a checkbox to a page ‘set as not edited outside of cornerstone’? To me it seems pretty basic to preserve the shortcodes and keep cornerstone working – for advanced users…
October 9, 2015 at 1:55 pm #618608Hi again,
Best way to remedy this is to go back on the previous revision or 2,3 revisions back where everything was working fine with CS. That should get things right and then you can start editing your content again without rebuilding it.
Let us know how this goes!
October 15, 2015 at 10:08 am #626532Revisions is not the best way in my case…. I am asking where and what can I change in the DB in order to mark this page as not edited outside of cornerstone….
October 15, 2015 at 10:10 am #626539no matter what revision I choose it says modified outside cornerstone. It’s a fault of a system, not my fault. I am asking how to fix it.
October 15, 2015 at 10:15 am #626553switching to cornerstone starts from scratch…. this is really weird. And I don’t want to start from scratch…
October 15, 2015 at 10:59 am #626636Hey there,
This is Alex, lead developer on Cornerstone. I wanted to chime in here with some more technical info. When you hit “save” in Cornerstone it does a few things:
1. Updates post meta
_cornerstone_data
with all the page data and_cornerstone_settings
with things like Custom CSS and responsive text.
2. Updates any modified WordPress fields like the title or page template.
3. Uses the page data in_cornerstone_data
to render an arrangement of shortcodes.
4. Removes the_cornerstone_override
post meta should it exist.The
_cornerstone_override
is the flag you’re looking for above. When it’s present, we’re indicating that you’ve made modifications tothe_content
via means outside of Cornerstone itself. It’s what helps us manage the state of things when you edit a post in the dashboardThe shortcode generated for
the_content
are as simple as possible, and do not represent the full amount of data stored for each page. This helps with performance, but is part of why you can’t go backwards. The shortcodes themselves don’t carry enough information to reconstruct the Cornerstone page builder data, and control values. For example, some controls end up simply appending CSS classes to elements. This layer allows us to streamline the shortcode markup while providing more options in Cornerstone, instead of bloating out shortcodes. It also helps speed up how Cornerstone loads and processes information.
Now… getting to the problem at hand. I’m not sure what exactly is causing the problem, but I’ve seen a case like this recently.Have you done any of the following on this site shortly before this started happening?
– Moved to a new URL
– Used the ACF plugin
– Run any kind of manual database operationIn a recent case, there was a problem were a migration script swapped out the URLs from one domain to the next, but miscounted the number of characters somehow, which corrupted the Cornerstone data. This made it impossible to import any of the revisions which were previously working fine.
October 15, 2015 at 1:46 pm #626902Hi Alex, thanks for jumping in!
I installed a db plugin which searches and replaces all strings in the db with anew one. I replaced http to https… then the page said ‘modified outside of cornerstone’ and since then I can’t go back. Thinking more about it I decided it would be viable to just rebuild, instead of going to the db and running a risk of breaking something bigger.October 15, 2015 at 2:40 pm #626966Sounds good.
Do let us know if need any assistance in this regard.
Cheers!
-
AuthorPosts