How To / General

Problem with redirections in J4 und Joomdle 2

  • StefanGros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #11 by StefanGros
Replied by StefanGros on topic Problem with redirections in J4 und Joomdle 2
OK here is my newest investigation result:
I had an old backupsite from my mainsite (after the resore of an more recent backup failed due to unknown reason). I have a special configuration where my moodle is in a folder below the website ( www.kepos.at/moodle ). When i make a backup with Akeeba the directory is saved also but not the Moodle-Database. So if i restore the site two sites point to the same moodle database. That leads to very strange results at login and logoutbehavior since the setting i made in Joomla are ignored and i was allways redirected to the Main-Site ( www.kepos.at ) instead to the test-Site (test7.gros.at). This behavior stops as soon as i deinstall joomdle and the redirections i make in the loginformular work. Luckyly the site didnt crash this time after deinstalling joomdle.

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

More
4 years 4 months ago #12 by Antonio Durán
Replied by Antonio Durán on topic Problem with redirections in J4 und Joomdle 2
> So if i restore the site two sites point to the same moodle database.

Sorry I am a bit loss. Do you mean that you restore it into another folder to have a test site? Then you will also need to backup Moodle database, and replicate it to use in the site copy, changing Moodle config.

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

  • StefanGros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #13 by StefanGros
Replied by StefanGros on topic Problem with redirections in J4 und Joomdle 2
Yes did that for testing purpose with very strange effects. I think because the redirection doesnt lead to the calling site but the site specified in moodle.
So a login to a testsite like test7.gros.at with moodle at test7.moodle.at/moodle which is a backup from www.kepos.at and kepos.at/moodle, and a shared database, works but redirects to www.kepos.at , and ignores all redirectionsetting of test7.gros.at. But no matter what i do if i enable userhooks and try to login i get a error 500. if i disable it. I habe no singlelogin and usersync but everything works fine.

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

More
4 years 4 months ago #14 by Antonio Durán
Replied by Antonio Durán on topic Problem with redirections in J4 und Joomdle 2
Errror 500 is a server error, so you should check your logs to see if you can find any clue.

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

  • StefanGros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago #15 by StefanGros
Replied by StefanGros on topic Problem with redirections in J4 und Joomdle 2
HTTP-Fehler 500.50 - URL Rewrite Module Error.
detailed errordescrition:
Modul RewriteModule
Benachrichtigung BeginRequest
Handler php-7.4.23
Fehlercode 0x80070005
called URL www.kepos.at:443/moodle/auth/joomdle/lan...%3Ftask%3Duser.login
Physischer Path C:\inetpub\websintern\kepos\moodle\auth\joomdle\land.php

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

  • StefanGros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 4 months ago - 4 years 4 months ago #16 by StefanGros
Replied by StefanGros on topic Problem with redirections in J4 und Joomdle 2
www.kepos.at:443/moodle/auth/joomdle/land.php?username=
lord&token=6f910ce5d5322ce32f0848f84ae33268&use_wrapper=0&create_user=0&wantsurl=%2Ffreunde%2Fanmeldung%3Ftask%3Duser.login
Last edit: 4 years 4 months ago by StefanGros.

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

More
4 years 3 months ago #17 by Antonio Durán
Replied by Antonio Durán on topic Problem with redirections in J4 und Joomdle 2
If I just enter the URL with the error in the browser:
www.kepos.at/moodle/auth/joomdle/land.ph...%3Ftask%3Duser.login

I get the Error 500. So, If you cannot find the cause, I would contact the hosting company and send them the link, to see if they know why it is throwing an error.

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

  • StefanGros
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
4 years 3 months ago #18 by StefanGros
Replied by StefanGros on topic Problem with redirections in J4 und Joomdle 2
You were rigt. It was a security problem on the server, the rights on the joomdle folder were diferent then all other moodle folders, which is a bit strange since i installed joomdle via moodle, after reinherit all the rights it works well again. Thanks a lot for your help, sorry for the additional work.

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

More
4 years 3 months ago #19 by Antonio Durán
Replied by Antonio Durán on topic Problem with redirections in J4 und Joomdle 2
No problem, I am glad you got it working. Thanks for letting us know about the solution.

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