Hello,

I use drupal core 5.6. After a new user has filled out the registration formular, the mail with the passwort was sent, but the drupal_set_message about the mail is not displayed.

I checked the $_SESSION Variable. Before pressing the submit button at the registration formular, the message text ('Your password and further instructions have been sent to your e-mail address.') is available in the $_SESSION['message'] Variable. On the next site it is gone.

Do you have any idea why?

Thanks.
Andre

Comments

indianerrostock’s picture

Furthermore, the $_SESSION Variable seems to be empty after the submit of the registration. So there's no information text for the user, that an email has been sent.

mkalbere’s picture

Do you have
"print $messages;"
in your page.tpl.php ?

indianerrostock’s picture

Yes, the "print $messages;" is in the page.tpl.php.

indianerrostock’s picture

The problem seems to be in relation with the cookies. If I click onto the submit button at the registration page, I will be sent to the front_page. During that submit, the cookie becomes deleted and a new session opened. So the status information, which are stored in the old cookie are lost.
Can't explain!

mkalbere’s picture

Did you modify your sites/..../settings.php the cookie domain is set there and this could mess up the process.
(and the front page redierct is on the same domain right ?

indianerrostock’s picture

I did not modify the setting.php...and yes, the front page redirect is on the same domain...

It's really not explainable...I checked the SESSION Variable...before the click on the submit button, it is filled...after the redirect...it's empty...
and I don't get the user message, that the email was sent to the user

indianerrostock’s picture

After reading another article, I realized, that the user with the id == 0 was deleted....after creating a user with id = 0, the message are back