| Project: | Drupal core |
| Version: | 6.x-dev |
| Component: | locale.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
My watchdog is filled with messages about locale.module parsing javascript files. This message is printed so many times that it makes the watchdog a pretty useless tool for analysing problems with the site as there may only be 3 or 4 valid watchdog message in a page full of these messages from locale. The problem was recently reported on the forum here http://drupal.org/node/402268 and I brought it up in IRC and was advised to open a bug report.
Is this really intended behaviour? Or is this just a stray watchdog call that was forgotten to be removed? If it really is a genuine message, then there needs to be a way to turn down the logging level so that the watchdog can become useful to anyone who cares about things other than local.module pasing javascript files.
Comments
#1
I'm getting these notices too for every javascript file...
Parsed JavaScript file sites/all/modules/memcache/memcache_admin/memcache.js.Any idea how to get rid of them?
#2
yeah, comment out the line in local.module - line 508. Yes, It's a core hack, but there's no other way as far as I know.
#3
Good to know. Thanks!
#4
Still no solution for this problem?
#5
I'm getting a bunch of these messages too. What do they mean? Is this an error?
#6
subscribing
#7
Here is a patch that removes the annoying message. Can we get this commited into core? The watchdog is next to useless when it's full of these messages.
#8
Subscribing to track fix.
#9
subscribing
#10
This seems reasonable to me as well. I found this issue from a thread that claimed that Google Analytics caused this to be parsed on every page, but the site where I have this problem doesn't use Google Analytics. Perhaps there are other modules that cause it to happen more often than necessary, but I'm not sure watchdogging all the time is the solution.
#11
subscribe
#12
Unless someone can explain why we care when a JS file is parsed, or more likely why locale shouldn't be parsing JavaScript files in the first place, can we call this patch ready to go? We've tested it.
benjamin, agaric
#13
Yeah, this message is unnecessary. Let's fix in D7 first.
#14
subscribe
#15
subscribe
#16
Ok, same thing for D7.
#17
Yay!
#18
Committed to CVS HEAD. Moving to D6.
#19
Now the patch from #7 should be good - http://drupal.org/node/409676#comment-2082670
#20
Sorry i am confused is the patch for D6 on #7 ? it says its failed and has not been retested. Or is it greggles post on #16 confused as he put D7
Can someone clarify for me,
Thx
#21
The patch in #7 applies to Drupal 6. The failure message is about testing it on Drupal 7, where we expect it to fail.
#22
Theoretically, this should not happen often, but only when caches are cleared. I'd advise you look at why are your caches cleared this often.
Committed this patch to Drupal 6 too.
#23
Automatically closed -- issue fixed for 2 weeks with no activity.