Modify

Opened 6 years ago

Closed 5 years ago

Last modified 3 years ago

#11680 closed defect (no_response)

Error when deleting and adding a new interface in LUCI

Reported by: Cristian Deluxe <djcristiandeluxe@…> Owned by:
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: luci Version: Trunk
Keywords: luci error interface add Cc:

Description

Hi, I've deleted the "WAN" interface and try to create it again with LUCI web interface and the web show me this error:

This page contains the following errors:
error on line 323 at column 57: expected '>'
Below is a rendering of the page up to the first error.

Here the HTML, for if it helps:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="auto" xmlns:xml="http://www.w3.org/XML/1998/namespace" lang="auto"><parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color: black"><h3>This page contains the following errors:</h3><div style="font-family:monospace;font-size:12px">error on line 323 at column 57: expected '&gt;'
</div><h3>Below is a rendering of the page up to the first error.</h3></parsererror>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<link rel="stylesheet" type="text/css" media="screen" href="/luci-static/openwrt.org/cascade.css" />
<!--[if IE 6]><link rel="stylesheet" type="text/css" media="screen" href="/luci-static/openwrt.org/ie6.css" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" type="text/css" media="screen" href="/luci-static/openwrt.org/ie7.css" /><![endif]-->
<!--[if IE 8]><link rel="stylesheet" type="text/css" media="screen" href="/luci-static/openwrt.org/ie8.css" /><![endif]-->
<script type="text/javascript" src="/luci-static/resources/xhr.js"></script>
<title>OPENWRT - Interfaces - LuCI</title>
<style id="wrc-middle-css" type="text/css">.wrc_whole_window{	display: none;	position: fixed; 	z-index: 2147483647;	background-color: rgba(40, 40, 40, 0.9);	word-spacing: normal;	margin: 0px;	padding: 0px;	border: 0px;	left: 0px;	top: 0px;	width: 100%;	height: 100%;	line-height: normal;	letter-spacing: normal;}.wrc_middle_main {	font-family: Segoe UI, Arial Unicode MS, Arial, Sans-Serif;	font-size: 14px;	width: 600px;	height: auto;	margin: 0px auto;	margin-top: 15%;    background: url(chrome-extension://icmlaeflemplmjndnaapfdbbnpncnbda/skin/images/background-body.jpg) repeat-x left top;	background-color: rgb(39, 53, 62);}.wrc_middle_logo {    background: url(chrome-extension://icmlaeflemplmjndnaapfdbbnpncnbda/skin/images/logo.jpg) no-repeat left bottom;    width: 140px;    height: 42px;    color: orange;    display: table-cell;    text-align: right;    vertical-align: middle;}.wrc_icon_warning {	margin: 20px 10px 20px 15px;	float: left;	background-color: transparent;}.wrc_middle_title {    color: #b6bec7;	height: auto;    margin: 0px auto;	font-size: 2.2em;	white-space: nowrap;	text-align: center;}.wrc_middle_hline {    height: 2px;	width: 100%;    display: block;}.wrc_middle_description {	text-align: center;	margin: 15px;	font-size: 1.4em;	padding: 20px;	height: auto;	color: white;	min-height: 3.5em;}.wrc_middle_actions_main_div {	margin-bottom: 15px;	text-align: center;}.wrc_middle_actions_blue_button {	-moz-appearance: none;	border-radius: 7px;	-moz-border-radius: 7px/7px;	border-radius: 7px/7px;	background-color: rgb(0, 173, 223) !important;	display: inline-block;	width: auto;	cursor: Pointer;	border: 2px solid #00dddd;}.wrc_middle_actions_blue_button:hover {	background-color: rgb(0, 159, 212) !important;}.wrc_middle_actions_blue_button:active {	background-color: rgb(0, 146, 200) !important;	border: 2px solid #00aaaa;}.wrc_middle_actions_blue_button div {	display: inline-block;	width: auto;	cursor: Pointer;	margin: 3px 10px 3px 10px;	color: white;	font-size: 1.2em;	font-weight: bold;}.wrc_middle_action_low {	font-size: 0.9em;	white-space: nowrap;	cursor: Pointer;	color: grey !important;	margin: 10px 10px 0px 10px;	text-decoration: none;}.wrc_middle_action_low:hover {	color: #aa4400 !important;}.wrc_middle_actions_rest_div {	padding-top: 5px;	white-space: nowrap;	text-align: center;}.wrc_middle_action {	white-space: nowrap;	cursor: Pointer;	color: red !important;	font-size: 1.2em;	margin: 10px 10px 0px 10px;	text-decoration: none;}.wrc_middle_action:hover {	color: #aa4400 !important;}</style><script id="wrc-script-middle_window" type="text/javascript" language="JavaScript">var g_inputsCnt = 0;var g_InputThis = new Array(null, null, null, null);var g_alerted = false;/* we test the input if it includes 4 digits   (input is a part of 4 inputs for filling the credit-card number)*/function is4DigitsCardNumber(val){	var regExp = new RegExp('[0-9]{4}');	return (val.length == 4 && val.search(regExp) == 0);}/* testing the whole credit-card number 19 digits devided by three '-' symbols or   exactly 16 digits without any dividers*/function isCreditCardNumber(val){	if(val.length == 19)	{		var regExp = new RegExp('[0-9]{4}-[0-9]{4}-[0-9]{4}-[0-9]{4}');		return (val.search(regExp) == 0);	}	else if(val.length == 16)	{		var regExp = new RegExp('[0-9]{4}[0-9]{4}[0-9]{4}[0-9]{4}');		return (val.search(regExp) == 0);	}	return false;}function CheckInputOnCreditNumber(self){	if(g_alerted)		return false;	var value = self.value;	if(self.type == 'text')	{		if(is4DigitsCardNumber(value))		{			var cont = true;			for(i = 0; i < g_inputsCnt; i++)				if(g_InputThis[i] == self)					cont = false;			if(cont && g_inputsCnt < 4)			{				g_InputThis[g_inputsCnt] = self;				g_inputsCnt++;			}		}		g_alerted = (g_inputsCnt == 4);		if(g_alerted)			g_inputsCnt = 0;		else			g_alerted = isCreditCardNumber(value);	}	return g_alerted;}function CheckInputOnPassword(self){	if(g_alerted)		return false;	var value = self.value;	if(self.type == 'password')	{		g_alerted = (value.length > 0);	}	return g_alerted;}function onInputBlur(self, bRatingOk, bFishingSite){	var bCreditNumber = CheckInputOnCreditNumber(self);	var bPassword = CheckInputOnPassword(self);	if((!bRatingOk || bFishingSite == 1) && (bCreditNumber || bPassword) )	{		var warnDiv = document.getElementById("wrcinputdiv");		if(warnDiv)		{			/* show the warning div in the middle of the screen */			warnDiv.style.left = "0px";			warnDiv.style.top = "0px";			warnDiv.style.width = "100%";			warnDiv.style.height = "100%";			document.getElementById("wrc_warn_fs").style.display = 'none';			document.getElementById("wrc_warn_cn").style.display = 'none';			if(bFishingSite)				document.getElementById("wrc_warn_fs").style.display = 'block';			else				document.getElementById("wrc_warn_cn").style.display = 'block';			warnDiv.style.display = 'block';		}	}}</script></head>
<body class="lang_auto">

<p class="skiplink">
<span id="skiplink1"><a href="#navigation">Skip to navigation</a></span>
<span id="skiplink2"><a href="#content">Skip to content</a></span>
</p>

<div id="menubar">
<h2 class="navigation"><a id="navigation" name="navigation">Navigation</a></h2>

<div class="hostinfo">
	OPENWRT | Attitude Adjustment r32376 |
	Load: 1.15 1.54 0.99
	<span id="xhr_poll_status" style="display:none" onclick="XHR.running() ? XHR.halt() : XHR.run()">
		| Auto Refresh:
		<span id="xhr_poll_status_on">on</span>
		<span id="xhr_poll_status_off" style="display:none">off</span>
	</span>
</div>



<div id="savemenu">
	
		<a class="warning" href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/uci/changes/?redir=%2fcgi-bin%2fluci%2f%3bstok%3d10d6956d2cf09cc3958d10b301625741%2fadmin%2fnetwork%2fnetwork%2feth1">Unsaved Changes: 3</a></div>

<div class="clear"></div>
</div>

<div id="maincontainer">
	<div id="tabmenu">
		
	<div class="tabmenu1">
	<ul class="tabmenu l1">
		
			<li class="tabmenu-item-status">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/status/">Status</a>
			</li>
		
			<li class="tabmenu-item-system">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/system/">System</a>
			</li>
		
			<li class="tabmenu-item-services">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/services/">Services</a>
			</li>
		
			<li class="tabmenu-item-network active">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/">Network</a>
			</li>
		
			<li class="tabmenu-item-logout">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/logout/">Logout</a>
			</li>
		
	</ul>
	<br style="clear:both" />

	<div class="tabmenu2">
	<ul class="tabmenu l2">
		
			<li class="tabmenu-item-network active">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/">Interfaces</a>
			</li>
		
			<li class="tabmenu-item-wireless">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/wireless/">Wifi</a>
			</li>
		
			<li class="tabmenu-item-vlan">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/vlan/">Switch</a>
			</li>
		
			<li class="tabmenu-item-dhcp">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/dhcp/">DHCP and DNS</a>
			</li>
		
			<li class="tabmenu-item-hosts">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/hosts/">Hostnames</a>
			</li>
		
			<li class="tabmenu-item-routes">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/routes/">Static Routes</a>
			</li>
		
			<li class="tabmenu-item-firewall">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/firewall/">Firewall</a>
			</li>
		
			<li class="tabmenu-item-diagnostics">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/diagnostics/">Diagnostics</a>
			</li>
		
			<li class="tabmenu-item-qos">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/qos/">QoS</a>
			</li>
		
	</ul>
	<br style="clear:both" />

	<div class="tabmenu3">
	<ul class="tabmenu l3">
		
			<li class="tabmenu-item-eth1 active">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/eth1/">ETH1</a>
			</li>
		
			<li class="tabmenu-item-lan">
				<a href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/lan/">LAN</a>
			</li>
		
	</ul>
	<br style="clear:both" />

	</div>

	</div>

	</div>

	</div>

	<div id="maincontent">
		<noscript>
			<div class="errorbox">
				<strong>Java Script required!</strong><br />
				You must enable Java Script in your browser or LuCI will not work properly.
			</div>
		</noscript>

<form method="post" name="cbi" action="" enctype="multipart/form-data" onreset="return cbi_validate_reset(this)" onsubmit="return cbi_validate_form(this, 'Some fields are invalid, cannot save values!')">
	<div>
		<script type="text/javascript" src="/luci-static/resources/cbi.js"></script>
		<input type="hidden" name="cbi.submit" value="1" />
		<input type="submit" value="Save" class="hidden" />
	</div>

<div class="cbi-map" id="cbi-network">
	<h2><a id="content" name="content">Interfaces - ETH1</a></h2>
	<div class="cbi-map-descr">On this page you can configure the network interfaces. You can bridge several interfaces by ticking the "bridge interfaces" field and enter the names of several network interfaces separated by spaces. You can also use <abbr title="Virtual Local Area Network">VLAN</abbr> notation <samp>INTERFACE.VLANNR</samp> (<abbr title="for example">e.g.</abbr>: <samp>eth0.1</samp>).</div>

	<fieldset class="cbi-section" id="cbi-network-eth1">
		<legend>Common Configuration</legend>
		
		
		
	<ul class="cbi-tabmenu">

		<script type="text/javascript">cbi_c['container.network.eth1.general'] = 4;</script>
		<li id="tab.network.eth1.general" class="cbi-tab">
			<a onclick="this.blur(); return cbi_t_switch('network.eth1', 'general')" href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/eth1?tab.network.eth1=general">General Setup</a>
			<input type="hidden" id="tab.network.eth1" name="tab.network.eth1" value="general" />
		</li>
	
		<script type="text/javascript">cbi_c['container.network.eth1.advanced'] = 10;</script>
		<li id="tab.network.eth1.advanced" class="cbi-tab-disabled">
			<a onclick="this.blur(); return cbi_t_switch('network.eth1', 'advanced')" href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/eth1?tab.network.eth1=advanced">Advanced Settings</a>
			
		</li>
	
		<script type="text/javascript">cbi_c['container.network.eth1.physical'] = 4;</script>
		<li id="tab.network.eth1.physical" class="cbi-tab-disabled">
			<a onclick="this.blur(); return cbi_t_switch('network.eth1', 'physical')" href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/eth1?tab.network.eth1=physical">Physical Settings</a>
			
		</li>
	
		<script type="text/javascript">cbi_c['container.network.eth1.firewall'] = 1;</script>
		<li id="tab.network.eth1.firewall" class="cbi-tab-disabled">
			<a onclick="this.blur(); return cbi_t_switch('network.eth1', 'firewall')" href="/cgi-bin/luci/;stok=10d6956d2cf09cc3958d10b301625741/admin/network/network/eth1?tab.network.eth1=firewall">Firewall Settings</a>
			
		</li>
	</ul>

		<div class="cbi-section-node cbi-section-node-tabbed" id="cbi-network-eth1">
			


	
	<div class="cbi-tabcontainer" id="container.network.eth1.firewall" style="display:none">
		
		<div class="cbi-value cbi-value-last" id="cbi-network-eth1-_fwzone"><label class="cbi-value-title" for="cbid.network.eth1._fwzone">Create / Assign firewall-zone</label>
		<div class="cbi-value-field">

<ul style="margin:0; list-style-type:none; text-align:left">
	
	
	
	<li style="padding:0.5em">
		<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio" id="cbid.network.eth1._fwzone.lan" name="cbid.network.eth1._fwzone" value="lan" />  
		<label for="cbid.network.eth1._fwzone.lan" style="background-color:#90f090" class="zonebadge">
			<strong>lan:</strong>
			
				<span class="ifacebadge">lan:
				
					<img title="Ethernet Adapter: &quot;eth0&quot;" style="width:16px; height:16px; vertical-align:middle" src="/luci-static/resources/icons/ethernet.png" />
				
					<img title="Wireless Network: Unknown &quot;OpenWrt&quot;" style="width:16px; height:16px; vertical-align:middle" src="/luci-static/resources/icons/wifi_disabled.png" />
				
				
				</span>
			
			
		</label>
	</li>
	
	<li style="padding:0.5em">
		<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio" id="cbid.network.eth1._fwzone.wan" name="cbid.network.eth1._fwzone" value="wan" />  
		<label for="cbid.network.eth1._fwzone.wan" style="background-color:#f09090" class="zonebadge">
			<strong>wan:</strong>
			
			<em>(empty)</em>
		</label>
	</li>
	

	
	<li style="padding:0.5em">
		<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio" id="cbid.network.eth1._fwzone_new" name="cbid.network.eth1._fwzone" value="-" checked="checked" />  
		<div onclick="document.getElementById('cbid.network.eth1._fwzone_new').checked=true" class="zonebadge" style="background-color:#eeeeee">
			<em>unspecified -or- create: </em>
			<input type="text" name="cbid.network.eth1._fwzone.newzone" value="" onfocus="document.getElementById('cbid.network.eth1._fwzone_new').checked=true" />
		</div>
	</li>
	
</ul>

		<br />
			<div class="cbi-value-description">
				<span class="cbi-value-helpicon"><img src="/luci-static/resources/cbi/help.gif" alt="help" /></span>
				Choose the firewall zone you want to assign to this interface. Select <em>unspecified</em> to remove the interface from the associated zone or fill out the <em>create</em> field to define a new zone and attach the interface to it.
			</div>
</div></div>


<script type="text/javascript" id="cbip-network-eth1-_fwzone">
		
		cbi_d_add("cbi-network-eth1-_fwzone", {"cbid.network.eth1.proto":"dhcp"}, "cbip-network-eth1-_fwzone");
	</script>



	</div>
	<script type="text/javascript">cbi_t_add('network.eth1', 'firewall')</script>

	<div class="cbi-tabcontainer" id="container.network.eth1.physical" style="display:none">
		
		<div class="cbi-value" id="cbi-network-eth1-type"><label class="cbi-value-title" for="cbid.network.eth1.type">Bridge interfaces</label>
		<div class="cbi-value-field">

	<input type="hidden" value="1" name="cbi.cbe.network.eth1.type" />
	<input class="cbi-input-checkbox" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="checkbox" id="cbid.network.eth1.type" name="cbid.network.eth1.type" value="bridge" />
		
			<div class="cbi-value-description">
				<span class="cbi-value-helpicon"><img src="/luci-static/resources/cbi/help.gif" alt="help" /></span>
				creates a bridge over specified interface(s)
			</div>
</div></div>


<script type="text/javascript" id="cbip-network-eth1-type">
		
		cbi_d_add("cbi-network-eth1-type", {"cbid.network.eth1.proto":"dhcp"}, "cbip-network-eth1-type");cbi_d_add("cbi-network-eth1-type", {"cbid.network.eth1.proto":"dhcp"}, "cbip-network-eth1-type");cbi_d_add("cbi-network-eth1-type", {"cbid.network.eth1.proto":"dhcp"}, "cbip-network-eth1-type");
	</script>


<div class="cbi-value" id="cbi-network-eth1-stp"><label class="cbi-value-title" for="cbid.network.eth1.stp">Enable <abbr title="Spanning Tree Protocol">STP</abbr></label>
		<div class="cbi-value-field">

	<input type="hidden" value="1" name="cbi.cbe.network.eth1.stp" />
	<input class="cbi-input-checkbox" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="checkbox" id="cbid.network.eth1.stp" name="cbid.network.eth1.stp" value="1" />
		
			<div class="cbi-value-description">
				<span class="cbi-value-helpicon"><img src="/luci-static/resources/cbi/help.gif" alt="help" /></span>
				Enables the Spanning Tree Protocol on this bridge
			</div>
</div></div>


<script type="text/javascript" id="cbip-network-eth1-stp">
		
		cbi_d_add("cbi-network-eth1-stp", {"cbid.network.eth1.proto":"dhcp","cbid.network.eth1.type":"bridge"}, "cbip-network-eth1-stp");
	</script>


<div class="cbi-value" id="cbi-network-eth1-ifname_single"><label class="cbi-value-title" for="cbid.network.eth1.ifname_single">Interface</label>
		<div class="cbi-value-field">

<input type="hidden" name="cbi.cbe.network.eth1.ifname_single" value="1" />
<ul style="margin:0; list-style-type:none">
	
	<li>
		<input class="cbi-input-radio" onclick="cbi_d_update(this.id)" onchange="cbi_d_update(this.id)" type="radio" id="cbid.network.eth1.ifname_single.eth0" name="cbid.network.eth1.ifname_single" value="eth0" />  
		<label for="cbid.network.eth1.ifname_single.eth0">
			<img title="Ethernet Adapter" style="width:16px; height:16px; vertical-align:middle" src="/luci-static/resources/icons/ethernet.png" />
			Ethernet Adapter: "eth0"

<h2><a id="content" name="content">500 Internal Server Error</a></h2>
<p>Sorry, the server encountered an unexpected error.</p>
<pre class="error500"></pre></label></li></ul></div></div></div></div></fieldset></div></form></div></div></body><link rel="stylesheet" type="text/css" href="data:text/css," /></html>

URL:
http://192.168.2.1/cgi-bin/luci/;stok=123ramdomdata123/admin/network/network/eth1

Tested with r32376

Thanks

Attachments (0)

Change History (6)

comment:1 follow-up: Changed 6 years ago by jow

  • Priority changed from normal to response-needed

The most interesting part is truncated.

comment:2 in reply to: ↑ 1 Changed 6 years ago by anonymous

Replying to jow:

The most interesting part is truncated.

What do you need?

comment:3 Changed 5 years ago by nbd

  • Resolution set to no_response
  • Status changed from new to closed

comment:4 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:5 Changed 3 years ago by openwrt@…

I confirm this has not been fixed in barrier breaker rc3. I can reproduce it just by going to WAN settings and click to Save without changing anything at all.

comment:7 Changed 3 years ago by chris5560

Please have look at ticket #18018
There is a short term solution and patch available.
I also send a patch to LuCI and OpenWrt development group.
Still awaiting to be implemented into sources and being recompiled.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.