Staging Site with Cornerstone Not Loading

Hi there, I’ve checked the forums and quite a few people seem to be in discussion with both your support team and SiteGround’s support regarding the staging environment.

I started experiencing this issue after I applied an SSL certificate and setup Cloudflare, so I have since disabled Cloudflare and removed the SSL cert. I then recreated the staging environment and changed both URL under Wordpress > Settings > General to the staging address. This allows me to access the Cornerstone builder on every page but the Home page.

Is there any chance you can offer any assistance?

Thanks,
Andrew

Hey Andrew,

Thanks for writing in! It is known that Siteground block the required resources from being loaded, you’ll need to contact Siteground and ask them to exclude the resources from their mod_security rules. For more related issue, please check out this thread:

He was able to resolve it by adding this code in his wp-config.php file

define('WP_SITEURL', 'https://www.staging_site_url.com');

Hope this helps. Kindly let us know.

Hi there, I’ve actually already tried that solution and if you read through what you posted, he states that it fixed the site but not Cornerstone which is what I’m having an issue with. The funny thing is, Cornerstone actually works on everything page but the Home page. When I tried to load up the Home page Cornerstone editor, the colored Cornerstone icon just spins endlessly.

So just to recap, I’m able to use Cornerstone on all pages but the Home page. Can you please advise? Thanks!

Hi Andrew,

In that case, would you mind providing us with login credentials so we can take a closer look? Please provide following information:

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password

All the best!

Editing the home page is an issue for me as well. As a temporary work-around, I set the blog posts to be the default view in settings. I’ll change it to the home page when the site goes live and there aren’t conflicts with the staging environment to deal with.

I also had to add an additional line in the config.php to get the content editor / cornerstone to work. This is what I have now.

//Turn on the two lines below if you want to use the content editors */
define(‘WP_HOME’, ‘https://staging_site_url.com’);
define(‘WP_SITEURL’, ‘https://staging_site_url.com’);

J

Hello @Feldspar,

Thanks for chiming in! It’s good to know how you were able to make Cornerstone work.

@agaudian:
Please edit your wp-config.php again and add this:

define('WP_HOME', 'https://staging_site_url.com');
define('WP_SITEURL', 'https://staging_site_url.com');

Please let us know how it goes.