Demo content issue on staging site

I have set up demo content on a staging site but when I go into the page to edit with cornerstone I get the following message:

"The preview could not load due to misconfigured URLs. This could happen if you are using multiple environments and the site URL was not updated after migrating.

Origin URL: https://www.staging1.thehsuite.co.uk

Preview URL: https://www.thehsuite.co.uk/"

When I change the wordpress url and the site url to staging1…url,I then can’t see the live preview of the staging site

Hello @Freshnous,

Thanks for writing in! The Cornerstone will use the site url settings in Settings > General. The site URL and WordPress address URL must be the same as the WordPress dashboard URL to prevent this problem. Check the image below as an example:

If you cannot change the site url and WordPress address URL in the settings, you can force it by editing your wp-config.php file of your staging site. Simply add the following line:

define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');

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

Many thanks for your reply. I have tried this and it does enable cornerstone to start working again but then the live preview of the site does not then work. I have contacted siteground and they say the following:

“Bear in mind that this is the way that the staging software is designed. The URLs of the staging website should be the same as those of the live site.”

Any further ideas?

Hi,

Can you provide us your wordpress admin login in Secure Note

For the mean time please check Siteground workaround on the link below

It’s on the bottom of the page.

Thanks

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