Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Mentioning Does Not Send Notification
PFAFF
✭
Wondering if I could get some help. For some reason, when you mention someone it doesn't send a notification email (pop ups do not work either). Would love to have this feature working on my site. Other notifications seem to work correctly.
Not sure where to even begin.
0
Comments
Notifications are tricky.... Finding the cause for this is really hard. Please start by looking at the Activity table in your database (normally it would be called
GDN_Activity
). Mentioning a user should create a row in that table.If you see such entries, the notification doesn't work, if there are no entries, mentioning does not work.
You can write a plugin which hooks into some of the used events and write some output in a log file (most of the work is done in models and writing debug output to screen for code that runs in the model almost always fails).
Search for the BeforeNotification event in the CommentModel and the DiscussionModel.
Search for the InformNotifications event in the notificationscontroller.
Look through the ActivityModel and -Controller to find other useful events where it might be worth checking what is passed as $sender->EventArguments
When I look in the Activity table, I indeed see the Comment activity, but not the Mention activity.
The most easiest to fix thing would be if the getMentions() function is not working. Create a file
/plugins/wtf/class.wtf.plugin.php
After saving, activate it and go to http://www.nerdlouisville.org/discussion/#/vanilla/wtf
@R_J , first thanks for your help!
Second, I added this plugin and activated / ran it, however it returns a blank page.
Would that fall under the result looking different? Should I re-upload functions.general.php? Or, try b?
It doesn't hurt to do both
I suspect it gives a blank page because you have an older php version which doesn't support the new array syntax
I'm using PHP 5.6.15. I'll try the aforementioned items and see if that helps. Thanks!