Joomdle 1.0 Installation

login redirect stopped working

  • Peter
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #1 by Peter
login redirect stopped working was created by Peter
Today I have updated Joomla and Joomdle. After the upgrade, the login redirect doesn't work anymore. In the login module I indicated that after login, the user should go to site/dashboard, but he / she will be at site/moodle/auth/joomdle. I can not find where I can customize this. Can you help me or do you have a tip for me?

Regards,
Peter

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

  • Peter
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago - 8 years 11 months ago #2 by Peter
Replied by Peter on topic login redirect stopped working
I did some further testing. When i disable the Joomdle extentions in Joomla the login process runs flawless and gets the user to /site/dashboard. When i enable every Joomdle extention except the Joomdlehooks plugin it still runs OK but won't log the user in to Moodle (duh). Enabling this plugin doesn't get me to the url i mentioned before. Maybe i changed some settings. Now i'm being redirected to site/輽͕͍ձմ͡ɐ. I've seen this Chinese characters before (when i upgraded the Joomla Joomdle package and forgot to upgrade the Moodle plugins aswel).

Replacing joomdlehooks.php with the previous version does the trick but that's probably not the solution the author wants :-)
It's as far as i can go with the knowledge i have though.

Peter
Last edit: 8 years 11 months ago by Peter.

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

More
8 years 11 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic login redirect stopped working
Hi Peter.
Thank you very much for reporting the issue.

Please check this and test the proposed changes, to confirm that your problem is the same:
www.joomdle.com/forum/installation/12122...ade-to-joomdle-1-1-1

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

  • Peter
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #4 by Peter
Replied by Peter on topic login redirect stopped working
Hi Antonio,

Sorry, this change doesn't solve my redirect problem. Still Chinese characters in the URL.

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

More
8 years 11 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic login redirect stopped working
Were you running Joomdle 1.0.8 before upgrading?

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

  • Peter
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #6 by Peter
Replied by Peter on topic login redirect stopped working
version.php in moodle says 1.0.8.

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

More
8 years 11 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic login redirect stopped working
So, you did not update Joomdle on Moodle? You should always upgrade both sides.
That said, I think that will not help with this, but please try before we move forward.

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

  • Peter
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago - 8 years 11 months ago #8 by Peter
Replied by Peter on topic login redirect stopped working
Yes i did update both sides.
First i updated the Joomla component and came across this problem. Then i realised that i should update the Moodle part aswell. So i did, but it didn't solve the problem.
So now Joomla is running Joomdle v1.1.1 and Moodle runs auth_joomdle v1.1.1 (and theme_joomdlevs v1.7).
Last edit: 8 years 11 months ago by Peter.

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

More
8 years 11 months ago - 8 years 11 months ago #9 by Antonio Durán
Replied by Antonio Durán on topic login redirect stopped working
Sorry, I misunderstood.

Then the only other change in this release is the removal of deprecated JRequest.
You can try putting it back to see if that solves the issue by itself:
Change this in :do_login() function:
Code:
$return = $app->input->get('return');
By:
Code:
$return = JRequest::getVar ('return');
Last edit: 8 years 11 months ago by Antonio Durán.

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

  • Peter
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 11 months ago #10 by Peter
Replied by Peter on topic login redirect stopped working
Thats it! Thanx.
Is this caused by us running php version 6.30 on our server?

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