warnings after login into moodle

  • Martin Kohoutek
  • Topic Author
  • Offline
  • New Member
  • New Member
More
14 years 1 month ago #1 by Martin Kohoutek
warnings after login into moodle was created by Martin Kohoutek
Joomla 1.6., moodle 1.9, joomdle 0.7:

The moment I try to log into Moodle appear for a while these warning:

Notice: Undefined index: newpassword1 in /****/moodle/auth/joomdle/auth.php on line 3240

Warning: session_regenerate_id() [function.session-regenerate-id]: Cannot regenerate session id - headers already sent in /****/moodle/lib/moodlelib.php on line 3290

Warning: Cannot modify header information - headers already sent by (output started at /****/moodle/auth/joomdle/auth.php:3240) in /home/samouk/public_html/moodletest/lib/moodlelib.php on line 2749

Warning: Cannot modify header information - headers already sent by (output started at /****/moodle/auth/joomdle/auth.php:3240) in /****/moodle/lib/moodlelib.php on line 2750

After a few seconds, the page redirects to the main page moodle. Login is correct. Is it normal?

Martin K.

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

More
14 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic Re: warnings after login into moodle
Hi. Thanks for the bug report.

I guess this has been not reported before because most people run with warnings off.
Anyway, you can change line 3240 in auth.php by this one:
Code:
if ( (array_key_exists ('password', $_POST)) && (array_key_exists ('newpassword1', $_POST)) && (array_key_exists ('newpassword2', $_POST)) )

I fixed it for next release.

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