Cornerstone not working on staging (but it is working on live)

Hi there,

I am experiencing an issue with Cornerstone in my staging environment.
Cornerstone is working perfectly fine on the live site, but I’m not able to use it in staging.

When I try to edit a page/post using Cornerstone in staging, I get this error:

Both the live site and the staging site are hosted with SiteGround. The SiteGround tech team have tried to fix this, but they have come to the conclusion that it is an issue with the Cornerstone plugin that they cannot fix.

This was their response:

I have been troubleshooting this issue and it appears as though there has been an update to the functionality of the CornerStone plugin and it currently requires that all URLs are set to be the same. The way the Staging tool in our cPanel works is by using mod_substitute and mod_host to preserve the standard WordPress applications URL within the configuration, but return a response as stagingN.domain.tld as a response.

Unfortunately the only way to have the plugin work is by setting the domain names within Settings -> General of the admin dashboard to staging1.builtwith.me, however this leads to a Too Many Redirects error. In order to resolve this issue, I would recommend you either try installing a different version of the CornerStone plugin, or consult with the developers for a potential workaround.

Could you please advise? It is critical that I am able to use Cornerstone in staging, however it is not currently possible for me?

Many thanks.

Hi There,

Thanks for writing in! I have tried to login to your WordPress back-end but I couldn’t. Please see the secure note.

In the meantime, could you please go through the following points and let us know how it goes.

First of all, try re-generating your permalink settings and see if that is related to your .htaccess file.

  • Check your permalink settings (General -> Permalinks) and set Postname save changes to re-create your .htaccess file.

Then the next possible issue would be that you’re running out of your memory. You can try increasing your PHP Memory limit. You can do this by editing your wp-config.php file which can be located under the root of your WordPress installation.

Add the following lines into that file.

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

You can add it before the line
/*That's all, stop editing! Happy Blogging. */

Check the following as well.

  • Make sure that you’re running at least PHP v5.6.x or later to avoid any WordPress related incompatibility issues. If you’re not sure what your server configurations and settings are, install a plugin like WP-Serverinfo (https://wordpress.org/plugins/wp-serverinfo/) and check your server info by head over to Dashboard -> WP Serverinfo area.
  • Check your PHP Max Execution Time and set it for 300 for optimal usage.

Further, our troubleshooting guide here (https://theme.co/apex/forum/t/troubleshooting-builder-preview-warnings/14404).

Thanks!

Hi @mldarshana

My apologies - the WordPress password has been updated to the password that I have in my original secure note. Logging in should not be an issue now.

I should not be running out of memory as it is a brand new site/domain. There is no content etc whatsoever on the domain/site.

I am currently using PHP v5.6.

Please advise for my Cornerstone query as listed in my original comment.

Thank you so much!

Hello There,

There is nothing wrong with your server or memory limit. It is your Site URL and WordPress Address URL settings because this is what Cornerstone is using.

It should be noted that the Site URL and WordPress Address URL in Settings > General must be the same as your WordPress dashboard. Please the screenshot in the secure note.

To resolve this, please edit your wp-config.php file and insert these lines:

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

example.com must be replace with the url of you dashboard.

Please let us know how it goes.

Hi

I have the same issue with SiteGround and staging.

It works fine when I just browse the site, but when I try to edit a page, it goes wrong.

As far as I understand, I neeed to do this:
define(‘WP_HOME’,‘http://www.staging1.rbfoto-erhverv.dk/’);
define(‘WP_SITEURL’,‘http://www.staging1.rbfoto-erhverv.dk/’);

But then I’m not able to browse the site.
It’s critical that it’s going to work, so I can edit my entire site to a new layout.

Cheers

Hello @rbitfoto,

Thanks for asking. :slight_smile:

My colleagues @mldarshana and @RueNel have shared few possible solutions. Please try them out and see how it goes. In case the problem is still there, please create a new ticket and share your concern in that. Someone from support team will help you out. Kindly review following on how we provide support:

Thanks for understanding.

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