By JV on Friday, 20 February 2015
Posted in General Issues
Replies 7
Likes 0
Views 428
Votes 0
I have installed ES on a "Staging" area provided by SiteGround for testing purposes. There are many functions of ES that do not seem to work.

* I can't post.
* When I try to set Privacy settings on the front end, I can only access the first item on the list -- Story Viewing. Clicking on the other items on the left does nothing -- Profile, Friends, Photos, etc.
* When Browsing Users, if I click on one of the Sort options, the page just hangs. I have to refresh the page for the sort to appear.
* If I select a user and try to Follow, Message, or Add As Friend, nothing happens.

Is this because this is installed in a staging area?
Hello Jv,

There is a known issue with the staging feature from Siteground. Their staging technology rewrites all "domain.com" to "staging.domain.com" on before the data is being sent back to the server. However, this is an issue when the js file is being served. Because we cache our javascripts on the filesystem, these data's aren't using the staging domain because Siteground doesn't rewrite this part and these causes most of the ajax calls to fail.
·
Friday, 20 February 2015 22:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark,

I was experimenting with this issue and discovered that if I go into the configuration.php file and modify the $live_site parameter to read 'staging1.mydomain.com', most of the features of ES begin to function. I say most because there are still a few odd things occurring, but for the most part, I am now able to post, message, set privacy, etc. I thought this might be helpful to other SiteGround users, unless this parameter modification is not a good idea!!! What do you think?

jv
JV
·
Wednesday, 25 February 2015 08:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello JV,

Hm, if you modify the configuration.php file that should enforce all links to be staging1.mydomain.com but would this affect your live site?
·
Wednesday, 25 February 2015 10:22
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't think it would affect the live site because I am modifying the configuration.php file in the staging site's directory. I'm not modifying the config file of the actual main live site. That site appears to be unaffected.
JV
·
Wednesday, 25 February 2015 21:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Jv,

Hm, I see. If siteground actually "duplicates" the filesystem for your staging site, I believe it's perfectly fine to alter the live_site value.
·
Thursday, 26 February 2015 00:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I believe they copy everything over to a new directory.
Thanks, Mark.
JV
·
Thursday, 26 February 2015 00:23
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, I see. Thanks for the heads up on this!
·
Thursday, 26 February 2015 00:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post