Modify

Opened 5 years ago

Closed 5 years ago

#1228 closed bug (fixed)

3G webinterface page is broken in 2.3.7.0 rc1

Reported by: matthijs Owned by:
Priority: normal Milestone: Firmware 2.3.7.0
Component: fon-network-3g Version: 2.3.7.0 rc1
Severity: minor
Cc: christer.ekebom@…, ob2aryadi@… Hardware: both

Description

On the blog, two users report the 3g page gives a backtrace:


?:0: attempt to compare two table values
stack traceback:
?: in function
[C]: in function ’sort’
?: in function
(tail call): ?
?: in main chunk
?: in function ‘load’
?: in function
?: in function ‘dispatch’
?: in function

http://blog.fonosfera.org/2370-release-candidate-released/#comment-206477

http://blog.fonosfera.org/2370-release-candidate-released/#comment-206839

Attachments (2)

auth.lua (3.5 KB) - added by matthijs 5 years ago.
Fixed auth.lua
main.lua (8.0 KB) - added by matthijs 5 years ago.
Fixed main.lua

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by matthijs

Fixed auth.lua

Changed 5 years ago by matthijs

Fixed main.lua

comment:1 Changed 5 years ago by matthijs

  • Hardware changed from unknown to both
  • Severity changed from unknown to minor
  • Status changed from new to testing-fix

Turns out the 3G code was using the same country list as the wifi code, which got changed in r2169. I've attached a fixed version of two of the 3G files involved.

To install the fix, run the following two commands:

root@Fonera:~# wget -O /usr/lib/lua/luci/model/cbi/fon_umts/auth.lua http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/1228/auth.lua 
root@Fonera:~# wget -O /usr/lib/lua/luci/model/cbi/fon_umts/main.lua http://trac.fonosfera.org/fon-ng/raw-attachment/ticket/1228/main.lua

Could you please test if this indeed fixes the problem for you?

comment:2 Changed 5 years ago by anonymous

I cannot test it because the files (auth.lua and main.lua) will not run as such. My La Fonera 2.0n says "invalid image". Do I do something wrong? Tried to run them as firmware update and settings update. Is there anoyther way to do the run?

christer.ekebom@…

comment:3 Changed 5 years ago by matthijs

Uhm, you should run the commands I showed in my previous command, through an SSH connection. See reportbugs for more info running commands on your Fonera.

comment:4 Changed 5 years ago by anonymous

Tnx! I'll try that! :-)

Christer

comment:5 Changed 5 years ago by matthijs

  • Resolution set to fixed
  • Status changed from testing-fix to closed

(In [2215]) Update 3G code to use new country list.

In r2169, the format of the list of countries in /etc/3166en.db.lua was changed to also store wifi regdomains. It turns out that the 3G code also uses this list, but since it still expected the old format, breaking the 3G settings page.

This commit updates the 3G code to also use the new format, fixing the 3G settings page.

Closes: #1228

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.