Cannot Edit Any Content with Cornerstone

Hi - I have an issue on my site where I cannot edit any of my content with Cornerstone. When I click on any area to edit the content, I just get the screenshot below. I am noticing an error on the page prior to Cornerstone loading and am also seeing a number of different warnings / errors in the console. I have tried the following to address this issue:

  • Deactivated all plugins (except Native PHP Sessions, this is required and I have a copy of the site working with this plugin activated).
  • Uninstalled and reinstalled the theme

Couple other things to note:

  • This does not impact all pages on the site. For example, I can still edit the homepage.
  • I installed and configured the Team Booking plugin this morning. As Cornerstone was still working yesterday, I suspect something about the installation of this plugin caused a conflict or something with Cornerstone. Deactivating this plugin does NOT solve the issue.
  • I have a working version of the site available to review against from yesterday
  • Sending admin credentials in a secure message after this

Hey @sAustinPower,

I tried to uninstall Cornerstone to reinstall it again via X > Overview but your FTP credentials are required.

Please clear all caches and deactivate third party plugins while we are investigating.

Thanks.

Hi Christian,

I changed the site back to SFTP mode and performed the uninstall but I don’t see anywhere to reinstall Cornerstone via the X > Overview screen. You can do this now through the wp-admin since the site is in SFTP mode.

** Edit ** I also deactivated all plugins (except Native PHP Sessions) and explicitly cleared the cache from the server. Please let me know if you need anything else!

Hello There,

Cornerstone plugin should been installed automatically when you go back to X > Overview page. In your case this does not happen because of file permission issue. I have uploaded and installed the plugin instead. It is now active and I am still seeing the error message.

To resolve this, please login to your ftp and edit your wp-config.php file to do this things:

  • Disable the debug mode by having this:
define('WP_DEBUG', false);
  • And increase your PHP memory by adding this lines:
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

We would loved to know if this has work for you. Thank you.

Thanks for the response! I setup wp-config as you recommended but that did not solve the problem.

Hey There,

I have logged in again and I can edit the page with Cornerstone. Please check out my screenshots:


Please clear Pantheon cache, your browser cache or use private browsing mode and test your site again.

Please let us know how it goes.

I’ve done all that, still cannot edit all of my content. Full video available at the URL below, please try editing the /booking/ page.

Hey There,

Debug mode in the dev site is not yet disabled. Please disable it first.

In the test mode, I can edit the Booking page.

@RueNel - Can you please let me know why you think debug mode is not disabled? I have this set in my wp-config and there’s no other reference in the file enabling debug, really curious what’s leading you to say it’s not disabled:

if (!defined( 'WP_DEBUG' ) ) {
    define('WP_DEBUG', false);
}

Regardless, I added an explicit declaration further up in the code in wp-config (exact code below), cleared Pantheon’s cache and ensured my cache was disabled, and I still have the same problem:

// AP: Explicitly disabling debug mode
define(‘WP_DEBUG’, false);

Lastly, the test site has not been modified with any of the changes we have discussed in this thread and has never had a problem, so I don’t expect there to be any issue with it. There is something that changed on the dev site that caused Cornerstone to stop working on specific pages and I need help identifying what that is.

Hey @sAustinPower,

Can you give us specifics what exactly changed in your site? Also give us SFTP access.

Thanks.

@christian_y - The change yesterday (that I kept and noted above) is the following:

I installed and configured the Team Booking plugin this morning. As Cornerstone was still working yesterday, I suspect something about the installation of this plugin caused a conflict or something with Cornerstone. Deactivating this plugin does NOT solve the issue.

I also installed but did not keep both the Bookly and Appointment Booking Calendar plugins. I’d be happy to give you SFTP access but will need an email address as you’ll need to create an account on Pantheon and then use your Pantheon password (and SFTP connection information) in order to access. Please let me know a good email to set this up with and I will get it taken care of.

I’m sorry but we do not have a support email. Please create an account for us or give us your account details.

Thanks.

Please find credentials in the secure note. You’ll need to login to Pantheon (pantheon.io), navigate to Nayacare, go to the development environment (should be the default) and click on Connection Info or Connect with SFTP to get the SFTP connection information. If you prefer to work via Git, please let me know and I’ll switch to Git mode.

** Edit ** Scratch that, I have your Pantheon PW. All of the connection information can be found in the secure note.

Hey @sAustinPower,

Regretfully, I have not found anything substantial in your server but I’ve found that only the V2 elements are affected.

Can you try copying your working test site to your current dev site?

Thanks.

Ugh, that’s what I was trying to avoid. I’m going to lose a lot of site config and content entry as a result. Is there nothing else we can do to try to troubleshoot?

@christian_y - I’m just moving forward with performing a restore and then will manually process all of the updates I made. I’ll check the content editor after each so I know what causes the issue if it happens again.

Hah, first upgrade. Apologies for the multiple posts here but I found the error. As soon as I upgrade to PHP 7.2 I can no longer use Cornerstone to edit content. What versions of PHP are supported?

** Edit ** Interestingly enough, it doesn’t seem to have as much to do with what PHP version I select but more to do with how I upgrade to a PHP version. On Pantheon’s platform, the PHP version is controlled via a pantheon.yml file in the /code/ directory. If I add a version in order to upgrade PHP, the editor stops working. If I undo that commit, the editor starts working again. Can you please take a look at this? I’d really like to upgrade to 7.x

Documentation: https://pantheon.io/docs/php-versions/

I see. X / Pro and Cornerstone are PHP 7 compatible. But, there might be new features that might be incompatible yet. Do you have control over what features you can enable/disable? If you can, try deactivating features to see what makes Cornerstone work. Regretfully, as support, we could not dig deeper into that matter as this goes beyond the standard. But, if you discover something, you can report it to us and we’ll post it to our issue tracker so our development team could be made aware once they go through the list of reports.

Thanks.

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