forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 email => Topic started by: toolbox on May 31, 2010, 03:38:22 pm

Title: Blank emails on registration
Post by: toolbox on May 31, 2010, 03:38:22 pm
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
Title: Re: Blank emails on registration
Post by: Αndré on June 01, 2010, 12:36:02 pm
I never recognized that problems on my 1.5.x gallery. Can you please perform an svn checkout and try again?
Title: Re: Blank emails on registration
Post by: toolbox on June 01, 2010, 01:00:05 pm
Hope this is what you wanted.
Have also done a fresh install on a new database a still get the same problems.
Title: Re: Blank emails on registration
Post by: Αndré on June 01, 2010, 01:28:07 pm
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.
Title: Re: Blank emails on registration
Post by: toolbox on June 04, 2010, 04:55:16 pm
Have started fresh with the package in your link fresh database and still blank emails as before.
Title: Re: Blank emails on registration
Post by: GerX on July 21, 2010, 11:55:56 am
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.
Title: Re: Blank emails on registration
Post by: Αndré on July 21, 2010, 12:49:43 pm
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.
Title: Re: Blank emails on registration
Post by: Dankriss on July 22, 2010, 05:23:05 pm

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  :)

Title: Re: Blank emails on registration
Post by: Dankriss on July 22, 2010, 05:51:29 pm

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  :)
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 27, 2010, 12:31:35 pm
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
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 27, 2010, 08:40:31 pm
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.
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 28, 2010, 11:26:35 am
v.1.5.6
www.londonallstars.co.uk/cmine/

Further to the above, I have also noticed that:


 :-\
Hope this helps.
[/list]
Title: Re: Blank emails on registration
Post by: Αndré on July 28, 2010, 12:24:14 pm
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?


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.


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.


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.
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 28, 2010, 12:41:00 pm
Tested with both SMTP / sendmail settings?
Yes, both SMTP and sendmail settings result in blank subject AND body of new registration Admin notification.

I'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.

This 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.

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.
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.


Title: Re: Blank emails on registration
Post by: Αndré on July 28, 2010, 12:44:26 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.
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 28, 2010, 12:55:30 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.

Title: Re: Blank emails on registration
Post by: chris_n on July 30, 2010, 01:41:47 pm
Quote
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).

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.
Title: Re: Blank emails on registration
Post by: Dankriss on July 30, 2010, 02:22:50 pm

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  :)
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 30, 2010, 02:25:07 pm
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.

Code: [Select]
$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;
}
Title: Re: Blank emails on registration
Post by: 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?
Title: Re: Blank emails on registration
Post by: cyberdyne2 on July 31, 2010, 12:08:48 pm
Afraid not.
Added those lines also yet the subject and body are still missing.

Thanks
Title: Re: Blank emails on registration
Post by: toolbox on July 31, 2010, 08:29:05 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.
Title: Re: Blank emails on registration
Post by: toolbox on July 31, 2010, 10:57:09 pm
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.
Title: Re: Blank emails on registration
Post by: cyberdyne2 on August 02, 2010, 09:45:47 am
But what did you rename english_gb.php to ?
Title: Re: Blank emails on registration
Post by: toolbox on August 02, 2010, 02:47:46 pm
english_gb.php.old

Title: Re: Blank emails on registration
Post by: cyberdyne2 on August 02, 2010, 03:06:24 pm
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.
Title: Re: Blank emails on registration
Post by: Dankriss on August 02, 2010, 05:02:28 pm

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 :)
Title: Re: Blank emails on registration
Post by: phill104 on August 02, 2010, 06:31:22 pm
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.
Title: Re: Blank emails on registration
Post by: Αndré on August 16, 2010, 02:36:46 pm
Seems that the language fallback doesn't work in that case. But that's just an assumption.