Modify

Opened 3 years ago

Last modified 22 months ago

#19752 new defect

luci-theme-openwrt is "broken" in Chaos Calmer 15.05-rc1

Reported by: angelos Owned by:
Priority: high Milestone: Chaos Calmer 15.05
Component: luci Version: Trunk
Keywords: luci-theme-openwrt Chaos Calmer 15.05 RC1 Cc:

Description

The old (classic) theme in 15.05 rc1 is "broken".
I don't know how else to describe it so here is a photo from the browser:

http://s23.postimg.org/4whwgdgob/luci_wrt.png

The platform is x86 (PC).
I can't test other platforms right now, so can someone install luci-theme-openwrt and test it's functionality?

I have also opened a forum thread:
https://forum.openwrt.org/viewtopic.php?id=57606

Attachments (0)

Change History (24)

comment:1 Changed 3 years ago by jow

Please attach the contents of /etc/config/luci and the output of opkg list_installed | grep luci.
Also was that a clean install or a sysupgrade? In case of sysupgrade, from which version?

Does reinstalling luci-theme-openwrt fix the issue?

comment:2 Changed 3 years ago by angelos

It is a clean install.
The only packages I have installed are luci-ssl and luci-theme-openwrt, nothing more.

I am using http://downloads.openwrt.org/chaos_calmer/15.05-rc1/x86/generic/openwrt-15.05-rc1-x86-generic-combined-ext4.img.gz on a usb stick.

I removed the luci-theme-openwrt package and installed it again, same behaviour.


#cat /etc/config/luci


config core 'main'
        option lang 'auto'
        option resourcebase '/luci-static/resources'
        option mediaurlbase '/luci-static/openwrt.org'

config extern 'flash_keep'
        option uci '/etc/config/'
        option dropbear '/etc/dropbear/'
        option openvpn '/etc/openvpn/'
        option passwd '/etc/passwd'
        option opkg '/etc/opkg.conf'
        option firewall '/etc/firewall.user'
        option uploads '/lib/uci/upload/'

config internal 'languages'

config internal 'sauth'
        option sessionpath '/tmp/luci-sessions'
        option sessiontime '3600'

config internal 'ccache'
        option enable '1'

config internal 'themes'
        option Bootstrap '/luci-static/bootstrap'
        option OpenWrt '/luci-static/openwrt.org'
#opkg list_installed | grep luci


luci - git-15.126.50380-7a54785-1
luci-app-firewall - git-15.126.50380-7a54785-1
luci-base - git-15.126.50380-7a54785-1
luci-lib-ip - git-15.126.50380-7a54785-1
luci-lib-nixio - git-15.126.50380-7a54785-1
luci-mod-admin-full - git-15.126.50380-7a54785-1
luci-proto-ipv6 - git-15.126.50380-7a54785-1
luci-proto-ppp - git-15.126.50380-7a54785-1
luci-ssl - git-15.126.50380-7a54785-1
luci-theme-bootstrap - git-15.126.50380-7a54785-1
luci-theme-openwrt - git-15.126.50380-7a54785-1

comment:3 Changed 3 years ago by pharaoh@…

the theme is working in my ar71xxx builds (downloaded and built with ImageBuilder), seems to be specific to x86.

comment:4 Changed 3 years ago by seebaastian@…

It's the same for me but the difference is that mine was working properly and suddenly stop doing so... I have an x86 machine and Luci is not working properly. I've tried uninstall/reinstall but it didn't work.Now the issue is bigger because I can't get luci online.

Here is my setup:

cat /etc/config/luci

config core 'main'
	option lang 'auto'
	option resourcebase '/luci-static/resources'
	option mediaurlbase '/luci-static/openwrt.org'

config extern 'flash_keep'
	option uci '/etc/config/'
	option dropbear '/etc/dropbear/'
	option openvpn '/etc/openvpn/'
	option passwd '/etc/passwd'
	option opkg '/etc/opkg.conf'
	option firewall '/etc/firewall.user'
	option uploads '/lib/uci/upload/'

config internal 'languages'

config internal 'sauth'
	option sessionpath '/tmp/luci-sessions'
	option sessiontime '3600'

config internal 'ccache'
	option enable '1'

config internal 'themes'
	option Bootstrap '/luci-static/bootstrap'
	option OpenWrt '/luci-static/openwrt.org'
 opkg list_installed | grep luci
luci - git-15.126.50380-7a54785-1
luci-app-ddns - 2.2.2-1
luci-app-firewall - git-15.126.50380-7a54785-1
luci-app-samba - git-15.126.50380-7a54785-1
luci-base - git-15.126.50380-7a54785-1
luci-lib-ip - git-15.126.50380-7a54785-1
luci-lib-nixio - git-15.126.50380-7a54785-1
luci-mod-admin-full - git-15.126.50380-7a54785-1
luci-proto-ipv6 - git-15.126.50380-7a54785-1
luci-proto-ppp - git-15.126.50380-7a54785-1
luci-theme-bootstrap - git-15.126.50380-7a54785-1
luci-theme-openwrt - git-15.126.50380-7a54785-1

comment:5 follow-up: Changed 3 years ago by anonymous

To be honest I've tried to switch to other theme and it looks broken too.

comment:6 Changed 3 years ago by jow

Attach the html source view of the broken login page, I want to know whether the CSS is referenced at least.

comment:7 in reply to: ↑ 5 Changed 3 years ago by pharaoh@…

Replying to anonymous:

To be honest I've tried to switch to other theme and it looks broken too.

static content like css will be cached mostly, did you try to clear all browser caches?

comment:8 Changed 3 years ago by angelos

In my case, the Bootstrap theme is working.

Here is the html source of the start page:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="auto" lang="auto">
<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 - LuCI</title>
</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 | OpenWrt Chaos Calmer 15.05-rc1 |
	Load: 0.03 0.02 0.01
	<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 class="clear"></div>
</div>

<div id="maincontainer">
	<div id="tabmenu">
		
	</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><div class="errorbox">
			<strong>No password set!</strong><br />
			There is no password set on this router. Please configure a root password to protect the web interface and enable SSH.<br />
			<a href="/cgi-bin/luci/admin/system/admin">Go to password configuration...</a>
		</div>


<form method="post" action="">
	<div class="cbi-map">
		<h2><a id="content" name="content">Authorization Required</a></h2>
		<div class="cbi-map-descr">
			Please enter your username and password.</div>
		<fieldset class="cbi-section"><fieldset class="cbi-section-node">
			<div class="cbi-value">
				<label class="cbi-value-title">Username</label>
				<div class="cbi-value-field">
					<input class="cbi-input-user" type="text" name="luci_username" value="root" />
				</div>
			</div>
			<div class="cbi-value cbi-value-last">
				<label class="cbi-value-title">Password</label>
				<div class="cbi-value-field">
					<input class="cbi-input-password" type="password" name="luci_password" />
				</div>
			</div>
		</fieldset></fieldset>
	</div>

	<div>
		<input type="submit" value="Login" class="cbi-button cbi-button-apply" />
		<input type="reset" value="Reset" class="cbi-button cbi-button-reset" />
	</div>
</form>
<script type="text/javascript">//<![CDATA[
	var input = document.getElementsByName('luci_password')[0];
	if (input)
		input.focus();
//]]></script>



<script type="text/javascript">//<![CDATA[
	if (document.location.protocol != 'https:') {
		var url = 'https://' + window.location.hostname + ':' + '443' + window.location.pathname;
		var img=new Image;
		img.onload=function(){window.location = url};
		img.src='https://' + window.location.hostname + ':' + '443' + '/luci-static/resources/cbi/up.gif?' + Math.random();;
		setTimeout(function(){
			img.src=''
		}, 5000);
	}
//]]></script>



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

<p class="luci">
	Powered by LuCI Master (git-15.126.50380-7a54785)
</p>
</body>
</html>

comment:9 Changed 3 years ago by seebaastian@…

I've tried to clear cache and it didn't worked. Here is my source code:}

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="auto" lang="auto">
<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_Servidor - LuCI</title>
</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_Servidor | OpenWrt Chaos Calmer 15.05-rc1 |
	Load: 0.00 0.01 0.05
	<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 class="clear"></div>
</div>

<div id="maincontainer">
	<div id="tabmenu">
		
	</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" action="">
	<div class="cbi-map">
		<h2><a id="content" name="content">Authorization Required</a></h2>
		<div class="cbi-map-descr">
			Please enter your username and password.</div>
		<fieldset class="cbi-section"><fieldset class="cbi-section-node">
			<div class="cbi-value">
				<label class="cbi-value-title">Username</label>
				<div class="cbi-value-field">
					<input class="cbi-input-user" type="text" name="luci_username" value="root" />
				</div>
			</div>
			<div class="cbi-value cbi-value-last">
				<label class="cbi-value-title">Password</label>
				<div class="cbi-value-field">
					<input class="cbi-input-password" type="password" name="luci_password" />
				</div>
			</div>
		</fieldset></fieldset>
	</div>

	<div>
		<input type="submit" value="Login" class="cbi-button cbi-button-apply" />
		<input type="reset" value="Reset" class="cbi-button cbi-button-reset" />
	</div>
</form>
<script type="text/javascript">//<![CDATA[
	var input = document.getElementsByName('luci_password')[0];
	if (input)
		input.focus();
//]]></script>



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

<p class="luci">
	Powered by LuCI (git-15.126.50380-7a54785)
</p>
</body>
</html>


comment:10 Changed 3 years ago by angelos

I should also mention that I am using both IE 11 and the latest Firefox (38.0.1), it's not a browser issue, that's for sure.

comment:11 Changed 3 years ago by jow

Do you get server errors when you access http://192.168.1.1/luci-static/openwrt.org/cascade.css ?

comment:12 Changed 3 years ago by angelos

Forbidden
You don't have permission to access /luci-static/openwrt.org/cascade.css on this server.

comment:13 Changed 3 years ago by jow

Please attach the output of "ls -lh /www/luci-static/openwrt.org/"

comment:14 Changed 3 years ago by angelos

root@OpenWrt:/# ls -lh /www/luci-static/openwrt.org/
-rw-------    1 root     root       16.0K May  9 11:17 cascade.css
-rw-------    1 root     root        1.2K May  9 11:17 ie6.css
-rw-------    1 root     root         823 May  9 11:17 ie7.css
-rw-------    1 root     root         197 May  9 11:17 ie8.css
-rw-------    1 root     root         152 May  9 11:17 tabbg.png
root@OpenWrt:/#

comment:15 Changed 3 years ago by seebaastian@…

Nice one!!! I've changed the privilegies to all files in the /www/luci-static/openwrt.org
directory and everything is working now :) I have no idea about the privilegies that should be applied to the files right now are like this:

root@OpenWrt_Servidor:/www/luci-static/openwrt.org# ls -ltr
-rwxrwxrwx    1 root     root           152 May  9 06:17 tabbg.png
-rwxrwxrwx    1 root     root           197 May  9 06:17 ie8.css
-rwxrwxrwx    1 root     root           823 May  9 06:17 ie7.css
-rwxrwxrwx    1 root     root          1261 May  9 06:17 ie6.css
-rwxrwxrwx    1 root     root         16344 May  9 06:17 cascade.css

Thanks for your time and support!

comment:16 Changed 3 years ago by angelos

Is chmod 777 really a solution?
I think we should wait for jow to see what he's got to say.

Edit: It works with 644 too.

Last edited 3 years ago by angelos (previous) (diff)

comment:17 Changed 3 years ago by jow

No need for 777, uhttpd just requires files to be world readable, so chmod -R o+r /www

comment:18 Changed 3 years ago by angelos

So it was that simple, huh?
Nice!

Thank you jow... :)

comment:19 Changed 3 years ago by jow

We tracked the reason down to bad umask settings on the build servers, the issue will befixed with rc2.

comment:20 Changed 3 years ago by seebaastian@…

Thanks a lot for your help!

comment:21 Changed 3 years ago by anonymous

rc2 is out now but with entire luci missing :)

comment:22 Changed 3 years ago by seebaastian@…

did you enable luci repository for opkg??? check the file located at /etc/opkg.conf and delete the # mark to enable it. then run opkg update and opkg install luci to get luci in your router. that should help.

comment:23 Changed 2 years ago by winrootkit@…

at least in the current snapshots it is still broken...
I installed luci on an Archer C7 v2 and permissions where bad after clean install.

comment:24 Changed 22 months ago by joachim@…

Same here. Clean install on Archer C7 v2 from current snapshot.

Had to do the following;

chmod -R o+r /www
chmod o+x /www/cgi-bin/luci

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.