I had posted a problem here http://drupal.org/node/172971#comment-268224, which I will copy & paste here:
Hi
I get a strange confirmation message when I submit or edit some content:
Your Audio has been created.
after I submitted some self-made content, a proverb! or
The Audio has been updated.
on updating a recipe!!
None of them has anything to do with "audio". What could be wrong & how do I correct it? No idea what could be triggering that.
THat also happened when submitting a forum topic.
After reporting to the recipe module folks, one had suggested some other module may be interfering with the input.
After remembering I recently installed the new version of the audio module & that this problem was just a few days old, I uninstalled it & downloaded & reinstalled the older version.
The error did not turn up again.
So there may be something small in it causing that ....
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | audio.module.tokenfix.patch | 478 bytes | rjleigh |
Comments
Comment #1
drewish commentedi've seen that too... hadn't had a chance to track it down though. any hints would be appreciated.
Comment #2
alpinejag commentedI've been noticing this as well.
Comment #3
drewish commentedmarked http://drupal.org/node/178415 as a duplicate... probably because this had a really bad title.
Comment #4
lionheart8 commentedOk, thanks for the correction.
In Audio 5.x-1.3, I think released 25th September, a preliminary test seems to show the problem has been solved. I will post if I notice anything bad.
Comment #5
drewish commentedi think the issue is specific to 2.x-dev releases.
Comment #6
kyle_mathews commentedI'm seeing the same problem running 5.2-2.x-dev
Comment #7
kyle_mathews commentedI spent awhile this evening trying to track down the source of this bug. I haven't fixed it but I've identified where it starts.
In node.module line 2321 is the code for that sets the "Your {node-type} has been created" message. This message is set just after the node is saved to the database. When the node is saved to the database, the "type" is correct as you can check by looking at the node table. But somewhere (I'm guessing) in the node_save function, $node->type is changed from the original content type to audio. This can be seen both in the message sent to the screen and in the log message. Any experienced drupalers that can help me out from here?
Relevant code from node.module
Comment #8
rjleigh commentedWow, this was a tough one (at least for me) - took hours of tracing to locate. And it's not a minor message issue either (as I first thought)- it will affect all pathauto assignments on a site! (perhaps other token-related issues as well - that's why I marked it critical)
But the fix is incredibly simple - it's just a bad comparison operator.
--Roger
Comment #9
rjleigh commentedjust for cross reference I found this: http://drupal.org/node/193472
--Roger
Comment #10
drewish commentedgreat/doh! dumb mistake on my part. thanks for tracking that down. i've committed the patch to HEAD.
Comment #11
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.