Cornerstone preview not loading

I’m getting this generic error message when trying to open a page to edit in Cornerstone:

The preview could not load. This is most often related to a plugin conflict or aggressive page cacheing. Checking the developer console for errors could indicate what went wrong.

Origin URL: https://…

Preview URL: https://…

I’ve gone though everything on the “troubleshooting-builder preview guides” page and the error still persists. I have no caching plugins installed and the ones that came with my instal have been deleted. In my web developer console I’m seeing some failed AJAX requests, and from my web server I am getting this error in the log:

[Mon Apr 16 13:46:57.073746 2018] [:error] [pid 6440] [client 84.114.167.200:21758] PHP Warning: Creating default object from empty value in /nas/content/live/connellylaw/wp-content/plugins/cornerstone/includes/classes/content/class-content-preview-frame.php on line 81

Any idea how to fix this!?

Hi There,

Thanks for writing in! I see that you’re getting a PHP warning. Could you please make sure that you’re running at least PHP v5.6.x or later to avoid any WordPress related incompatibility issues. If you’re not sure what your server configurations and settings are, install a plugin like WP-Serverinfo (https://wordpress.org/plugins/wp-serverinfo/) and check your server info by head over to Dashboard -> WP Serverinfo area.

  • Check your PHP Max Execution Time and set it for 300 for optimal usage.

Let us know how it goes.
Thanks!

Thank you! I downloaded the plugin and am running PHP v5.6.31-4+wpengine10
The PHP Max Execution Time is set to 3600s.
From your suggestions, it seems this would be sufficient.

I discovered that when I change the permalinks to “plain” instead of “post name” the builder preview works! No errors. Of course, when we go live we will want to use the post name and not the ugly urls. Any suggestions on what the problem may be here?

Hi There,

The recommended permalink settings would be to use postname instead of plain. Could you please try resetting your .htaccess file by renaming it to .htaccess-bak.

Then head over to your Settings > Permalinks section, select postname and save the changes. Try re-testing your Cornerstone builder now and see if that helps.

Thanks!

Gave this a try. It did create a new .htaccess file for me but the error is still happening. Still no preview in Cornerstone when permalinks are set to ‘postname’ and the error message is the same.

Hello @amandafloeckner,

Thanks for updating thread.

In that case can you please share some WordPress (URL/username/password) and FTP (host/username/password) in a secure note for us to take a closer look?

Thanks.

Just added the note with login info. I’m needing to continue development so I’ll be working on some other things but will try to stay out of Cornerstone and the pages for now until I hear something. Thanks for the help!!

I may have solved this. In my permalinks section I had entered a custom structure for the Category base. I thought I’d try removing that to see if it made a difference and now the Cornerstone preview is working. For some reason having a custom field in here must have been messing with the preview. Things appear to be working normally and I can find a work around for the category set-up.
Thanks for the quick help with this though!

You are most welcome!

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