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.
Message like "Created three snippet files based on configuration." might be displayed to any user, even "Anonymous", in case cron is running from Drupal. (admin/config/system/cron)
Possible fix: remove google_tag_cron() function.
Comments
Comment #2
solotandem CreditAttribution: solotandem commentedThe message does not include any sensitive information nor is the code failing, so is this a bug?
From an automated configuration/deployment standpoint, what hook do you (and others reading this issue) prefer to trigger re-creating the snippet files? Seems like cron and flush caches are the two relevant ones.
Comment #3
solotandem CreditAttribution: solotandem commentedComment #4
PasqualleDisplaying an unrelated message to visitors is a bug..
What would you think if you just see a message like that after posting a comment here..
Comment #5
PasqualleEven cron_example makes sure that messages are not displayed to everyone..
Comment #6
bserem CreditAttribution: bserem at zehnplus commentedThis is definitely not correct! We shouldn't be displaying messages to visitors that are irrelevant to them.
Plus it took me a while cause I thought it was my code doing it.
It is true for D8 too.
Maybe the watchdog function is a better option.
Comment #8
solotandem CreditAttribution: solotandem commentedAbove commit: revise message text, restrict message display to admin users, and log error messages.
Thanks to those who reported this and commented. Please test commit and report back.
Comment #10
HyperGlide CreditAttribution: HyperGlide commentedHello, Noted this issue was first reported on the D7 branch but the patch was only applied to D8. What is required to back port this to D7 and roll out a release?
Thank you.
Comment #11
HyperGlide CreditAttribution: HyperGlide as a volunteer commentedComment #12
solotandem CreditAttribution: solotandem commentedThis was done under #2922047: Snippet file creation messages are confusing and is included in release 1.4.