Using CPG 1.5.3 RC
When new user signs up admin gets blank email and user gets no activation email.
Have tried smtp and inbuilt, both work for contact form.
I don't know how to solve this problem.
Just done a test install with 1.4.x and it works perfectly.
http://www.wvagc.org.uk/cpg3 (http://www.wvagc.org.uk/cpg3)
loginin and password is test
I never recognized that problems on my 1.5.x gallery. Can you please perform an svn checkout and try again?
Hope this is what you wanted.
Have also done a fresh install on a new database a still get the same problems.
No. Please upgrade your gallery (or install a second test gallery) using that (http://coppermine.svn.sourceforge.net/viewvc/coppermine/trunk/cpg1.5.x.tar.gz?view=tar) package.
Have started fresh with the package in your link fresh database and still blank emails as before.
I have the same problem. Yesterday I made a fresh installation. the registrar receives no email.
But: when the registrar tryed to login and ask for his regsitration, he becomes a mail and can activate his registration. Without permission of the administrator.
Still works as expected for me. I don't have the possibilities to test different mail server setups, so I cannot help you with this issue.
Glad it is not just me....when I put up the site on Monday I had someone register and I got the email for activation fine no probs now all I am getting are blank emails...really weird as I have not touched any configs since Monday.... ???
Any ideas on where I should look? Looked at my email server and everything is fine.
Kriss :)
Oops forgot to say I am using 1.5.6 stable and my site address is...
http://www.michaelshanks.me.uk/index.php (http://www.michaelshanks.me.uk/index.php)
Kriss :)
I am not receiving any emails at all, either to admin or to new users.
I have asked my host support to ensure I have the correct smtp settings and they have confirmed them.
Still, no emails arrive.
v.1.5.6
Just trying to help:
I installed a fresh copy of v1.5.6 today with a new database - (no old data).
Upon new user registration, the Admin account does receive an email but, as above, the email has no body content (or subject).
Upon activating the new user account via Config / Users, the new registrant receives no confirmation email.
v.1.5.6
www.londonallstars.co.uk/cmine/
Further to the above, I have also noticed that:
- The contact form works fine using either SMTP and/or sendmail.
- Registration emails arrive at the registrants address but Admin notification of new registrations arrives with blank subject and blank body.
- Admin email address ('Config/General Settings/Gallery administrator email') had not been copied automatically to my Admin profile in the SQL database druing setup. I had to enter MyPHPAdmin and enter it manually. (This could, I guess, be entered manually via Admins profile too). This is why no email was being received by Admin. The mailer.ini.php looks for "WHERE user_group = 1" but 'user_group = 1' has no email address configured automatically.
- When 'Config/Registration/Admin activation of registrations' is checked, Admin notification arrives (with blank subject and body) but registrant email does not.
:-\
Hope this helps.
[/list]
Quote from: cyberdyne2 on July 28, 2010, 11:26:35 AM
Registration emails arrive at the registrants address but Admin notification of new registrations arrives with blank subject and blank body.
Tested with both SMTP / sendmail settings?
Quote from: cyberdyne2 on July 28, 2010, 11:26:35 AM
Admin email address ('Config/General Settings/Gallery administrator email') had not been copied automatically to my Admin profile in the SQL database druing setup.
Do you use the classic installer or the new step by step installer? Works for me with both installers.
Quote from: cyberdyne2 on July 28, 2010, 11:26:35 AM
The mailer.ini.php looks for "WHERE user_group = 1" but 'user_group = 1' has no email address configured automatically.
This selects the email addresses of all admins (they are in user group 1). The group itself doesn't have an email address.
Quote from: cyberdyne2 on July 28, 2010, 11:26:35 AM
When 'Config/Registration/Admin activation of registrations' is checked, Admin notification arrives (with blank subject and body) but registrant email does not.
We discussed that some time ago. If registration needs admin activation, the user don't get an email as far as I remember. This should be changed, but is currently the way how it works. I hope this hasn't been changed in the meantime and I'm talking no bullshit :P Please correct me if I'm wrong.
Quote from: Αndré on July 28, 2010, 12:24:14 PMTested with both SMTP / sendmail settings?
Yes, both SMTP and sendmail settings result in blank subject AND body of new registration Admin notification.
Quote from: Αndré on July 28, 2010, 12:24:14 PMI'll check that. Do you use the classic installer or the new step by step installer?
This particular installation was an upgrade from v1.4x, so that may have made a difference. I just checked a new installation and there IS an email address present.
Quote from: Αndré on July 28, 2010, 12:24:14 PMThis selects the email addresses of all admins (they are in user group 1). The group itself doesn't have an email address.
Understood. The one Admin profile in my case had no email address present but I refer to the above reply.
Quote from: Αndré on July 28, 2010, 12:24:14 PMWe discussed that some time ago. If registration needs admin activation, the user don't get an email as far as I remember. This should be changed, but is currently the way how it works. I hope this hasn't been changed in the meantime and I'm talking no bullshit :P Please correct me if I'm wrong.
OK. Although if the new registrant isn't supposed to receive an email - which is understandable - will they receive an email once their account is made 'Active' by Admin? Or it is possible they may forget about their account and never use it.
Thanks for your reply.
Quote from: cyberdyne2 on July 28, 2010, 12:41:00 PM
will they receive an email once their account is made 'Active' by Admin?
That's what I meant. Should be changed imo (if not already done). I'm currently short of time, so I cannot check in my gallery if there will be already sent an email after account activation or not.
Quote from: Αndré on July 28, 2010, 12:44:26 PM
That's what I meant. Should be changed imo (if not already done). I'm currently short of time, so I cannot check in my gallery if there will be already sent an email after account activation or not.
OK, tested for you.
- When 'Admin activation of registrations' is checked, the notification email DOES arrive at the Admin address BUT, both the subject and body are blank (both SMTP and sendmail).
- When Admin activates new registrations manually via 'Config/Users', NO notification email arrives at the new users email address (both SMTP and sendmail).
QuoteWhen 'Admin activation of registrations' is checked, the notification email DOES arrive at the Admin address BUT, both the subject and body are blank (both SMTP and sendmail).
Found out that the variable "$lang_register_approve_email" is not included in the "english_gb.php" and "dutch.php" languages files. Problably also missing in other languages files.
This causes a blank body of the admin approval mail.
Hope this helps.
I just checked mine and the variable is there...at least I hope this is the one you mean?
$lang_register_approve_email = <<< EOT
A new user with the username "{USER_NAME}" has registered in your gallery.
In order to activate the account, you need to click on the link below or copy and paste it in your web browser.
<a href="{ACT_LINK}">{ACT_LINK}</a>
EOT;
Kriss :)
I checked mine. Those values were indeed missing, but I do not think this s the cause of the issue as I added the following and I still have the same isses, nothing has changed.
$lang_register_php['confirm_email'] = <<< EOT
Thank you for registering at {SITE_NAME}
In order to activate your account with username "{USER_NAME}", you need to click on the link below or copy and paste it in your web browser.
<a href="{ACT_LINK}">{ACT_LINK}</a>
Regards,
The management of {SITE_NAME}
EOT;
$lang_register_approve_email = <<< EOT
A new user with the username "{USER_NAME}" has registered in your gallery.
In order to activate the account, you need to click on the link below or copy and paste it in your web browser.
<a href="{ACT_LINK}">{ACT_LINK}</a>
EOT;
$lang_register_php['activated_email'] = <<< EOT
Your account has been approved and activated.
You can now log in at <a href="{SITE_LINK}">{SITE_LINK}</a> using the username "{USER_NAME}"
Regards,
The management of {SITE_NAME}
EOT;
}
I didn't have a empty subject only an empty body, this was fixed after indeed adding "$lang_register_approve_email" to the "dutch.php" language file.
I see "$lang_register_php['notify_admin_request_email_subject']" is also missing in the "english_gb.php" probably this still causes your problem?
Afraid not.
Added those lines also yet the subject and body are still missing.
Thanks
Quote from: chris_n on July 30, 2010, 02:50:58 PM
I didn't have a empty subject only an empty body, this was fixed after indeed adding "$lang_register_approve_email" to the "dutch.php" language file.
I see "$lang_register_php['notify_admin_request_email_subject']" is also missing in the "english_gb.php" probably this still causes your problem?
No still blank admin email body and subject for us.
Just as a follow up I have renamed the file english_gb.php and I now have the registration email with subject and details filled in. When I activate the user from the email they get a conformation email, they don't get an email if activated from the user panel.
But what did you rename english_gb.php to ?
english_gb.php.old
So you've decided to do away with using the English_GB lang file altogether and just use English.
Hasn't really fixed the issue, but I guess it's a work around.
Well I copied and paste all of the english.php into the english_gb.php and it worked!...so have no idea why as using the english.php and not the english_gb.php as when I try to it says that I can't...really weird...
Kriss :)
The english_gb file is not complete. Copying the english.php file over it is just making US and UK the same file. We speak propper over here so not the right thing to do IMO. I'm not sure the file was ever completed as I canot check the history from here due to the firewall. Maybe one of the other devs can look into it.
Anyway, this is not the right thread to discuss a language problem as the thread is now going off topic.
Seems that the language fallback doesn't work in that case. But that's just an assumption.