- Posts: 21
Joomdle 1.0 Installation
Joomla registration emails not being sent
- Civica Digital
- Topic Author
- Offline
- Junior Member
-
Less
More
9 years 10 months ago #1
by Civica Digital
Joomla registration emails not being sent was created by Civica Digital
Hi.
I have a problem with my Joomla system in that it is failing to send the registration emails to new users to allow them to activate their accounts.
After much head-scratching, I have found that it seems to be Joomdle that is causing the problem.
System specs:
* Joomla v 3.5.1
* Moodle v 3.0+
* Joomdle v 1.0.5 with minor custom code changes (see my previous thread for more info)
The symptoms are that when a user creates their account, the site simply redirects back to the home page instead of showing the standard "thank you for registering" message. The account is created in Joomla, and everything seems fine with it, but no emails are sent out -- neither to the end user, nor to the site admin.
Trying to diagnose the problem, I pulled up a list of all active plugins in the "user" category. This list looks as follows:
- User - K2
- Multi usergroup registration
- User - Profile
- User - Joomla!
- User hooks - Joomdle
After enabling / disabling several of these, I was able to determine that activating the Joomdle hooks plugin is the thing that triggers it to stop working. With the Joomdle hooks plugin disabled, the registration form works correctly; it gives the "thank you" message and sends the emails. Re-instating the Joomdle plugin stops it working again.
Note: As mentioned above, I have made some minor code changes to the Joomdle core. However, this consist solely of adding an additional API method, and should not have any impact on the registration process, since that method is not called. I've also written an additional Joomdle-specific plugin that uses this API method, but I have disabled that plugin as well and left it disabled, so is is out of the picture for this question.
Do you know of anything in Joomdle that could be causing this kind of issue?
The way it jumps back to the home page makes it looks like a permissions issue, but that would be really strange. Perhaps there's a Joomdle config setting somewhere that is incorrect?
Joomdle is working correctly in general apart from this -- ignoring the registration issues, the link between the Joomla and Moodle systems is correct. The auth tokens are working, single-sign-on works, user accounts are syncing correctly, course info can be viewed in Joomla... it's just this user registration thing.
I have a problem with my Joomla system in that it is failing to send the registration emails to new users to allow them to activate their accounts.
After much head-scratching, I have found that it seems to be Joomdle that is causing the problem.
System specs:
* Joomla v 3.5.1
* Moodle v 3.0+
* Joomdle v 1.0.5 with minor custom code changes (see my previous thread for more info)
The symptoms are that when a user creates their account, the site simply redirects back to the home page instead of showing the standard "thank you for registering" message. The account is created in Joomla, and everything seems fine with it, but no emails are sent out -- neither to the end user, nor to the site admin.
Trying to diagnose the problem, I pulled up a list of all active plugins in the "user" category. This list looks as follows:
- User - K2
- Multi usergroup registration
- User - Profile
- User - Joomla!
- User hooks - Joomdle
After enabling / disabling several of these, I was able to determine that activating the Joomdle hooks plugin is the thing that triggers it to stop working. With the Joomdle hooks plugin disabled, the registration form works correctly; it gives the "thank you" message and sends the emails. Re-instating the Joomdle plugin stops it working again.
Note: As mentioned above, I have made some minor code changes to the Joomdle core. However, this consist solely of adding an additional API method, and should not have any impact on the registration process, since that method is not called. I've also written an additional Joomdle-specific plugin that uses this API method, but I have disabled that plugin as well and left it disabled, so is is out of the picture for this question.
Do you know of anything in Joomdle that could be causing this kind of issue?
The way it jumps back to the home page makes it looks like a permissions issue, but that would be really strange. Perhaps there's a Joomdle config setting somewhere that is incorrect?
Joomdle is working correctly in general apart from this -- ignoring the registration issues, the link between the Joomla and Moodle systems is correct. The auth tokens are working, single-sign-on works, user accounts are syncing correctly, course info can be viewed in Joomla... it's just this user registration thing.
Please Log in or Create an account to join the conversation.
- Civica Digital
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 21
9 years 10 months ago #2
by Civica Digital
Replied by Civica Digital on topic Joomla registration emails not being sent
Additional information...
I think I may be homing in on the problem -- I just did a Joomdle system check, and it seems that Moodle to Joomla connectivity is broken. I guess that would explain the problem.
This was working previously (trust me, I checked!), but there has been some work recently on the server do to some security hardening, so I wonder if something they did with that work has broken the link.
I'll investigate further and report back. But for now, I'm assuming that this is the root cause of the problem,
I think I may be homing in on the problem -- I just did a Joomdle system check, and it seems that Moodle to Joomla connectivity is broken. I guess that would explain the problem.
This was working previously (trust me, I checked!), but there has been some work recently on the server do to some security hardening, so I wonder if something they did with that work has broken the link.
I'll investigate further and report back. But for now, I'm assuming that this is the root cause of the problem,
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
9 years 10 months ago #3
by Chris
Replied by Chris on topic Joomla registration emails not being sent
We trust you 
As you have pointed out, get that working first. Aside from that the only thing that stands out at this point is that you are using a multi usergroup registration. This may be in conflict depending on how it handles registrations and redirection after. It could be that there is some handshaking required. Once you have the connectivity issue resolved and if you still have a problem, for fun, try using the basic joomla registrration and joomdle (ie disable multi first). If that works, then enable and compare.
Also, it is worth noting that we have not done any testing with K2. I doubt that would cause a conflict assuming it is just a standard K2 install as a CCK however I understand there are some K2 plugins that integrate with registration. But it doesn't sounds you are using any of those.
As you have pointed out, get that working first. Aside from that the only thing that stands out at this point is that you are using a multi usergroup registration. This may be in conflict depending on how it handles registrations and redirection after. It could be that there is some handshaking required. Once you have the connectivity issue resolved and if you still have a problem, for fun, try using the basic joomla registrration and joomdle (ie disable multi first). If that works, then enable and compare.
Also, it is worth noting that we have not done any testing with K2. I doubt that would cause a conflict assuming it is just a standard K2 install as a CCK however I understand there are some K2 plugins that integrate with registration. But it doesn't sounds you are using any of those.
Please Log in or Create an account to join the conversation.
- Civica Digital
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 21
9 years 10 months ago #4
by Civica Digital
Replied by Civica Digital on topic Joomla registration emails not being sent
Hi.
Thanks for the reply.
1. The system check error does indeed seem to be due to the security hardening, but doesn't seem to be causing any other problems. (the direct URL it calls to connection_test_joomla.php to check the connection is being refused, but the rest of Joomdle is working fine)
2. I think you may be right about Multi Usergroup Registration. I can resolve the problem by disabling either it or Joomdle. The problem only occurs if I have both of the plugins active.
What did you mean by "some handshaking required"? is that something I could fix from this end, or would the two plugins need to be modified to be aware of each other? Would it help if I supplied the code for multi usergroup registration for you to look at?
Thanks for the reply.
1. The system check error does indeed seem to be due to the security hardening, but doesn't seem to be causing any other problems. (the direct URL it calls to connection_test_joomla.php to check the connection is being refused, but the rest of Joomdle is working fine)
2. I think you may be right about Multi Usergroup Registration. I can resolve the problem by disabling either it or Joomdle. The problem only occurs if I have both of the plugins active.
What did you mean by "some handshaking required"? is that something I could fix from this end, or would the two plugins need to be modified to be aware of each other? Would it help if I supplied the code for multi usergroup registration for you to look at?
Please Log in or Create an account to join the conversation.
- Civica Digital
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 21
9 years 10 months ago #5
by Civica Digital
Replied by Civica Digital on topic Joomla registration emails not being sent
Hi again.
A further update for you.
The problem is indeed in the Multi Usergroup Registration plugin.
This plugin has the following line of code toward the end of it's onUserAfterSave() function:
This seems to be what is making things blow up. I haven't traced it all the way through to work out exactly what's going on after this, but commenting out this line was enough to stop the issue from occurring.
I have posted a support request with JoomApp to discuss the issue with them.
I think this means that Joomdle is off the hook, so unless anything changes, I won't post to this thread any more. Thank you for your help with it though. Very much appreciated.
Regards,
Simon C.
A further update for you.
The problem is indeed in the Multi Usergroup Registration plugin.
This plugin has the following line of code toward the end of it's onUserAfterSave() function:
Code:
JFactory::getApplication()->logout($userId, array());
This seems to be what is making things blow up. I haven't traced it all the way through to work out exactly what's going on after this, but commenting out this line was enough to stop the issue from occurring.
I have posted a support request with JoomApp to discuss the issue with them.
I think this means that Joomdle is off the hook, so unless anything changes, I won't post to this thread any more. Thank you for your help with it though. Very much appreciated.
Regards,
Simon C.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
9 years 10 months ago #6
by Chris
Replied by Chris on topic Joomla registration emails not being sent
Glad to hear you have found the issue Simon.
Please let us know if you have any further issues.
Please let us know if you have any further issues.
Please Log in or Create an account to join the conversation.