Closed (fixed)
Project:
Logging and alerts
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Sep 2008 at 07:38 UTC
Updated:
6 Aug 2009 at 15:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
mariuss commentedSimilar issue in drush module: #304711: watchdog show does not merge message with variables
Comment #2
mariuss commentedI attached a patch, please have a look.
Comment #3
kbahey commentedCommitted to the -dev version.
Please wait for 24 hours and then download and test it. If it works I can make a stable release.
Comment #4
mariuss commentedThanks for applying right away.
Please look at comment #3 in #304711: watchdog show does not merge message with variables, there still is a minor issue with localization. In this case that issue was there before this patch, so it can be considered as a totally different issue.
Comment #5
mariuss commentedI tested the patch, and I did not see any other changes. If this is the only change, you can go ahead and make a stable release.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
mariuss commentedI can see this issue happening again in 6.x-1.3.
Comment #8
kbahey commentedHow can that be?
Your patch had this:
But, if 'variables' was empty or not an array, we got errors, so I change it to this:
Then used $msg afterwards, which should do the same ...
Comment #9
mariuss commentedNot sure where the problem is, but here is a sample email:
The above error was the result of a broken PHP file, the whole site was failing, it first came up during cron.
There is no corresponding entry under "Recent log entries", so not sure how did "Logging and alerts" intercept this. Could be a different issue than the original one.
Comment #10
kbahey commentedI committed a fix for this.
Either get it from CVS (DRUPAL-6--1 tag) or download the tarball after 24 hours have passed.
Comment #11
Nick Urban commentedApologies if you already noticed this, but the problem with the variables not being substituted was just a matter of a misplaced parenthesis.
this:
should be this:
After that change, it works fine.
Comment #12
kbahey commentedCan you please create a patch as per the instructions here http://drupal.org/patch, and attach it to the issue?
Make sure it is in unidiff format, tested and against the 6.x-1.x-dev tarball.
Comment #13
jonline commentedI found the following code problem and come here to report it but it seems already here.
<?php if (is_array($log_msg['variables']) && !empty($log_msg['variables'])) { ?>please add this into upcoming releases.
Comment #14
dave reidThe code has been changed to
if (is_array($log_msg['variables'])) {in the 6.x-1.x-dev. This covers all bases and works just fine, so marking as fixed. We'll just have to wait for a release now.Comment #16
Andrew Schulman commentedsubscribing
Comment #17
dave reid@andrex593: It doesn't do much good to subscribe to a closed issue. Download the 6.x-1.x-dev version and you'll notice the problem is fixed.
Comment #18
Andrew Schulman commented@Dave: Thanks, I did install the -dev version, and notice that the problem is fixed.
Nevertheless, it does do me some good to subscribe to a closed bug. (1) Sometimes closed bugs get reopened again, or there's further illuminating discussion. (2) If I have to apply a fix related to a bug, it helps me to have it in my bug list, so I can find it again easily when I have questions about it again in the future.
Thanks,
Andrew.
Comment #19
seanburlington commentedHi,
I read from above that this issue is fixed in the dev version
But the most recent CVS message is from December 2008 http://drupal.org/project/cvs/135107?nid=135107&nid=135107
I guess this is wrong - but without any info about what else might be in a nightly build I'm reluctant to install it.
Any chance of a stable release that includes this fix?
Thanks
Comment #20
dave reid@seanburlington If you'd look at the project page you'd also notice that the 6.x-1.3 release was made on 2008-Sep-25, so if a commit was made on Dec 2008 (Dec comes after Sep), it's included only in the 6.x-1.x-dev version. I'm going to ask kbaley to see if I can help co-maintain this module and push out a new release.
Comment #21
dave reidComment #22
dave reidResetting more issue settings...
Comment #23
dave reidA 6.x-1.4 release should be available shortly. Thank you to kbaley for adding me as a co-maintainer.
Comment #24
kbahey commentedkbahey!
Comment #25
dave reid@kbahey: Ah crap. My fingers wanted to tyep ai instead of a. My apologies. :(