Cannot edit with cornerstone on some pages

The site seems to be gradually removing pages from the ability to edit with Cornerstone. All the shortcode is there, but pages will not let me edit with cornerstone. Site is www.sentient-energy.com

Hi Cliff,

Please remember to clear all caches when updating so that the code from the latest release is always in use. This will help you to avoid any potential errors or any unexpected display issue on the site.

If you already cleared your site and browser cache, Please try testing for a plugin conflict. You can do this by deactivating all third party plugins, and seeing if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

In case you are still getting an issue, kindly try increasing the PHP memory limit of your site.

To do this, please edit your wp-config.php file and insert these lines:


    define( 'WP_MEMORY_LIMIT', '256M' );
    define( 'WP_MAX_MEMORY_LIMIT', '512M' );

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

In case the issue persists, please try to get in touch with your hosting provider and confirm to them that your PHP memory limit is increased.

If you are still having an issue, please provide us with the admin details of your site in a Secure Note so that we can check this further.

please provide us with the admin access to your site in a Secure Note:

Thanks, Jade. I’ve done 1, 2 and part of 3. While I’ve added the php code to wp-config, I still believe my limit is 256MB and I don’t think my host will allow more. But that should be enough, no?

Problematic pages include:

Hello Cliff,

I have logged in and checked the pages. Did you created these pages in Cornerstone? It seems that you have switched between editors. Please be advised that you are not supposed to switch to WP editor. A page created in Cornerstone can only be edited in Cornerstone. Switching between editors will corrupt cornerstone data and you may not be able to edit the page back in Cornerstone. Please switch to “Cornerstone” tab and edit the page back in Cornerstone. If you have made any changes outside of Cornerstone it will be discarded. Only the last saved state of the page will be loaded in Cornerstone.

Meanwhile, if you have copied the codes from another pages, this will not work and will only give you a blank canvas when you edit the page in Cornerstone. You will have to create the page from scratch instead.

Hope this explains it briefly.

That’s the issue. No, I did not change editors. When I try going to the cornerstone editor, there is no content displaying despite the fact that all the shortcode is there (were I to wish to edit in, say, text mode)

Hi Cliff,

I checked it too and all of theme have corrupted cornerstone data. The builder works okay if you add content so there is no problem with the builder. The only solution is redoing the content is a dummy page and export it, then import them back to those pages (so it wouldn’t cause any downtime to the live page). Or, restore your site database back to when it’s still working.

Thanks!

Hi, Rad. Are you saying all content is impacted by corrupted Cornerstone data or just the pages I flagged?

If it is all Cornerstone data and I do the dummy page export/import, won’t those pages be susceptible still to data corruption? Just trying to figure out the most expedient way of resolving this. Thanks.

Hi Cliff,

I checked pages you provided but probably all data is affected if you done URL changes directly to the database, have you done database editing that could affect specific data?

The easiest would be backing up your current site, then restore it back to when it’s still working. Then export all the affected pages, then simply put back your recent backup where it’s not working (in case you already added more data) and then import the pages.

Thanks!

Thanks, Rad. It’s possible the database was edited. As part of the deployment of SSL we used a URL search/replace to make sure that we were not pointing to non-secure content. Changes would have been on some, but not all pages. So I think you’re saying that that alone could have caused the corruption?

Hi Cliff,

Since you mentioned that you have recently done a search and replace for the URL fields, please try to double check if you have search for the following:


    search for http://www.sentient-energy.com and replace it with https://www.sentient-energy.com and
    search for http:\/\/www.sentient-energy.com and replace it with https:\/\/www.sentient-energy.com

Please let us know about the results.

Thank you.

Yes to

http://www.sentient-energy.com with https://www.sentient-energy.com and also
https://www.sentient-energy.com/wp-content/ with /wp-content/

will try http://www.sentient-energy.com and replace it with https://www.sentient-energy.com

Please let us know how it goes.

There were no "http://www.sentient-energy.com " URLs to replace. The site still has the same pages not editable in Cornerstone. (Actually I changed one of them back using the export/import method you described.)

Hi Cliff,

What search and replace plugin did you use when updating to https? We recommend the Better Search Replace because it always works, you need to run it twice like the patterns below, the first one is for the standard search and replace pattern, the second one is for the Cornerstone resources.

replace http://www.myurl.com -> https://www.myurl.com
replace http:\/\/www.myurl.com -> https:\/\/www.myurl.com

But since there are only a couple of pages corrupted (not editable in Cornerstone) and other pages are fine, this is more likely this pages’ Cornerstone data had been corrupted on the search and replace process and did not recover, please follow Rad advise above to rebuild this pages in a draft page, save it as a template and then load it to the original pages to rebuild the Cornerstone data.

Thanks,

Thanks for the advice. I used Velvet Blues. I do definitely use Better Search and Replace quite often.

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.