Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using a module that triggers on cron (feeds and aggregrator module), status messages are shown to anoymous users when poormanscron runs. This is undesired behaviour. In the 6.1 branch there was a check for this, but this seems not the case any more. Poormanscron should suppress these messages to anonymous users.
See also: #867054: Suppress status messages to anonymous users when using poormanscron and #371157: Don't show aggregator messages to anonymous users
Comments
Comment #1
Hanno CreditAttribution: Hanno commentedI meant #867054: Suppress status messages to anonymous users when using poormanscron and #371157: Don't show aggregator messages to anonymous users
This was the code to suppress messages in the 6.1 branch, but currently omitted in 6.2 and 7
Comment #2
Hanno CreditAttribution: Hanno commentedAny news on this? Is this the right issue queue, or is Drupal core the right place?
Comment #3
Dave ReidIt's not going to be fixed here until it were to be changed in core, and that is not likely. It should be the responsibility of the module implementing cron to not show messages, like your aggregator issue that you've linked to.
Comment #4
Hanno CreditAttribution: Hanno commentedWill report this back to the feeds issue queue and hope this will be resolved. Is it already fixed for aggregrator and poormanscron for Drupal 7 in core?
Comment #5
klonosI don't know if it is likely to be fixed in core or not, but if it were to, then an issue needs to be filed for it first. So, is there an issue filed for core?
Comment #6
klonos...I mean, it seems better if the issue could be solved in a single 'central' manner instead of relying on proper module coding. Right?
Comment #7
xandeadx CreditAttribution: xandeadx commentedsubscr
Comment #8
yang_yi_cn CreditAttribution: yang_yi_cn commentedagree with #6, subscribing
Comment #9
tmsimont CreditAttribution: tmsimont commentedI really think that this should be addressed within this module. If cron were to run normally (via a cron job on the server, and not through the method this module presents) then no user would see a message.
Therefore this isn't a core issue. Poormanscron sidesteps the way cron should run in core, by essentially letting anonymous users to run it. Because of this, this problem shouldn't be put off to core fixes -- the problem comes from this module and should be addressed in this module.
In the mean time, I'm gonna just try this:
http://drupal.org/project/disable_messages
Comment #10
tmsimont CreditAttribution: tmsimont commentedComment #10.0
tmsimont CreditAttribution: tmsimont commentedfixed link to issue