Cornerstone broken 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

Hello
I am trying to add or edit pages on the website and I keep getting this error
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.

What can I do ?
Did the following

  • disabled all plugins except cornerstone
  • disabled, changed the theme and the reenabled x-child
  • switched between php versions
  • added disable cache and security rules through cloudlfare http://prntscr.com/o2wgoo
  • disabled every possible cache on siteground and cloudflare and also every caching plugin on the website
  • ran out of ideas :slight_smile:

Can you help me out figure this one out?
Thanks

Hi @imokweb,

Thanks for reaching out.

Based on your screenshot, it’s the site https://dailywonder.org, but I checked it and there is no active X theme. So I assume you’re referring to a different site but you just configured a wrong one in your CloudFlare.

Would you mind providing the site’s URL and admin login credentials in the secure note. I’m a bit confused as there is X theme there https://dailywonder.org/wp-content/themes/x/style.css, but I’m not just sure if it’s not active or you fully customized it default paths are now differents.

Thanks!

Hello
There is an active x theme on the website :slight_smile:


I also provided access in a secure note.
Thanks

Hello
I forgot to mention, another issues, since the update to the latest version of the theme and cornerstone the x-icons have disappeared http://prntscr.com/o2zeh4
On this page, you can directly edit the footer https://dailywonder.org/wildly-creative/, and on the other pages from the theme options, but that is not visible either.
Could this cornerstone issue be the problem for this one too? or this one has another issue?

PS: dont mind the first page, that is a feed form another website

Thanks

Hi @imokweb,

It seems you have a different home page, and that’s the cause of the builder issue. All requests redirect to that home page, example try accessing this https://dailywonder.org/?s=hello, it’s supposed to display the search page but it redirects back to https://dailywonder.org/cal. And that also happens on all requests in the builder. I recommend disabling that page or any redirection.

As for the icon, you have added them as custom code and now that icons implementation is different then those codes are outdated as well. Please fix them and one example is

<i class="x-icon-instagram" data-x-icon="" aria-hidden="true"></i>

You can fix it by changing data-x-icon to data-x-icon-b like

<i class="x-icon-instagram" data-x-icon-b="&#xf16d;" aria-hidden="true"></i>

There are data-x-icon-b, data-x-icon-s, and data-x-icon-o. In this sample, it’s Instagram icon which is the brand https://fontawesome.com/icons/instagram?style=brands that has icon code of f16d, hence data-x-icon-b="&#xf16d;".

That’s just one sample and you’ll have to fix all your custom codes related to icon. For built-in theme codes, it’s automatic hence the only affected areas are your custom code. And I think they are added within the builder so before you could fix them, you’ll have to fix the first issue first with redirection.

Thanks!

Hello again, the new icon codes worked like a charm :D. Thanks
My question about the cornerstone is, how did it work until now?
I also observed that some pages can be edited like the one in the secure note can be edited, and the viewer works fine.
How is it possible that on some paes work and on others it does not?
I also talked to the hosting company, they increased the memory to 768MB so that should be more than enough, and checked if they have any errors on their side. The site runs on the latest php, 7.3

Thanks
Cheers

Hi @imokweb,

Are you referring to those draft pages? Try to published those pages and open it in Cornerstone, I can’t replicate this issue on my end (so I can’t tell that this is a bug), it could be something on your site that is causing this.

Please do a testing for a plugin conflict again. 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.

Also try to re-install the Cornerstone, you can do this by navigating to the Plugins panel, deactivate and delete the Cornerstone, then navigate to X panel, wait for a few seconds and X will automatically re-install the Cornerstone.

Let us know how it goes,
Cheers!

Hello
All the plugins were deactivated,cornerstone deleted and theme switched, then the theme was switched back, x installed cornerstone and the plugins were reactivated.
Meanwhile the pages were tested, same result. X child theme was deactivated and paretn theme activated and still the same, some pages cant be previewed and in the X theme settings
the preview also does not work.

Do you have any other ideas what I could do ?
Cheers
Bye

Hi @imokweb,

Another idea is to try to turn off the ModSecurity to see if this issue is related to ModSecurity blocking the Cornerstone. If it does please contact your host and request to add a rule or whitelist a Cornerstone URL.

eg. For example yourdomain.com/x/ and /cornerstone-endpoint

All I know is these draft pages previewed in Cornerstone if you Publish it then refresh.

I cant rollout this as a bug as I can’t replicate the issue on my dev site. So more likely this is a server configuration related issue.

The fact that the Cornerstone works on other pages and when the page is published, it means there is no problem with Cornerstone, else all your pages should not be open/previewed on Cornerstone.

Also, please do the WP DEBUG this might give information on what is causing the issue.

Thanks,

Hi there,

We tried everything that was discussed under this topic but we are still having the same issue.
Can you please try to do something? Our client would really like to use the functionality to build the page in draft mode. We really ran out of ideas on what can be the problem here.

Let us know if we can provide any login details for you so you can investigate the issue.

Thanks!
I.

Hello @imokweb,

Could you please deactivate WordFence because our other staff cannot access your site and troubleshoot.
If you wouldn’t mind, please also provide us your FTP login details so that we can take a closer look at your theme files.

Thank you in advance.

Deactivated. Thanks for your help!

Hello @imokweb,

I have logged in and I was able to successfully edit the page with no issue or errors being displayed.

Could you please tell me which page you were editing and have experienced the error message?

By the way, make sure to clear all your caches and your browser caches before testing the site again.

Hello,

Please read the whole ticket :smiley:
We are referring to the draft pages.

Please create a new draft post and try to edit.

Thanks!

Hi @imokweb,

My finding is still the same as previous message

It seems you have a different home page, and that’s the cause of the builder issue. All requests redirect to that home page, example try accessing this https://dailywonder.org/?s=hello, it’s supposed to display the search page but it redirects back to https://dailywonder.org/cal. And that also happens on all requests in the builder. I recommend disabling that page or any redirection.

Try accessing this https://dailywonder.org/ and it will redirect to https://dailywonder.org/cal

Your site is configured to serve https://dailywonder.org/cal but the draft still uses https://dailywonder.org/ which then causing this issue. Is there a way it could be setup exactly as https://dailywonder.org/? Or perhaps, move the entire installation within https://dailywonder.org/cal so it doesn’t need to do the redirect.

Thanks!

I am having the same issue with Cornerstone not loading the page properly on www.tenacitycranes.com and www.acorncollections.com

I have deactivated and deleted Cornerstone and reinstalled, updated all plug ins and checked wordfence settings and still no ability to edit any pages.

Please help this is a real problem I have over 20 websites with X Theme and Cornerstone so I need a solution.

Thanks in Advance.

Leigh

Hello Leigh,

Thanks for writing in!

To avoid any confusion, it’s my humble request to you to create a new ticket and share the relevant details. Posting on a ticket created by a different customer create lot of confusion which slows down the response time. Please create a new ticket and one of Themeco support staff will take a look and assist you accordingly.

Thanks for understanding.

I’m back in the spot where Cornerstone pages cannot load in the edit preview window.
I’ve previously turned off all the plugins.
That didn’t help so I’ve currently turned them all back on so the site will at least function.
Please help me to regain the ability to edit.
See secure note for all info.
Thanks.

Hello @Oortcloudatlas,

Thanks for writing in! I have checked your site and it seems that there is an error 500 in the backend when you are editing in Cornerstone. ​We recommend that you increase your memory allocated to PHP. To increase it, 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. */

We also recommend that you increase your PHP time limit because you only have 90s. Please set it to at least 300s to prevent any PHP maximum timed out error in the backend. Please check this out:

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

I did all that, but it didn’t help.