Advanced search  

News:

cpg1.5.42 maintenance release - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix several minor issues. All fixes are not security critical, so if your gallery is running fine with cpg1.5.36, cpg1.5.38 or cpg1.5.40 you don't need to upgrade. If you are running an older version than cpg1.5.36, you must update to this latest version as soon as possible because of the security impact!
[more]

Pages: [1]   Go Down

Author Topic: Mail not sent for second or subsequent user when activating more than one user  (Read 11771 times)

0 Members and 1 Guest are viewing this topic.

barrybrimer

  • Coppermine newbie
  • Offline Offline
  • Posts: 1

cpg1.5.18
Linux
older php and mysql versions

I have both user verification and admin approval enabled.
I have created several test users. (problem exists with real users too)
I have clicked on the confirmation link for each user.

What works:

Clicking on activation links individually
Activating one user at a time through User Manager

What doesn't work:
When I go into the user manager and select several users to activate, the following happens:

The first user is activated and receives activation notification email
The second user is activated.  No email is sent.  (I have been tailing the maillog file to confirm, and the messages would have come to me).  Any user past the second user is not displayed on the screen
The screen (when activating 4 users) appears like this:

=====================================================================================================
Username    Status
testme34   Activated
testme12   Activated
Fatal error: Cannot redeclare cpg_mail() (previously declared in /home/website/pictures/include/mailer.inc.php:20) in /home/website/pictures/include/mailer.inc.php on line 20
====================================================================================================

I did dos2unix mailer.inc.php since it has ^M everywhere and I am running on Linux.  I corrected the permissions afterwards to match the other files.

In relation, is there a way to resend activation emails when the system thinks an email has already been sent?

Thanks,
Barry
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15210

We have 3 issues here:
1. Missing mails for second activated user and following
2. Error message for third user and following
3. Re-send missing mails


To fix 2) please open delete.php, find
Code: [Select]
require('include/mailer.inc.php');and replace with
Code: [Select]
require_once('include/mailer.inc.php');
Maybe issue 1) is also resolved with that change. Please report the results.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15210

Committed suggested fix in SVN revision 8356.
Logged

mlconnell84

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

cpg1.5.18
Linux
older php and mysql versions

I have both user verification and admin approval enabled.
I have created several test users. (problem exists with real users too)
I have clicked on the confirmation link for each user.

What works:

Clicking on activation links individually
Activating one user at a time through User Manager

What doesn't work:
When I go into the user manager and select several users to activate, the following happens:

The first user is activated and receives activation notification email
The second user is activated.  No email is sent.  (I have been tailing the maillog file to confirm, and the messages would have come to me).  Any user past the second user is not displayed on the screen
The screen (when activating 4 users) appears like this:

=====================================================================================================
Username    Status
testme34   Activated
testme12   Activated
Fatal error: Cannot redeclare cpg_mail() (previously declared in /home/website/pictures/include/mailer.inc.php:20) in /home/website/pictures/include/mailer.inc.php on line 20
====================================================================================================

I did dos2unix mailer.inc.php since it has ^M everywhere and I am running on Linux.  I corrected the permissions afterwards to match the other files.

In relation, is there a way to resend activation emails when the system thinks an email has already been sent?

Thanks,
Barry

Barry, did Andre's fix work for all 3 problems for you?
Logged

mlconnell84

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

cpg1.5.18
Linux
older php and mysql versions

I have both user verification and admin approval enabled.
I have created several test users. (problem exists with real users too)
I have clicked on the confirmation link for each user.

What works:

Clicking on activation links individually
Activating one user at a time through User Manager

What doesn't work:
When I add a premium web design to the user manager and select several users to activate, the following happens:

The first user is activated and receives activation notification email
The second user is activated.  No email is sent.  (I have been tailing the maillog file to confirm, and the messages would have come to me).  Any user past the second user is not displayed on the screen
The screen (when activating 4 users) appears like this:

=====================================================================================================
Username    Status
testme34   Activated
testme12   Activated
Fatal error: Cannot redeclare cpg_mail() (previously declared in /home/website/pictures/include/mailer.inc.php:20) in /home/website/pictures/include/mailer.inc.php on line 20
====================================================================================================

I did dos2unix mailer.inc.php since it has ^M everywhere and I am running on Linux.  I corrected the permissions afterwards to match the other files.

In relation, is there a way to resend activation emails when the system thinks an email has already been sent?

Thanks,
Barry

Also, is there a way to resend the activation emails, if someone wanted to? I have seen this option in other places.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15210

Also, is there a way to resend the activation emails, if someone wanted to? I have seen this option in other places.
There's no such option, but it should be possible to create a plugin/mod for that task.
Logged

zaza13

  • Coppermine newbie
  • Country: 00
  • Offline Offline
  • Posts: 2

There's no such option, but it should be possible to create a plugin/mod for that task.

Please how do I go about creating one ... is there a plugin creation documentation
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15210
Logged
Pages: [1]   Go Up
 

Page created in 0.07 seconds with 19 queries.