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.

Problem with access front-end in different server (URL BUG)

10 years 4 months ago
Licenses:
JomSocial Expired

I'm using the jomsocial as a intranet.
The jomsocial don't has the ACL control to specific a group of use to see the menu (jconfig params)
After you do the login in backend, go to link www.cagece.com.br/social/administrator/i...option=com_community to access the jomsocial

To see the front-end, there is a bug in jomsocial
I use the proxy reverse to put this in my domain, but the jomsocial alway try to get the files from the original URL, not the actual URL, like all the others components from joomla.

For exemple, the original server is 172.25.131.107, but I'm accessing the jomscial in another server, using the address www.cagece.com.br/social

In firebug we can see the networking request to local ip and not to proxy server. It's happen because the jomsocial uses the absolute urls and not the relative urls.

10 years 4 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Otavio,

Can you try check Joomla configuration.php and check this var $live_site, make sure the value is " www.cagece.com.br/ "

thank you

10 years 4 months ago
Licenses:
JomSocial Expired

The var $live_site is empty. I need put this? In other sites I always use this with empty value.

The server that has the jomsocial should be accessible by the internet e intranet.

But I put the value and the same happens.
Just some files don't load correctly, like:
Avatars
Css e js from com_comunity/assets
font from com_comunity/templates

this files always use the absolute url.

my $live_site is now " www.cagece.com.br/social "

I'm using the joomla 3.3

10 years 4 months ago
Licenses:
JomSocial Expired

I have another problem from jomsocial. The component injects this in my homepage:

/*<![CDATA[*/
var jax_live_site = ' cagece.com.br/social/index.php ';
var jax_token_var='a5b83957fd586110296b2e5177c9dc6e';
/*]]>*/

but the url is wrong. It's coming without the "www"

10 years 4 months ago
Licenses:
JomSocial Expired

I don't know the why of jomsocial don't works well using the proxy server (apache function), but I created some temporary code to fix it.

It isn't the best way to do it, but I hope that you guys can give me a better solution.

My solutions is put this code above in index.php of the template.

if (array_key_exists('HTTP_X_FORWARDED_HOST', $_SERVER)) {
	$doc->_links = array('http://'.$_SERVER['HTTP_X_FORWARDED_HOST'].'/social/' => $doc->_links['http://'.$_SERVER['HTTP_HOST'].'/social/']);
	$doc->base = str_replace($_SERVER['HTTP_HOST'], $_SERVER['HTTP_X_FORWARDED_HOST'], $doc->base);
	$temp = array();
	foreach($doc->_custom as $k => $d) {
		$pos = strpos($d, 'http://');
		if ($pos && substr($d, $pos, 8) != 'http://w') {
			$d = str_replace('http://', 'http://www.', $d);
		}
		$d = str_replace($_SERVER['HTTP_HOST'], $_SERVER['HTTP_X_FORWARDED_HOST'], $d);
		$temp[$k] = $d;
	}
	$doc->_custom = $temp;
}

10 years 4 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Otavio,

I am not sure this issue caused by Jomsocial itself or from Joomla, because we are using route method from Joomla itself JRoute function, are you use this issue only happens on jomsocial and doesnt happen on another component?

I also check your site last week, and I even cant access your site because (Joomla pages not Jomsocial)

thank you

10 years 4 months ago
Licenses:
JomSocial Expired

Hi Dimas

This problem happens just in jomsocial =(
Another components, like k2, it's normal to me.
I'm using the joomla 3.3

10 years 4 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Otavio,

I just checked this again, and seems already fixed right? just posted new status and works fine.

thank you

Attachments:
10 years 4 months ago
Licenses:
JomSocial Expired

Yes, it's fixed. I said this before.
But I need change the template code to fixed it. (the code is in the another post)
Is there any chance of this correction to be done in jomsocial?

10 years 4 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

For time being I suggest you use your own solution, we still cant find the issue on jomsocial route, since jomsocial is using route from Joomla Route itself.

10 years 4 months ago
Licenses:
JomSocial Expired

That's ok.

This issue just happens when I use the jomsocial with apache proxy server

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