Hi,

Hopefully someone can help..

I have a page manager/panels layout page for a particular content type.. If I edit the content I can see the "...has been updated." system message..

Now I have created a rule (rules module) to show a message to the user is a certain field is empty..

The rule works and if I disable the page manager variant the message is displayed.. With the variant enabled the message doesn't display..

I have tried adding the "system messages" page element to a panel but still only system generated messages show and not those generated by the rule I have created..

Anyone have any ideas?

Thanks..

Comments

Letharion’s picture

Status: Active » Closed (duplicate)

I don't immediately find the issue, but I know that this has been discussed before, probably more than once. Please search the issue queue a bit more. I'm closing this one a dup for now, but if you really can't find the answer, re-open and I will help dig around. :)

wipeout_dude’s picture

Status: Closed (duplicate) » Active

@ Letharion - I am still not having much luck solving this so if you could give me some pointers or things to try I would appreciate it.. Thanks..

wipeout_dude’s picture

Just for clarification.. Rules that run on create or edit events are showing messages on panels pages with no problem.. Its just messages that I want to show when a page is viewed that seems to not work..

merlinofchaos’s picture

Project: Panels » Rules
Version: 7.x-3.2 » 7.x-2.x-dev

Let's try in the Rules queue. I don't know how Rules works so can't really help.

jasonawant’s picture

Title: Rules generated system messages not showing.. » Rules generated system messages not showing in Panels system messages pane
Project: Rules » Panels
Version: 7.x-2.x-dev » 7.x-3.2

Hi,

I think this is a Panel issue really.

I've tested a simple rule that has the following.

  • event: After saving new content
  • action: Show a message on the site
  • action: Send mail

I also used drupal_set_message() in a node preprocess function as a control. The action: Send mail is also a control to ensure the rule fires everytime, and it does...email is delivered.

I'm printing $messages in zone--content.tpl.php (an omega theme template file). $content is also printed in this file after $messages.

I'm using the page element, status messages in a panel pane of a node variant.

If I disable the status message panel, the rule's action message and my control drupal_set_message() appear as expected where $messages is printed in the zone-content.tpl.php.

If I enable the status message panel, only the drupal_set_message() appears in the status message panel. Note, neither the rule message or the drupal_set_message appear where $messages is printed in the zone--content.tpl.php file.

If I remove $messages from the zone--content.tpl.php file, only the drupal_set_message() appears in the status message panel.

Does this seem like an issue with Panels? Thanks, Jason.

garamani’s picture

Issue summary: View changes

Here I want to share the Problem I had (Showing status messages in Panels) and the solution:
I use panels everywhere and I couldn't see any messages by default settings.
I expected to see system messages Automatically, But If you want to see System messages (including Rules Messags) you need to add status messages to panes.

1. Structure > Pages > EDIT SITE TEMPLATE
2. click on Gear icon > Add content (above the Main page content)
3. Click on "Page elements"
4. add Status messages
5.Update and save

Now you can see the system messages in panels (Using Page Manager).

kruser’s picture

The issue still exists regarding the Node add/edit via Page Manager, adding the Page elements>Status messages. The messages won't display whether they are from Rules or just regular validation errors.

setvik’s picture

Same problem as kruser.

Status Messages pane is broken on node add/edit pages.

Problem is because template_process_page (which calls drupal_get_statuses and resets the status message array) gets called before Panels renders the status messages pane... (for some reason, this only happens on node add/edit pages... the functions are called in the opposite order on other pages).

Simple fix over in this thread:
https://drupal.org/node/2164161#comment-8577099