Social Extensions Integration

CB Login Call to undefined method JApplicationSite::getUri()

  • basethic
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #1 by basethic
Hello,

I have some troubles using Joomdle in my system. My configuration is:
Joomla 3.7
Moodle 3.2.2+
Joomdle 1.1.1
CB 2.1.2+
System check - all green
Using Community Builder for user registrations and logins. All needed plugins are installed.
Joomla and Moodle are on same domain. There is SSL certificate installed. Moodle instalation is in a subdirectory.

Settings in Joomla and Moodle config - see the attachments
User registration is ok - new user is created in Joomla and in Moodle.

I also set in the config.php:
In Moodle: $CFG->wwwroot = ' www.myjoomlasite/mymoodlesite ';
In Joomla: $live_site = ' www.myjoomlasite.com ';

The problem is when user try to login, the page loads this error:
Call to undefined method JApplicationSite::getUri()

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #2 by Antonio Durán
Hi.

Thanks for the feedback. This is a known bug that will be solved in next release.
If you want to fix it now, edit file plugins/user/joomdlehooks.
Change:
Code:
$login_url = urlencode ($app->getUri ());
By:
Code:
{ $uri = JUri::getInstance(); $login_url = urlencode ($uri->toString(array('path', 'query'))); }

Please try and let us know.

Please Log in or Create an account to join the conversation.

  • basethic
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #3 by basethic
Hi! Thanks for your answer. The Uri problem doesn't show any more but now I recieve another error (pic in the attached file) related to user session and cookies. Do I have to change the path somewhere?

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #4 by Antonio Durán
That one I don't know where is coming from, or if it is related to Joomdle.
How/when are you getting the new error?
Try disabling joomdlehooks plugin and test again, to see if problem is related to Joomdle.

Please Log in or Create an account to join the conversation.

  • basethic
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 11 months ago #5 by basethic
It seems that it is a cross domain problem. To work properly CB should be set:
- in Joomla configuration.php (live_site should be set to '')
- no custom redirections in .htaccess
- cache should be disabled
Unfortunately Joomdle doesn't work with this settings. The registration process is ok but SSO doesn't work. I tried many variants with no luck.
What is the right way to set the links in Joomdle for Joomla and for Moodle, with or without www, https or http?
If I remove redirections in Moodle .htaccess file, is it ok to set the subdomain for my Moodle instalation (mymoodle.mydomain.com)?

Please Log in or Create an account to join the conversation.

More
8 years 11 months ago #6 by Antonio Durán
> Unfortunately Joomdle doesn't work with this settings. The registration process is ok but SSO doesn't work. I tried many variants with no luck.

That's the normal configuration, and SSO works for most people, so your problems must come from somewhere else.

If you have joomla and moodle on different domains, you must set "redirect-less SSO" to No.

> What is the right way to set the links in Joomdle for Joomla and for Moodle, with or without www, https or http?
You need to enter the right values you use: exactly the same you use in the browser.

Please Log in or Create an account to join the conversation.