Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: wtucker on July 19, 2017, 10:29:28 AM

Title: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on July 19, 2017, 10:29:28 AM
Notify administrator when a new member joins, stopped working so we updated to 2.0.13 and it still isn't working.

Settings:
Method or registration employed for new members: Admin Approval
Notify administrator when a new member joins: checked (THIS IS NOT WORKING)
Default member group: 9

symptoms:
- New member gets email, after registration
- New member has Awaiting Approval on Manage Members page
- Admin Never get email for approval
- Only one admin in system and when using "Send Email" a test email shows up in the admins company's email.

Not sure how to fix this, any help would be appreciated.
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on July 19, 2017, 01:10:56 PM
What version did you update from?  What was last change you made before notification stopped?

You could try unchecking the notification option, save, then check it and save.
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on July 19, 2017, 01:55:40 PM
We were at 2.0.2 and without any changes for a year, for some reason we lost the Notify administrator functionality. So we checked our email server to make sure it was not blocking and once we found out that it wasn't started updating and testing. Now we are at 2.0.13 and cant go to 2.0.14 without an update for PHP 5.3.0 . I don't think it would be wise to go all the way back since it stopped working without any changes at 2.0.2
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on July 19, 2017, 10:27:48 PM
Quote from: Sir Osis of LiverĀ on July 19, 2017, 01:10:56 PM
You could try unchecking the notification option, save, then check it and save.

Did you try this?  If your forum is sending other emails from webmaster email address, it's not an email server problem.  Post the version info from Admin -> Support and Credits.
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on August 01, 2017, 11:46:16 AM
Tried this several times before but will try again: unchecking the notification option, save, then check it and save. I have even tried to change admin email address and still the same result.

Version Information:
Forum version: SMF 2.0.13 (more detailed)
Current SMF version: SMF 2.0.14
GD version: bundled (2.0.34 compatible)
MySQL version: 5.0.96-log
PHP: 5.2.17
Server version: Apache
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on August 01, 2017, 05:14:27 PM
Wow, php 5.2 went eol over six years ago, mysql 5.0 is even older.  Both have been unsupported for a long time, and are security risks.  Probably has nothing to do with your problem, though.  Check your database, look in _settings, what's the value for notify_new_registration?
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on August 02, 2017, 09:16:52 AM
Interesting:

   ('rand_seed', 1617507408),
   ('mostOnlineUpdated', '2012-02-19'),
   ('notify_new_registration', 1),
   ('calendar_updated', 1501603002),

Any other Ideas would be appreciated.


Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on August 02, 2017, 12:41:00 PM
Database setting is correct, sounds like a mod problem.  List of installed mods?
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on August 02, 2017, 03:22:23 PM
I think this is what you are asking for:

Modification Packages
Mod Name   Version   
1.   Default_Membergroup   2.0     
2.   SMF 2.0.3 Update   1.0 
3.   Membergroup ID with Group Name   1.1     
4.   SMF 2.0.4 Update   1.0 
5.   Enhanced Dropdown   1.3     
6.   SMF 2.0.5 Update   1.0     
7.   SMF 2.0.5 Update   1.0     
8.   SMF 1.1.19 / 2.0.6 Update   1.0     
9.   SMF 1.1.19 / 2.0.6 Update   1.0     
10.   SMF 2.0.7 Update   1.0     
11.   SMF 2.0.8 Update   1.0     
12.   SMF 1.1.20 / 2.0.9 Update   1.0     
13.   SMF 1.1.21 / 2.0.10 Update   1.0     
14.   SMF 2.0.11 Update   1.0     
15.   SMF 2.0.12 Update   1.0 
16.   SMF 2.0.13 Update   1.0     
17.   SMF 2.0.14 Update   1.0   
18.   SMF 2.0.14 Update   1.0   
19.   SMF 2.0.14 Update   1.0   
20.   SMF 2.0.14 Update   1.0   
21.   SMF 2.0.14 Update   1.0   
Installed mods:   current version   older version Advanced
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Steve on August 02, 2017, 04:15:05 PM
Why do you have multiple copies of the same mod installed?
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Colin on August 02, 2017, 04:17:16 PM
Are you receiving other mail messages from the forum?
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on August 02, 2017, 10:00:43 PM
Look in /Sources/ManageRegistration.php, what do you see here?



// This is really quite wanting.
require_once($sourcedir . '/ManageServer.php');

$config_vars = array(
array('select', 'registration_method', array($txt['setting_registration_standard'], $txt['setting_registration_activate'], $txt['setting_registration_approval'], $txt['setting_registration_disabled'])),
array('check', 'enableOpenID'),
array('check', 'notify_new_registration'),
array('check', 'send_welcomeEmail'),
'',


Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on August 03, 2017, 02:43:35 PM
The only reason I can think that there are multiple modules is from each time I tried to install and could not perform the function for some reason. Like not having the required PHP version.

Very simple forum, one admin and as far as I know there are no other email messages.

Code - (looks the same to me? Maybe at another level?):

// This function handles registration settings, and provides a few pretty stats too while it's at it.
function ModifyRegistrationSettings($return_config = false)
{
global $txt, $context, $scripturl, $modSettings, $sourcedir;

// This is really quite wanting.
require_once($sourcedir . '/ManageServer.php');

$config_vars = array(
array('select', 'registration_method', array($txt['setting_registration_standard'], $txt['setting_registration_activate'], $txt['setting_registration_approval'], $txt['setting_registration_disabled'])),
array('check', 'enableOpenID'),
array('check', 'notify_new_registration'),
array('check', 'send_welcomeEmail'),
array('int', 'default_group'),
'',
array('int', 'coppaAge', 'subtext' => $txt['setting_coppaAge_desc'], 'onchange' => 'checkCoppa();'),
array('select', 'coppaType', array($txt['setting_coppaType_reject'], $txt['setting_coppaType_approval']), 'onchange' => 'checkCoppa();'),
array('large_text', 'coppaPost', 'subtext' => $txt['setting_coppaPost_desc']),
array('text', 'coppaFax'),
array('text', 'coppaPhone'),
);


Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on August 03, 2017, 04:54:58 PM
Link to your forum?
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: wtucker on August 11, 2017, 12:49:12 PM
Not sure how that would help - what an I missing?

It is an OEM forum that has limited exposure to the public.  I will try to send you an internal message with the link.
Title: Re: Notify administrator when a new member joins - STOPPED WORKING
Post by: Sir Osis of Liver on August 11, 2017, 01:29:04 PM
Looks like a straightup 2.0.13 install, running Curve.  Couple of suggestions:

- Upgrade server to at least php 5.4.  Currently supported versions are 5.6, 7.0, 7.1, as per this (http://php.net/supported-versions.php).

- Do a clean 2.0.13 test install in another directory, import your production database, see if problem persists.