Bug in Admin CP

Found a bug? Tell us!!
Post Reply
redlabour
Regular
Posts: 11
Joined: Fri Nov 11, 2005 7:48 am

Bug in Admin CP

Post by redlabour »

After installing and choosing German Language the Language at AdminCP is still at "English" so i changed it again and saved.

Now i have only :

Startseite (Homepage)

Zurück zum Blog (Back to Blog)

and

Abmelden (Logout)

in the AdminCP - all other Points are missing in IE and FF.

Deleting Cookies and clearing Cache brings no Effects.

How can i fix this ?? :shock:

This is the generated Sourcecode :

<html>
<head>
<title>Serendipity Verwaltungsoberfläche</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="http://www.politikstube.de/blog/index.p ... _admin.css" />
<script type="text/javascript">
function spawn() {
if (self.Spawnextended) {
Spawnextended();
}

if (self.Spawnbody) {
Spawnbody();
}

if (self.Spawnnugget) {
Spawnnugget();
}
}

function SetCookie(name, value) {
var today = new Date();
var expire = new Date();
expire.setTime(today.getTime() + (60*60*24*30));
document.cookie = 'serendipity[' + name + ']='+escape(value) + ';expires=' + expire.toGMTString();
}

function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
}
}
}

</script>
</head>
<body id="serendipity_admin_page" onload="spawn()">

<table cellspacing="0" cellpadding="0" border="0" id="serendipityAdminFrame">
<tr>
<td colspan="2" id="serendipityAdminBanner">
<h1>Serendipity Verwaltungsoberfläche</h1>
<h2>redlabour�s Blog</h2>
</td>
</tr>
<tr>

<td colspan="2" id="serendipityAdminInfopane">
Angemeldet als redlabour (Administrator) </td>
</tr>
<tr valign="top">
<td id="serendipitySideBar">
<ul class="serendipitySideBarMenu">
<li><a href="serendipity_admin.php">Startseite</a></li>
</ul>

<br />
<br />
<ul class="serendipitySideBarMenu">
<li><a href="http://www.politikstube.de/blog/">Zurück zum Blog</a></li>
<li><a href="serendipity_admin.php?serendipity[adminModule]=logout">Abmelden</a></li>
</ul>

</td>

<td class="serendipityAdminContent">

Willkommen zurück, redlabour.


</td>
</tr>
</table>
<br />
<div id="serendipityAdminFooter">Betrieben mit Serendipity 0.9 und PHP 4.3.10</div>
</body>
</html>
A little bit small. ;)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Bug in Admin CP

Post by garvinhicking »

This can happen, if you cut yourself off from usergroups, since now your user has no privileges to do anything.

It seems as if in personal configuration you deselected the group you were/are a member off!

Now you need to use phpMyAdmin or sth. similar to put your userid into the serendipity_authorgroups table again for all group ids (1, 2, 3).

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
redlabour
Regular
Posts: 11
Joined: Fri Nov 11, 2005 7:48 am

Post by redlabour »

That´s wrong - again :

1. First Login.

2. Choosen "german" by Pulldown Menu.

3. Save

4. Effect !!

New Installation = same effect !

If you say there is a possibility to lock the Admin off his Adminrights then this is a bug by itself and a Securityrisk.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

We'll continune this thread here http://www.s9y.org/forums/viewtopic.php?p=17329#17329 in german.

If we find a solution/cause for this, I'll post it here.

BTW, of course you can lock yourself out as an admin. There is always the need/possibility to put users outside of a group, and we allow that of course so that users can assign privileges as they indend. We could add a check though that alerts the user if no usergroups are selected, so that they need to confirm it.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
redlabour
Regular
Posts: 11
Joined: Fri Nov 11, 2005 7:48 am

Post by redlabour »

Maybe you make it like vBulletin where one UserID is set manually in config.php which is not able to be edited without changing the config.php.
Post Reply