Of the handful of content types on our site, some of them don't display the message status (ex. Article Test has been created) when the node is saved.

Where can I investigate the cause?

2 Answers 2


This message comes from node.pages.inc (never edit Drupal core) in a form submit function and I believe messages are stored in the $_SESSION['messages'] variable. I would try to get at these with a hook_form_alter() and custom validation and submit handlers to see where it might be dropping.

If you're running any custom code look specifically for interactions with the $_SESSION variable. Clobbering or unsetting it could prematurely remove these messages.

If you use the devel module you can simply use the following.

dd($_SESSION['messages']); //Logs to drupal logs
dpm($_SESSION['messages']); //Outputs debug information to screen

You can also create your own messages using drupal_set_message()

For example:

drupal_set_message(t('It worked!'), 'status');

You may also want to check that you don't have something like the Disable Messages module installed or misconfigured.

  • 1
    Also, I would check the theme is really printing those messages.
    – apaderno
    Nov 12, 2015 at 5:47

It may also be necessary to insert a drupal_get_messages() statement in hook_node_insert(), hook_node_submit() or if you are using tpl files for the nodes then place that in the tpl file or any form callbacks. Not sure why it would work for other content types but not others though.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.