Jomsocial Ajax in newsfeed won't work

Popular automatic website translation tool

Jomsocial Ajax in newsfeed won't work

Postby foedies » Fri Sep 12, 2014 1:41 am

Hi,

I have Gtranslate Enterprise on foedies.com with the Jomsocial component. The newsfeed works with Ajax and is not working for some reason. 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: http://en.foedies.com/community.html

You can login with guest >> guest

Hopefully you can help me out.

Regards,

Sander
foedies
 
Posts: 19
Joined: Tue Aug 26, 2014 10:45 pm

Re: Jomsocial Ajax in newsfeed won't work

Postby Edvard » Fri Sep 12, 2014 1:36 pm

Hi,

The problem is related to the JavaScript variable:

var jax_live_site = 'http://foedies.com/index.php';
should be
var jax_live_site = '/index.php';

Thanks!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Jomsocial Ajax in newsfeed won't work

Postby foedies » Thu Oct 02, 2014 11:13 pm

Hi Edvard,

I tried the following code:

$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>";

The scrolling works, but posting updates doesn't. Also tried the 'index.php' you mentioned, but the same outcome.

Any ideas?

Regards.

Sander
foedies
 
Posts: 19
Joined: Tue Aug 26, 2014 10:45 pm

Re: Jomsocial Ajax in newsfeed won't work

Postby foedies » Fri Oct 03, 2014 5:09 pm

Hi Edvard,

I found out that it was Akismet that was causing the issue, because it's being called from a subdomain. Do you have experiece with this issue in combination with Gtranslate?

Regards,

Sander
foedies
 
Posts: 19
Joined: Tue Aug 26, 2014 10:45 pm

Re: Jomsocial Ajax in newsfeed won't work

Postby Edvard » Fri Oct 03, 2014 9:18 pm

Hi,

Can you please let me know what I need to do to see the issue? It seems to be changed from the initial post.

Thank you!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: Jomsocial Ajax in newsfeed won't work

Postby foedies » Wed Oct 08, 2014 11:46 am

Hi Edvard,

It's a Akismet license issue. I'll need to fix this myself. Thanks for your response!

Regards,

Sander
foedies
 
Posts: 19
Joined: Tue Aug 26, 2014 10:45 pm

Re: Jomsocial Ajax in newsfeed won't work

Postby Edvard » Wed Oct 08, 2014 3:57 pm

Thank you!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4183
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron