when "send email" is clicked in the contact module:

status messages like "the message has been sent" is displayed while logged in as administrator

such status messages are not displayed while logged in as anonymous user

code excerpt from "page.tpl.php" which prints messages:

/*************************************/

if ($messages):
print $messages;
endif;

/***********************************/

code excerpt from "contact.pages.inc" in contact module :

/***********************************************************/

function contact_mail_page_submit($form, &$form_state) {
....
drupal_set_message(t('the message has been sent.'));
....
}

/**********************************************************/

when "send email" button is clicked, "subject" and "message" entered in the contact module is sent to the appropriate email id. but the status message "the message has been sent" is not displayed while logged in as anonymous user.

plz help me to solve the aforeseen issue.

Comments

setvik’s picture

hmm... not sure.

I just tried it on a vanilla 5.7 install and it works fine.

What Drupal version are you using?

Do other status messages for the anonymous user appear correctly?

Ezhil_Valan’s picture

yeah other status messages are being displayed while logged in as anonymous user.

drupal 6.1

what shali i do to debug this problem? need help...

dharmanerd’s picture

I seem to be having a similar problem. I get no status messages on any pages. I have removed the if statement and still no $messages. Ezhill, can you list the modules you are using? My best guess is, there is a module messing things up, though I don't have any clue how.

-steve.

------------------------------------------------
http://www.designbrigade.com

dharmanerd’s picture

my issue was a custom theme. I added the css for messages and .status etc. from garland is all is working again. Prior to doing this I did check the source and the error messages were not showing up, so perhaps changing the default theme and then changing it back is what fixed my problem.

------------------------------------------------
http://www.designbrigade.com