Community discussions

MikroTik App
 
User avatar
arjuneu
Member Candidate
Member Candidate
Topic Author
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Hotspot Error Message

Mon Nov 28, 2011 12:23 pm

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.
 
sloth
just joined
Posts: 20
Joined: Fri Nov 11, 2011 6:13 pm

Re: Hotspot Error Message

Fri May 18, 2012 9:11 pm

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 :(
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Hotspot Error Message

Tue May 22, 2012 2:07 pm

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.
 
User avatar
arjuneu
Member Candidate
Member Candidate
Topic Author
Posts: 174
Joined: Fri Oct 07, 2011 10:24 am

Re: Hotspot Error Message

Tue May 22, 2012 5:46 pm

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.
 
kembiet
Member Candidate
Member Candidate
Posts: 134
Joined: Thu Sep 22, 2011 12:09 pm

Re: Hotspot Error Message

Wed Sep 05, 2012 12:43 pm

no one has a solution for this?
 
jlct021
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Sun Mar 13, 2011 8:12 pm

Re: Hotspot Error Message

Sun Sep 06, 2015 12:57 am

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/
 
jlct021
Frequent Visitor
Frequent Visitor
Posts: 68
Joined: Sun Mar 13, 2011 8:12 pm

Re: Hotspot Error Message

Sun Sep 06, 2015 4:08 am

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>
====================================================
You do not have the required permissions to view the files attached to this post.