184.108.40.206 shows lua error in the wizard
|Reported by:||matthijs||Owned by:|
|Component:||fon-base-firmware||Version:||220.127.116.11 (Gari jr.)|
When using 18.104.22.168 on a clean Fonera (e.g., after a factory reset), the welcome wizard errors out with the following message (or something similar):
Error in template wizard_fonera2/register: ?:0: attempt to index field 'spot' (a nil value) stack traceback: [C]: in function '?' ?: in function <?:223> (tail call): ? ?: in function <?:660> ?: in function 'dispatch' ?: in function <?:132>
This happens when it tries to build a registration url, at:
- Step 3 (after setting the password) when the Fonera has no internet connection.
- Step 8 (after setting the megaupload password) when the Fonera is connected to the internet.
If this happens to you, don't panic! This only happens in the last step of the wizard, so you've only missed out on the registration of your Fonera, and there is a button available for that on the dashboard afterwards.
However, due to this error, the Fonera won't register that you've finished the wizard already. So if you get this error, navigate back to the main page (http://fonera). You'll get the wizard again, but just click "abort wizard" and you're done!
And now, for the technical stuff. The cause of this issue is that in the wizard, the luci.fon.spot lua module isn't included before calling luci.fon.reg.geturl(), while geturl assumes the module is included. This was not a problem with the registration url in the dashboard, since the systray.htm requires the luci.fon.spot before calling get_url.