I got an error message when try to modify a staging web page using Cornerstone

I checked some threads on the forum regarding how to do staging with Cornerstone. I added the staging website under my Themeco license management. I logged in my staging environment, but I got an error message when try to modify a page using Cornerstone. Could you please fix it? The staging service is from SiteGround.

Thanks,
Chris

Hi Chris,

Thanks for writing in! I see that the origin URL and the preview URL are different on your screenshot, which means that you haven’t setup your staging site correctly.

Please review our migration guide here (https://theme.co/apex/forum/t/cornerstone-content-builder-migration/126/1) and setup your staging correctly, so that your staging site should function properly.

Hope that helps.

Thanks. I am following your migration guide and have several questions.

Do you think it would make the job easier if I provide you the login credentials and you fix the issue for me? Sorry I don’t have such knowledge about IT. Thanks, Chris.

Hello Chris,

​To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password

To know how to create a secure note, please check this out: https://theme.co/apex/forum/t/how-to-get-support/288

Thank you.

Here you go.

This is my WordPress Login credentials.

Hello Chris,

The Cornerstone preview URL will use what is being set in Settings > General > Site URL. If this url is not the same as your dashboard url, then the issue will occur.

I already tried changing the url and it does not saved. This usually happens in some staging sites wherein you cannot change the site url via settings. What you can do is to log in to your ftp, browse to the folder of the staging site and edit the wp-config.php file and add this:

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

Please do not forget to replace example.com with your actual staging site url.

Hope this helps. Kindly let us know.

I checked with SiteGround who provides the staging tool. It doesn’t work the way you suggested. Do you have a workaround to solve this issue? Below is the reply from SiteGround for your reference:

This will not work though, since the way that our Staging environment works is that you need to have the application setup to work under the main domain name for the staging environment to operate correctly or it will cause the copy to go into a redirect loop.

I understand how that may cause issues with the functionality of Cornerstone, however this is not a setting that we can change for the tool. It simply needs to work in such a way.

Hi Chris,

Please check this https://theme.co/apex/forum/t/troubleshooting-builder-preview-warnings/14404 under Seeing the error in a SiteGround staging environment?.

There are many known issues caused by SiteGround environment, and even if you’re able to make it work, the same issue may occur again once you move your staging back to live. And that’s because of how their system works, and it they limit it that way then it’s not really going to work.

Other workaround would be creating your staging outside SiteGround, and move it back once you’re developing it.

Thanks!

Do you have any suggestions for good staging plugins that are compatible with Cornerstone? Thanks.

Hi @pberse,

You shouldn’t use a plugin for staging because it’s basically a same copy of your site on same installation and domain. Though, you can use All in one migration by migrating a copy of your site to a different installation. You can do that by exporting your site as a file then import the same file to another Wordpress installation using the same plugin.

Please check this https://wpshout.com/quick-guides/all-in-one-wp-migration/

Thanks!

Hi Rad,

You suggested to export and import a copy of my site between 2 different Wordpress installations. Do I need 2 Themeco licenses to do the job?

Thanks,
Chris

Hello Chris,

You can just simply revoke and revalidate your staging sites if you only have one license.
To do that;
1] Please go to X > Validation and revoke the validation (https://s3.amazonaws.com/community-themeco/app/uploads/2016/04/17110514/Capture53.jpg).
2] Please login to your APEX account and revoke the license.
3] After you have revoke the license, you need to re assign the license again to your site using this url: https://www.example.com/. You have to make sure that url you just assign is the same as the one you have in your settings, Settings > General > Site Address
4] Go back to X > Validation again, and insert your license code.

Hope this make sense.

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