MyBB Community Forums
Warn system error message missing - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Warn system error message missing (/thread-216583.html)



Warn system error message missing - Darkrad - 03-26-2018

Warning system has "daily warn limit" based on usergroups, one of my moderators noticed that when he gives 3 warns in a day, he is not getting any error message and instead gets empty text area (it has table head, but it doesnt have anything written.)  Any idea whats causing it and how can I make it show an error message saying "you can give 3 warns per day, you need to wait X amount of time to give another one"?


RE: Warn system error message missing - .m. - 03-26-2018

looks like triggered error message is "An unknown error has occurred." !
Actual message should be from datahandler_warnings.lang.php
$l['warnings_reached_max_warnings_day'] = 'You cannot warn anyone as you have reached your limit on the number of warnings you can give out per day.<br /><br />The maximum number of warnings you can give out per day is {1}."';



RE: Warn system error message missing - Darkrad - 03-26-2018

No actually it doesn't even say "An unknown error has occurred", it's just empty.

I can find that error message in language options, datahandler_warnings.lang.php.
I used file verification in admin panel and there's no change related to warnings.


RE: Warn system error message missing - .m. - 03-26-2018

exactly which version of MyBB you are using ?
And which language pack you are using ?

<-- Edit: removed suggestion related to file verification -->


RE: Warn system error message missing - Darkrad - 03-26-2018

1.8.14 currently. I am waiting for hotfix to upgrade.
I asked my moderator to test it in both English original and local version.


RE: Warn system error message missing - .m. - 03-27-2018

you can add below code in warnings.php file after $lang->load("warnings");
$lang->load("datahandler_warnings");

[more details]


RE: Warn system error message missing - Darkrad - 03-27-2018

So it's actually fixed in 1.8.15?


RE: Warn system error message missing - .m. - 03-27-2018

^ yes.