Pro not compatible with SiteGround hosting

This is really crippling to site development.

Please provide a resolution.

Thanks,

Greg

Hi Greg,

Are you having issues on live site? Or staging environment?

If staging, this is a known issue and please see this guideline https://theme.co/apex/forum/t/update-siteground-staging-issues/15577

If live, please post the details of your issues here.

Best regards.

The staging environment.

The guideline you provided is known, by me, and is worthless since it doesn’t work. Any changes aren’t saved and you’re unable to preview changes.

I provided the following to a tech, with Siteground, “George M” on a ticket I submitted to provide additional information regarding this issue (according to “George M”, Siteground isn’t working on anything regarding this issue):

https://wpsmackdown.com/problem-siteground-staging-sites/

George M responded:

Thank you for the update,

I reviewed the provided article and I updated the home and siteurl of the staging installation as follows:

Code:
donotign@usm32 [~/staging/1]# wp option update home http://staging1.donotignoreus.org
Success: Updated ‘home’ option.
donotign@usm32 [~/staging/1]# wp option update siteurl http://staging1.donotignoreus.org
Success: Updated ‘siteurl’ option.

I also updated the rest of the URLs in the database of the staging copy, but that didn’t yield any results either:

Code:
donotign@usm32 [~/staging/1]# wp search-replace ‘https://www.donotignoreus.org’ ‘http://staging1.donotignoreus.org’ --precise --recurse-objects --all-tables-with-prefix --network
Success: Made 470 replacements.

https://www.awesomescreenshot.com/image/3041513/db25d278fb9267bb94ad4cae1b2b6eaf

Should you need further assistance on our end, make sure to reach out.

Best Regards,

Georgi Milkov
Technical Support

Hello There,

The Pro Content editor is using the Site URL setting in Settings > General. The site url must be the same as the url of your WordPress dashboard. If you cannot edit the site url, you may need to define it in your wp-config.php file. Please edit your wp-config.php file and insert this:

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

example.com must be the same as the url of your wordpress dashboard. If this does not work, please provide us access to your site and FTP so that we can investgate.

Thank you.

Following the changes Siteground made to my staging site:

I’m now unable to access the staging site getting the following: 403 - Forbidden Error
You are not allowed to access this address.
If the error persists, please contact the website webmaster.
If you are the webmaster of this site please log in to Cpanel and check the Error Logs. You will find the exact reason for this error there.

Common reasons for this error are:

Incorrect file/directory permissions: Below 644.
In order files to be read by the webserver, their permissions have to be equal or above 644. You can update file permissions with a FTP client or through cPanel’s File Manager.

Restrictive Apache directives inside .htaccess file.
There are two Apache directives which can cause this error - ‘Deny from’ and ‘Options -Indexes’.

I updated my Siteground ticket and provided your suggested changes:

Thank you for the update,

I corrected the issue with the 403 forbidden error and you should now be able to access the staging copy.
Updating the home and site URL is what I did earlier and it did not work. I added the following to your wp-config.php file as well, but that didn’t yield any results either.

Code:
define(‘WP_HOME’,‘http://staging1.donotignoreus.org’);
define(‘WP_SITEURL’,‘http://staging1.donotignoreus.org’);

The way the plugin works is not compatible with the staging tool.

Should you need further assistance on our end, don’t hesitate contacting us at any time.

Best Regards,

Georgi Milkov
Technical Support

Is it possible to have a functional staging site using Pro with Siteground?

Thanks,

Greg

Hello There,

The only workaround provide by SiteGround can be found here:

Please see the “Seeing the error in a SiteGround staging environment?” section.

Thank you for your understanding.

It would appear that using Pro in a staging environment isn’t possible… According to George M. a Siteground guru:

George M.
Support Guru Posted On 16 Dec, 2017 00:01 CST

Thank you for the update,

We’ve attempted all the suggestions from the article you provided earlier:

None of them work due to the way the Pro builder functions - it is incompatible with the staging tool even with the entire staging website being reconfigured to use the “staging1” subdomain as “home” and “siteurl”.

If anything else comes up, make sure to reach out.

Best Regards,

Georgi Milkov
Technical Support

Hello There,


​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

Thank you.

Hello There,

Thanks for providing the information. I have login and I found this:

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

define('WP_HOME','https://www.staging1.xxxxxxxxxxxxxx.org');
define('WP_SITEURL','https://www.staging1.xxxxxxxxxxxxxx.org');

Hope this helps. Please let us know how it goes.

Added the two lines directly before:
/* That’s all, stop editing! Happy blogging. */

“define(‘WP_DEBUG’, false);
define(‘WP_HOME’,‘https://www.staging1.donotignoreus.org’);
define(‘WP_SITEURL’,‘https://www.staging1.donotignoreus.org’);
/* That’s all, stop editing! Happy blogging. */”

Went to view the site: This page isn’t working
www.staging1.donotignoreus.org redirected you too many times.
Try clearing your cookies.
ERR_TOO_MANY_REDIRECTS

Cleared history and cookies, received the same response.

Thanks,

Greg

Hi there,

Unfortunately, we are not sure why that is happening to you. It is really a matter of server configuration. Please kindly contact the SiteGround without mentioning our theme.

Just tell them that you need to change the Home and Site URL to https://www.staging1.donotignoreus.org

And tell them you added the proper config in the WordPress config file but it sends the redirect problem.

This is really a matter of the staging tool of the Siteground and unfortunately without having the correct home and site URL Cornerstone cannot work.

Thank you for your understanding.

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