Cornerstone not working on edited pages

Hi,

We are unable to edit pages and posts in cornerstone. We have recently changed our cloudflare settings according to this guide (https://xthemetips.com/using-cloudflare-rocket-loader-with-x-pro-and-x5/928), which fixed several problems in x theme we had earlier, but now our pages are unable to load in cornerstone. Empty pages do load, but the pages with content are unable to.

screenshot (http://prntscr.com/j9m2bw)

I believe you have log in details from the previous topic.

Hi There,

Please follow this troubleshooting points and let us know the result.

  1. Ensure everything is up to date according to our version compatibility list at https://theme.co/apex/forum/t/troubleshooting-version-compatibility/195. Please follow the best practices when updating your theme and plugins. See https://theme.co/apex/forum/t/setup-updating-your-themes-and-plugins/62 for more details.
  2. Clear all caches including browser cache then deactivate your caching plugins and other optimization plugins.
  3. If you’re using a CDN, please clear the CDN’s cache and disable optimization services.
  4. Test 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.
  5. Remove custom CSS, Javascript and templates.
  6. Reset your htaccess file by renaming it to .htaccess-bak. Then in WP Admin Menu, go to Settings > Permalinks and just click the Save Changes button.
  7. Contact your host to increase your allocated memory or do it yourself by adding this code in your wp-config.php

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

Thanks

Hi basanta,

It seems like the problem is caused by Cloudflare. After setting the page rules to this ( http://prntscr.com/j9ny5a ), and set rocket loader to manual, it causes the cornerstone problem, but without it, it causes this problem (https://theme.co/apex/forum/t/lightbox-video-pop-up/29781/5). Is there a way to fix both the problems?

Thank you

Hi There,

Is the issue only happening to a specific page, which page? I did check the site to see the issue, but all the page I check opens up fine on Cornerstone.

(https://prnt.sc/j9oxyv)
(https://prnt.sc/j9oyl4)
(https://prnt.sc/j9oz1g)
(https://prnt.sc/j9ozux)

Try clearing your browser’s cache or use the incognito/private mode of your browser where there is no caching and add-ons involve.

Cheers!

Hi,

Yes the page builder is now working but now some elements are not working in livesite. Just to list a few of them:

  • Lightbox (instead of a pop up window, it leads to youtube)
  • Counter (it wont count)
  • Accordion (It wont close)
  • Modal (the scroll bar wont appear)

Not sure if there are more errors. We want to get rid of the errors and still keep the page builder working. It seems whenever we use the recommended settings of x theme for cloudflare, the elements above will work. But then the page builder will stop working.
Many thanks,

Best
Rachanee

Hi There,

You mentioned above that you set the Rocket Loader to Manual, try turning it Off and Purge everything on your CloudFlare’s caching. This is important to force the CloudFlare to regenerate a new cache base on the new settings.

Cheers!

Thanks, should we first go back to the recommended settings of cloudflare for x before turning it off and purging? Or the other way around.

Kind regards
Rachanee

Hi @Tore_Lande_67,

The other way around. Turn off your Rocket Loader then clear or purge all of your caching.

Hope it helps.

Let us know how it goes.

Thanks.

Hi Nico,

I turned off rocket loader, then purged the cache from cloudflare. after that I set it to manual and the lightbox works, but not the cornerstone editor. I tried turning off rocket loader again, purge, then set it to automatic. Then the editor works but not lightbox. Any idea what could cause the issues?

Kind regards,
Jon

Hi Jon,

Are you sure you have unchecked “JS, CSS” in “Auto minify” option in Cloudflare?

I suggest keeping RocketLoader turned off for now, it’s still in beta, check this quoted text from Cloudflare:

Rocket Loader is considered Beta because it’s an experimental feature that modifies the loading and execution flow of Javascript. While efforts are taken to increase Rocket Loader’s compatibility with third-party Javascripts, not all scripts work with this feature. Issues with Rocket Loader affect only a small percentage of customers.

Thanks.

Hi Alaa,

I’ve disabled rocket loader for now and it seems to be working.

At this point not even html is auto minified, will minifying html cause problems with x-theme?

Thanks
Kind regards,
Jon

I would stay away from CloudFlare if I were you anyway. They have had MULTIPLE data leaks. Just search them out on WordFence website. : https://everythingit.us/blog/cloudflare-data-leak/

Hi Jon,

No, it shouldn’t.

Thanks.

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