Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Newsfeed actions and auto scroll not working on subdomains

10 years 9 months ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

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

10 years 9 months ago
Licenses:

HI, Sander.

Please, edit your first post and check htaccess credentials I can't bypass this protection.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 9 months ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

Hi,
The htaccess login is off now.

Grtz,

Sander

10 years 9 months ago
Licenses:

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.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 9 months ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

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?

10 years 9 months ago
Licenses:

Hi, Sander.

I assign developer to this thread.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 9 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

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.

thank you

10 years 9 months ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

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

10 years 9 months ago
Licenses:

Hi Sander,

which file you put that changes? if at core files it will disappear. as I know we never put absolute value for any variables.

Regards,
Albert

10 years 9 months ago
Licenses:

Hi Sander,

We have not received any response back from you in over 7 days, and would like to know if you consider this issue to be resolved. If you have any further questions, simply reply to this post.

Regards,
Albert

10 years 9 months ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

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

Regards,

Sander

10 years 9 months ago
Licenses:

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

10 years 9 months ago
  • Sander's Avatar
    Topic Author
  • Sander
  • Offline
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Licenses:
JomSocial Active

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

10 years 9 months ago
Licenses:

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

Attachments:
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW