Original code:
$reqURI = $this->_fixLangSwitcher($reqURI);
Replaced with:
$reqURI = $_SERVER;//$this->_fixLangSwitcher($reqURI);
Thanks for the support!
Your code does not affect ReCaptcha, but it does affect the backend of Jomsocial:
In the backend "User Engagement & Statistics" works perfect with original code ($reqURI = $this->_fixLangSwitcher($reqURI);), but not with your new code ($reqURI = $_SERVER;//$this->_fixLangSwitcher($reqURI);)!
I am 100% certain
Suddenly
www.heartslovefree.com/user-registration
is not working when I press next. It keeps saying "Session expired. Please try again later" or "Invalid token".
So what has changed?
I have disabled the compression plugin and now it works on www but not on subdomains!
I am getting "Undefined error" on subdomains such as
da.heartslovefree.com/user-registration
, when i type USERNAME etc.
TIP: Maybe this is the way to go about this issue!
RE: GTRANSLATE AND JOMSOCIAL COMPATIBILITY ISSUES!!!
New postby Edvard » Sat Jan 09, 2016 6:05 pm
Hi,
Please find my answers below:
Yes, other domains are proxied to the main domain.
You can find a current selected language from this variable: $_SERVER and determine the current domain.
Thanks!
- See more at:
gtranslate.net/forum/gtranslate-and-joms...sthash.jies9KVR.dpuf
CHECK SOLUTIONS, especially result number 01.:
www.google.dk/webhp?sourceid=chrome-inst...on%20proxy%20domains
aah good input, thank you, I changed the code to be like this :
if(isset($_SERVER['HTTP_X_GT_LANG'])){
$reqURI = 'http://'.$_SERVER['HTTP_X_GT_LANG'].'.'.$_SERVER['SERVER_NAME'];
}
It works GREAT eventhough there are a couple of minor issues remaining, but i think i can live with them... for now.
Except for This page (
www.heartslovefree.com/customer-serviceis
) is giving a warning message, but i am not sure if its you who caused it or the developer from FreiChat, however can you determine why it is warning me and maybe how to fix it back:
Strict Standards: Only variables should be assigned by reference in /home/simtanda/public_html/heartslovefree.com/plugins/user/profileplus/profileplus.php on line 36
Strict Standards: Only variables should be assigned by reference in /home/simtanda/public_html/heartslovefree.com/plugins/user/profileplus/profileplus.php on line 36
Simply, you go to Joomla configuration and change error reporting to none
I i just upgraded to the latest jomsocial and then i added your code to ajax file, but got the following error. So what has changed?
Parse error: syntax error, unexpected 'defined' (T_STRING) in /home/simtanda/public_html/heartslovefree.com/plugins/system/jomsocial.system/pc_includes/ajax.php on line 1
Hi Hans,
I dont see that error, everything is fine for here.
thank you!
Funny, now it's working!