[luci] [LuCI] #92: /usr/lib/lua/luci/template.lua:102: Error in template cbi/map: [string "/usr/lib/lua/luci/view/cbi/map.htm"]:6: attempt to call global 'pcdata' (a nil value)

LuciTrac trac at luci.subsignal.org
Sun Oct 18 14:10:57 CEST 2009


#92: /usr/lib/lua/luci/template.lua:102: Error in template cbi/map: [string
"/usr/lib/lua/luci/view/cbi/map.htm"]:6: attempt to call global 'pcdata' (a
nil value)
-----------------------+----------------------------------------------------
 Reporter:  reporter   |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  major      |   Milestone:     
Component:  LuCI Base  |    Keywords:     
-----------------------+----------------------------------------------------
 Using the latest SVN, with the "essentials" web gui, trying to save
 changes in the wifi settings leads to a firefox XML error. The page
 sources show

 {{{
 <div class="cbi-map" id="cbi-wireless">
         <h2><a id="content" name="content">Wifi</a></h2>
         <div class="cbi-map-descr">Here you can configure installed wifi
 devices.</div><fieldset class="cbi-section">

                         <legend>Applying changes</legend>
                         <ul class="cbi-apply">

 <h2><a id="content" name="content">500 Internal Server Error</a></h2>
 <p>Sorry, the server encountered an unexpected error.</p>
 <pre class="error500">/usr/lib/lua/luci/template.lua:102: Error in
 template cbi/map: [string "/usr/lib/lua/luci/view/cbi/map.htm"]:6: attempt
 to call global 'pcdata' (a nil value)
 stack traceback:
         [C]: in function 'error'
         /usr/lib/lua/luci/template.lua:102: in function
 </usr/lib/lua/luci/template.lua:90>
         (tail call): ?
         /usr/lib/lua/luci/cbi.lua:265: in function 'render'
         /usr/lib/lua/luci/cbi.lua:416: in function 'render'
         /usr/lib/lua/luci/dispatcher.lua:708: in function 'target'
         /usr/lib/lua/luci/dispatcher.lua:365: in function 'dispatch'
         /usr/lib/lua/luci/dispatcher.lua:129: in function
 </usr/lib/lua/luci/dispatcher.lua:128></pre>
 <div class="clear"></div>
 </div>
 }}}

 The changes are actually applied, but the LuCI page keeps showing that
 error.

-- 
Ticket URL: <http://luci.subsignal.org/trac/ticket/92>
LuCI <http://luci.subsignal.org/trac>
LuCI - Lua Configuration Interface


More information about the luci mailing list