Notification is sent every time I look at my profile

LarryTX - April 4, 2009 - 23:17
Project:User registration notification
Version:6.x-1.10
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

Perhaps, I've missed something in the configuration for this module, but it's not working as I expected. Specifically, I am an Admin for the Web site, so I get the emails generated by this module. When I go in and simply look at my profile -- making no changes, whatsover -- I get an email saying that I just created an account for myself. I'm not talking about going to the user management section where I could make changes to my profile; I'm simply talking about displaying my profile. Obviously, I have a profile, so I haven't just created a profile. In addition, the Web site is set up to require email configuration on all new registrations. I don't get such a notification. I can't figure out what's going on.

#1

rmiddle - April 5, 2009 - 01:26
Status:active» postponed (maintainer needs more info)

The module grab's two hook one for when a user is created and one for when it is updated. I don't know why Drupal would be trigger a call that your account was updated or created if you are not changing anything. Add !action to the config and confirm that it is update and not create causing this email.

Thanks
Robert

#2

LarryTX - April 5, 2009 - 02:32

Thanks for the super-fast response, Robert. You kind of lost me on adding the !action to the config. Are you talking about function user_register_notify_user in the module or some other place?

#3

rmiddle - April 5, 2009 - 02:38

Goto admin/settings/register_notify

Under email body add !action that will tell you if the action is because of an update or create event being called.

Thanks
Robert

#4

LarryTX - April 6, 2009 - 01:28

I put the !action directive in the config settings. (Sorry, I didn't realize that !action was an available setting.) Since then, the problem doesn't appear to have repeated itself. However, when I looked at one of the emails from yesterday, it says, "username has created an account," so it appears to be thinking that an account has been created. I'm attaching a text file with the message in it.

AttachmentSize
Account details for Larry L at DignityHouston.txt 707 bytes

#5

rmiddle - April 6, 2009 - 02:07

That has created an account dates back to when it only reported on account creation. If you look in the email body is actually uses the text right there. The only way to know if it is a creation or update actions is the !action directive. I guess I need to update the text in the default in the next version.

Thanks
Robert

#6

rmiddle - April 6, 2009 - 02:13

Committed Text change to CVS.

#7

LarryTX - April 6, 2009 - 13:07

It took a while, but attached is the email I received. Unfortunately, the !action directive came back literally as "!action" rather than displaying the action. Did I do something wrong?

AttachmentSize
Account details for Larry L at DignityHouston.txt 736 bytes

#8

rmiddle - April 6, 2009 - 13:27

That is weird. Please confirm you are using 6.x-1.10 as !action should be working.

Thanks
Robert

PS. Please remove both attachments from the post since they contain people's personal data.

#9

LarryTX - April 10, 2009 - 00:34

Sorry, it took me a while to get back to this. I was using 6.x-1.9! So, I upgraded to 10, ran update.php, cleared the cache, and so on. I still have the same problem. (Actually, I viewed another user's profile got an email notification about that user, as well. So, it's not just my profile that generates the email.) Anyway, !action is now working with ver. 10. The action is definitely "update."

#10

rmiddle - April 26, 2009 - 22:01

LarryTX,

Something is causing the system to run an update call when you view a ticket.

Thanks
Robert

#11

LarryTX - April 28, 2009 - 17:36
Status:postponed (maintainer needs more info)» active

It sure looks like that. What would cause the system to run an update call when I view a user's profile? Is there any way that I can track it down to find out what's causing it? Is there some way to prevent it?

#12

rmiddle - April 28, 2009 - 20:12

It is likely another module causing that. Something that is updating what is shown that is tiring an update event.

Thanks
Robert

 
 

Drupal is a registered trademark of Dries Buytaert.