By Karen Laksamana on Saturday, 25 October 2014
Replies 3
Likes 0
Views 1K
Votes 0
Hello,

I am having a issue where various components of Easy Social fail after we move a site from its original staging domain to another. I have tried various things and searched through various posts in the forums.

In the console I get the following errors and warnings:
"XMLHttpRequest cannot load http://photo.securetesting4.info/?option=com_easysocial&_ts=1414173801626. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://staging1.photo.securetesting4.info' is therefore not allowed access. " - listed from component.js

Also it will fail to load some of the scripts associated with these components. This will stop the ability to post comments, go the the "everyone" or wall page. Update options are not available, and more.

We have not registered the product associated to a domain currently because it is still in development. But after everything we tried I assume this is due to domain access and registration being tracked by the api code?

It will work on local host, just not on our testing server under more than one domain.
Hello Bruce Wilson,

I am really sorry for the delay of this reply as it is a weekend for us here.

Cna you provide us with your Joomla backend and FTP access so we can help you check on this?
·
Saturday, 25 October 2014 12:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry for the delay in getting the login info, weekend here too. :-)
·
Tuesday, 28 October 2014 02:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Bruce Wilson,

Sorry for late reply to this,
It seems like the problem here is the way Siteground is actually rewriting the urls. They are doing this on the webserver level and because our javascript files are cached (written on the file system), we retrieve the site url from a cached file. Hence, it always tries to make an ajax request to http://photo.securetesting4.info rather than http://staging1.photo.securetesting4.info/ which is a domino effect and cause the rest of the javascript codes to fail altogether.
Can you consult with your Siteground provider and see how it goes?
·
Tuesday, 28 October 2014 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post