-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Birthday alert generates a blank message and errors in log #3134
Comments
Can you provide me with the data for those alerts? The text is set based on the content_type and content_action (see the fetch_alerts function in Sources/Profile-View.php). If it's not set, then that means the language string for that combination of type and action doesn't exist. |
Ups, I forgot about this, sorry. There is no data I can give you, really, other than the error log. Because the alert message I get is empty 👅 Just go to your notification preferences and set "When it's my birthday --> Receive alert" |
Eh, found something. It seems that there is a typo in Alerts.english.php
Looking at smf_user_alerts, content_type is "birthday" and content_action is "msg" so that text key should be "alert_birthday_msg". Bingo, that kills the error :) The problem is that it seems we're receiving the email template in the alert :(
edit: I see it, we are not processing the replacements. Maybe I can still fix this after all 👅 |
Signed-off-by: Bruno Alves <bruno.m.alves@gmail.com>
Signed-off-by: Bruno Alves <bruno.m.alves@gmail.com>
If a user chooses to receive its birthday notification via alert, the generated alert is empty and it generates errors in the log: one in the popup and other in the alerts list
Undefined index: text
http://localhost/smf21_clean/index.php?action=profile;area=alerts_popup;u=1
File: C:/xampp/htdocs/smf21_clean/Themes/default/Profile.template.php
Line: 116
Undefined index: text
http://localhost/smf21_clean/index.php?action=profile;area=showalerts
File: C:/xampp/htdocs/smf21_clean/Themes/default/Profile.template.php
Line: 583
I tried to debug this for a while but I can't understand how the alert system works under the hood...
The text was updated successfully, but these errors were encountered: