Hi,
I have Gtranslate Enterprise on foedies.com with the Jomsocial component. This means there are multiple versions of the website located on different subdomains like en.foedies.com and de.foedies.com. The newsfeed is not working for some reason on these subdomains. You can't place a comment, like a message or load more messages. When looking at the page with the Javascript Console I get the following error: Uncaught SyntaxError: Unexpected token <
You can find the newsfeed here:
en.foedies.com/community.html
You can login with guest >> guest
Hopefully you can help me out.
Htaccess login is off.
Regards,
Sander
HI, Sander.
Please, edit your first post and check htaccess credentials I can't bypass this protection.
Hi, Sander.
I don't think it's related with Gtranslate Enterprise.... it looks rather as a kind of script conflict (but I don't see any relevant error in console)... or script time out...
Also it seems that you customized a lot of core files:
prntscr.com/4m2993
We don't support customized core files. Please, roll back them to original state and try if issue persist.
I changed all the customizations back. There are no modified files now. Can you check again?
The problem is related to the JavaScript variable:
var jax_live_site = '
foedies.com/index.php
';
should be
var jax_live_site = '/index.php';
Is this the issue? Can I change this manually?
Hi, Sander.
I assign developer to this thread.
Hi Sander,
I cant see the jomsocial component on your subdomain site
en.foedies.com/index.php?option=com_community
, it only shows :
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
Hi Dimas,
This sometimes happens when the server is slow. Should work fine now.
I already solved it by changing the the Ajax script:
var jax_live_site = 'foedies.com/index.php';
TO:
var jax_live_site = '/index.php';
This is a hard coded fix and disappears when I re-install Jomsocial. Is there a better fix?
Gr,
Sander
Hi,
I've been testing for quite some time and I still can't get it to work. I've been trieng the following code.
So I'm usting Gtransalte that uses subdomains (via reverse proxy) so that each subdomain gets an automatic translation of the content. Like I mentioned the newsfeed doesn't work when on a translated page.
With the following code the newsfeed scrolling actually works, but when I post an update in the feed it doesn't show up.
Hope you can help me out. I'm kinda stuck now.
$returnLang = $_SERVER['HTTP_X_GT_LANG'];
if (!$returnLang)
$reqURI = $reqURI;
else
$reqURI = str_replace("www", $returnLang, $reqURI);
$html =
"<script type='text/javascript'>
/*<![CDATA[*/
var jax_live_site = '$reqURI';
var jax_token_var='$tokenStr';
/*]]>*/
</script>";
Hi Sander,
newsfeed = activities stream? I can put any comment and auto scroll is working fine. but I cant post any status from share box.
please turn off askimet from anti spam setting at backend.
I not really clear with your issue, maybe I missing something. can you provide me the screenshot to show me the issue?
FYI: i need FTP access in future, for the bugging purpose. current FTP account is not valid.
Regards,
Albert
Hi Albertus,
Did you try
www.foedies.com/kookclub.html
or
en.foedies.com/kookclub.html
? It's regarding the translated pages, for example es.foedies.com and en.foedies.com. I still can't post anything.
I've send you the FTP details via DM via you profile.
Hope you can help me out.
Regards,
Sander
Hi Sander,
the problem with Askimet API. because you using subdomain. please read this doc:
akismet.com/development/api/
or you can turn off Askimet at jomsocial backend > configuration > anti spam
Regards,
Albert