Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-01-12 20:39:17
- tony92875
- New Member
- Registered: 2009-01-12
- Posts: 5
Issue adding user or resetting password for user.
This is a fresh install of 4.0.7. Everything is set up and configured. Went off without a hitch. However, when I add a user, the account is created just fine, but I end up refreshing to a 500 server error. Also the email that should be sent out to the new user with their password in it never gets sent out. The same thing happens when trying to reset a users password. 500 server error and no email being sent. I’ve just started looking around at the various config files and source code, but this is the first time I’ve used textpattern so it’s going a bit slow so far :)
Any ideas on a direction I should be looking to solve this issue would be appreciated.
Regards,
Last edited by tony92875 (2009-01-12 20:41:51)
Offline
Re: Issue adding user or resetting password for user.
I would start off with one of the FAQ entries to check what is happening with your install. Something did not go right…
Offline
#3 2009-01-12 22:00:48
- woof
- Member
- Registered: 2004-08-01
- Posts: 128
Re: Issue adding user or resetting password for user.
I had a similar problem recently, nearly drove me insane before I finally discovered — quite by chance — that it was caused by a humble emdash character I had typed in the Site name field in admin > preferences.
Apparently the new user mail that’s sent out uses this field’s value to construct part of the subject line and it seems it didn’t want to play with the non-ascii character
Check you are using only ascii characters in this setting and see if it makes a difference
Offline
#4 2009-01-12 22:47:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Issue adding user or resetting password for user.
If it’s not the problem woof described, are there other things you can’t do in Admin? Can you for instance change something in preferences and save it?
Offline
Re: Issue adding user or resetting password for user.
woof, non-ascii characters trigger mime-encoding for the subject header, so a site name My — Site
results in Subject: =?UTF-8?B?W015IOKAlCBTaXRlXSBZb3VyIGxvZ2luIGluZm8=?=
which decodes to Subject: [My — Site] Your login info
Tony, do you have “safe mode” enabled in PHP?
Offline
#6 2009-01-14 17:23:08
- tony92875
- New Member
- Registered: 2009-01-12
- Posts: 5
Re: Issue adding user or resetting password for user.
I checked for non-ASCII characters in the site name (as well as everywhere else). Such was not the case and the problem continues. Also Safemode in PHP was off. I turned safemode On and the same problem occured. It’s now been turned Off again.
It seems that every other aspect of the site works just fine and this is isolated to just the two email related functions I mentioned. So far I’ve found nothing when looking for email related setting in textpattern, IIS or with the server in general. I’m still looking though :)
Offline
Re: Issue adding user or resetting password for user.
Do you see any errors or clues in the webserver error/access logs?
Since the email isn’t sent, do you see anything in the mail server logs?… and which mail server software do you use?
Offline
#8 2009-01-14 19:11:03
- tony92875
- New Member
- Registered: 2009-01-12
- Posts: 5
Re: Issue adding user or resetting password for user.
All I see in the logs is a 500 error. There is no indication as to what the error is, however. I’m using the SMTP service installed with IIS. I’ve found no sign of an error in any logs so far. I’ve even checked the server event fewer (knowing it wouldn’t contain anything)
Offline
#9 2009-01-14 20:33:26
- tony92875
- New Member
- Registered: 2009-01-12
- Posts: 5
Re: Issue adding user or resetting password for user.
Also, to add to this, for the heck of it I decided to test the smtp service running on the box. I telneted into it and sent myself a test email. All went perfect. So I guess I’m back to going through the textpattern code to see if I can find something.
Offline
#10 2009-01-14 20:43:28
- tony92875
- New Member
- Registered: 2009-01-12
- Posts: 5
Re: Issue adding user or resetting password for user.
You can close this topic. I fixed the issue. The SMTP service wasn’t allowing PHP to use localhost to send mail through. I had to replace that with the hostname of the server. Wow. Why didn’t I think of that in the first place :P
Thanks a lot for the help!
Offline