Page 1 of 1

Hotspot Error Message

Posted: Mon Nov 28, 2011 12:23 pm
by arjuneu
Hello all,

I want to know that is there any way to change the error messages for hotspot users. I have users only in the UM. By changing the errors.txt, it only displays the error message for users created in hotspot. Is there a way to change the error message for users who are in UM.

Re: Hotspot Error Message

Posted: Fri May 18, 2012 9:11 pm
by sloth
After spending almost an hour troubleshooting what caused this error (errors.txt size, illegal characters in file, ..) in stumbled upon this thread.
Is there any workaround to fix it? This bug is very inconvenient :(

Re: Hotspot Error Message

Posted: Tue May 22, 2012 2:07 pm
by sergejs
You have an option to translate User Manager errors and interface to your native language.

- language translation is described here,
http://wiki.mikrotik.com/wiki/User_Manager/Languages

- translated language selection is available at User Manager interface ---> Settings ---> Languages.

Re: Hotspot Error Message

Posted: Tue May 22, 2012 5:46 pm
by arjuneu
I just want to change the error message in hotspot error message sent by UM. Like "no valid profile found" to "your account has expired" and so on. Not the interface language of UM.

Re: Hotspot Error Message

Posted: Wed Sep 05, 2012 12:43 pm
by kembiet
no one has a solution for this?

Re: Hotspot Error Message

Posted: Sun Sep 06, 2015 12:57 am
by jlct021
no one has a solution for this?
*bump*

Our users are created in batches by our clients when needed.

Valid for two weeks, with different quota amounts.

After quota has been reached and client tries to log back in the below error is generated:

"non valid profile found'

For clarity we'd like to change this to something like:

"Bandwidth quota reached, kindly renew at reception." (Or some such)

I found the below work around for 'existing' users, but not for 'batches' created at random:

https://aacable.wordpress.com/tag/user- ... d-profile/

Re: Hotspot Error Message

Posted: Sun Sep 06, 2015 4:08 am
by jlct021
Old post but seems the problem is still knocking about, below worked for us as far as changing the error goes:

http://forum.mikrotik.com/viewtopic.php ... ps#p424247

Extract of edited login.html page:

====================================================
<br /><div style="color: #c1c1c1; font-size: 9px">Powered by MikroTik RouterOS</div>
$(if error)<br /><div style="color: #FF8080; font-size: 9px"><script type="text/javascript">
var error = "$(error)";
if (error == "simultaneous session limit reached") {
document.write("simultaneous session limit reached");
}
else if (error == "invalid password") {
document.write("Invalid Password");
}
else if (error == "no valid profile found") {
document.write("Credit limit reached, kinldy top up at reception should you wish to coninue browsing.");
}
else if(error.search("not found") != -1) {
document.write("Unknown Error");
}
else document.write("$(error)<br />")
</script></div>$(endif)
</td>
</tr>
</table>

<script type="text/javascript">
<!--
document.login.username.focus();
//-->
</script>
====================================================