Needs work
Project:
Aggregator
Version:
1.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Feb 2009 at 20:19 UTC
Updated:
31 Mar 2022 at 23:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ainigma32 commentedI believe this comment http://drupal.org/node/342128#comment-1203466 can be used for that.
Please post back how that works out for you.
- Arie
Comment #2
kenorb commentedYes, but it's not solution for 6.x :)
http://drupal.org/node/291026#comment-952337
http://drupal.org/node/291026#comment-973800
Temporary I've uncommented drupal_set_messages generated by aggregator.
Comment #3
ainigma32 commentedLOL I missed that was your own post :-D
I guess you mean it's a workaround and not a final solution right?
AFAICT from the comments in #291026: change E_NOTICE to warning and allow selection of error level there are no plans to back port that patch to D6 but I guess you could give it a try.
- Arie
Comment #4
kenorb commentedBut aggregator can be patched in some other ways, like:
- don't show drupal messages when run via cron
- additional option to hide the messages for specified role
- show messages only for users who have permission: 'administer news feeds'
etc.
Comment #5
pieterdcDon't like to do it this way, but still: "subscribe".
Temporary I've uncommented drupal_set_messages generated by aggregator, because most of them get logged by watchdog() anyway
Comment #6
kenorb commentedYou can try workaround:
http://drupal.org/project/drupal_tweaks (Msg tab).
It will filter messages which you choose.
Comment #7
yan commentedI'd like to support this feature request. It should be possible to control the messages. I'm using Poormanscron, too, and that way anonymous users trigger the cron run and then get the message.
Comment #8
gaele commentedI see these messages in one message box, while not logged in:
Now:
Comment #9
gaele commentedThe problem: aggregator_refresh() is called both from cron and from /admin/content/aggregator (a manual refresh). In the latter case you do want messages shown to the screen, in the former you don't.
The patch does this:
Comment #11
gaele commented#9: aggregator.patch queued for re-testing.
Comment #13
gaele commentedComment #15
rayasa commentedHere's a patch implementing kenorb's 3rd option in #4
With this patch the system messages related to feeds will be shown only to those users who have 'administer news feeds' privileges.
Comment #17
rayasa commentedComment #19
kevinwal commentedSubmitting the last patch after rebuilding from current head release.
Comment #20
gaele commentedComment #22
kevinwal commentedComment #23
kevinwal commentedComment #25
pramudya81 commentedsubscribing
I want this feature too. We should be able to control to whom the message displayed.
Comment #26
klonossubscribing...
Comment #27
kevinwal commentedComment #29
gaele commentedHi kevinwal, perhaps try here: #894166: testbot cannot find file in patch for 6.19
Comment #30
kevinwal commentedThanks Gaele, I'll take a look. Not sure what I'm doing wrong here. Tried a handful of times.
Comment #31
liam43 commentedsubscribing
Comment #32
jleroi commentedsubscribing
Comment #33
gaele commentedPatch from #27. (See #894166: testbot cannot find file in patch for 6.19)
Comment #34
filemakers commentedHi
Sorry to slip this in here, i am new to Drupal, "1 month", I am also having this issue on this module, could you tell me what I need to do to install this patch? happy to test Beta's as the alternative is that I remove this functionality until resolved.
Comment #35
klonos...go to top of this page -> enter the term 'patches' in the search field and start a search -> in the search results, the 4th or so is one called 'Applying patches' -> visit this link -> read and experiment -> if patch refuses to be applied, go to the end of that article and visit the 'Applying a patch manually' link -> once again read end experiment.
I am sure that after a few tries you'll get it right. Good luck with it ;)
Comment #36
Vayira commentedsubscribing
Comment #37
kevinwal commented#27: aggregator.patch queued for re-testing.
Comment #39
gaele commentedkevinwal, testbot only tests on D7. So don't let it test again, or the status will be reset again as well.
Setting status to RTBC to allow Gábor to have a look at #33.
Comment #40
kevinwal commentedRoger that Gaele,
I was unsure on what the resolution was from the patch you posted without a status?
Comment #41
jleroi commentedWhen trying to test the patch on a Linux box I get 3 out of 3 hunks FAILED.
Comment #42
gaele commentedjleroi, which version of Drupal did you use? The patch is for 6.19.
Comment #43
jleroi commentedI'm using 6.19. I tried resaving and giving it another go but no joy. I'll keep trying.
Comment #44
gaele commentedApparently the patch was not for 6.19.
jleroi, try this one.
Comment #45
zcrow commentedStill not working. Getting errors
Comment #46
jleroi commentedI appreciate the help gaele, but same here. Still getting the hunk failed errors.
Comment #47
gaele commentedThis applied cleanly on my fresh 6.19 check-out.
Comment #48
Ela commentedsubscribing
Comment #49
Ela commentedPatch in #47 seems to fix most of it, except that error messages still show to an anonymous user.
The line:
drupal_set_message(t('The feed from %site seems to be broken, because of error "%error".', array('%site' => $feed['title'], '%error' => $result->code .' '. $result->error)));repeats twice in the aggregator.module, so maybe the patch should apply to both of them?
Comment #50
gaele commentedTrue. Which brings us back to my original patch from #9 :-)
Comment #51
Ela commentedPatch in #50 seems to work just fine! :)
Comment #52
gaele commentedSeems ready for Gábor.
Comment #53
danny englandersubscribing, having the same issue.
Comment #54
gábor hojtsy1. Does this apply to Drupal 7? Looks like this was not discussed. I assume it does.
2. The $admin default seems to be FALSE, which changes default behavior for API functions from how they worked before. I agree it makes them work in more logical ways, but that is not the point. We should keep backwards compatibility.
3. Not sure naming the argument $admin is a good idea. Maybe $messages or something like that? If it just has effect on those as I'm seeing.
Comment #56
klonosThe argument is named $admin, because it is used when checking if the user is an admin or not. If the check was to display messages or not, then something like $messages would be ok. If $admin seems to 'generic' and there is fear of confusion, then $messages is as generic too. How about $user_is_admin or $role_is_admin? (or something like $show_messages if we want to avoid the word 'admin') ...I mean drupal coding standards do allow underscores in variable names. Right?
Comment #57
gábor hojtsyYes, indeed $show_messages would be consistent with how Drupal handles this elsewhere.
Comment #58
gaele commented$admin renamed to $show_messages, defaulting to TRUE.
I tried D7 with a bogus feed url, but couldn't get any messages to appear on screen. Didn't look into it any further, though.
Comment #59
Ela commented#58 seems to work! Thank you for the patch.
Comment #60
katherinecory commentedI applied #58 and anonymous users still saw the new syndicated content message.
Comment #61
katherinecory commentedAny update on this issue? I've tried Drupal tweaks and it still didn't make any difference.
Comment #62
danny englanderThere is a new module called "Disable Messages", I am hoping this might be a work around.
http://drupal.org/project/disable_messages
My clients keep reporting the infamous "There is new syndicated content..." as a bug.
Comment #63
klonosThanx for the info Danny ;)
Comment #64
katherinecory commentedMine too! Thanks for the heads up *goes off to download*
Comment #65
Josephnewyork commentedIn my opinion this should be controlled via theme's template engine...
Below is what I use and has been very helpful. Just add it anywhere in your theme's template.php file. It even handles the Operating Offf-line mode message which I remove when themeing.
Only tested in D6
Comment #66
naitmare commentedare there any news? tried disable_messages and that code in my template.php and i'm still getting the same annoying message..
Thanks!
Comment #67
tim.plunkettThis hasn't made it into D8 yet.
Comment #74
kenorb commentedComment #77
catchThis is still valid, at least for some error messages, for example from DefaultFetcher:
Could we just use trigger_error() instead, then showing a warning or not would be based on error display settings. Or just rely on the log messages.
Comment #79
quietone commentedThe
aggregatormodule has been removed from Core in10.0.x-devand now lives on as a contrib module. Issues in the Core queue about theaggregatormodule, like this one, have been moved to the contrib module queue.Comment #80
larowlan