Seite 1 von 1

Admin degradieren

Verfasst: 14.01.2005 22:59
von MySelf
...Geht leider nicht.

WEnn ich einen User zum Admin gemacht habe, geht es nicht mehr zurük. :( Nur per User löschen!
Und beim ersdten klick auf den Absende Butoon kommt

Code: Alles auswählen

Couldn't update auth access

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'group_id = 7' at line 3

UPDATE phpbb_auth_access SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 , auth_globalannounce = 0WHERE group_id = 7

Line : 215
File : /usr/export/www/vhosts/funnetwork/hosting/ernieonline/forum/admin/admin_ug_auth.php
Wenn ich dann aber nochmal klicke, geht es. (Zurück Taste im Browser, nochmal absenden)

Allerdings von Admin auf User kommt immer

Code: Alles auswählen

Could not update auth access

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'group_id = 7' at line 3

UPDATE phpbb_auth_access SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 , auth_globalannounce = 0WHERE group_id = 7

Line : 237
File : /usr/export/www/vhosts/funnetwork/hosting/ernieonline/forum/admin/admin_ug_auth.php
Da kann ich klicken soviel ich will. :(
Wenn ich dann (da es Debugmode ist)

Code: Alles auswählen

UPDATE phpbb_auth_access SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0 , auth_globalannounce = 0WHERE group_id = 7
Durchs PhpMyAdmin laufen lasse, kommt dieser Fehler raus:

Code: Alles auswählen

MySQL meldet:  

#1064 - You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 'group_id = 7' at line 1 

Habe ein 2.0.6 (Eigentlich schon hochgepatcht) mit diesen Eingebauten Mods:
  • Profil Control Panel
  • Secure the main Admin
  • Intro+Portal
  • Global Announcement
Und alles per emi

Kann mir irgendwer helfen?

Danke für jede Antwort! :)
Doppelten Dank für eine hilfreiche Antwort! :D

Verfasst: 14.01.2005 23:03
von Andy120
hi...

Zu den MODs hast du alle DB Updates ausgeführt?

Zum Fehler:
Lass mal den DB Maintance drüberlaufen, falls das obere schon gemacht wurde.
DB Maintenance Mod

Gruss, Andy

Verfasst: 14.01.2005 23:07
von MySelf
Alles korrekt eingebaut (denk ich jedenfalls :wink: )

Fehler habe ich auf jedenfall dazu noch keine bekommen, und soweit ich weis auch alle SQLs ausgeführt.
Probiere mal Maintance aus...

Verfasst: 14.01.2005 23:09
von kratzer54847
verlink mal die admin_ug_auth.php

KB:81

Verfasst: 14.01.2005 23:10
von Phistev
Anscheinend fehlt im SQL-Statement vor dem WHERE das Leerzeichen
...auth_globalannounce = 0WHERE group_id...
Dieses 0WHERE dürfte für MySQL unbekannt sein, daher der Fehler. Überprüf mal das Statement in der Nähe des PHP-Kommentares

Code: Alles auswählen

// Make admin a user (if already admin) ... ignore if you're trying
// to change yourself from an admin to user!
in der admin_ug_auth.php

Verfasst: 15.01.2005 10:59
von MySelf

Verfasst: 15.01.2005 11:08
von Andy120
hi..

Suche

Code: Alles auswählen

$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
				SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0
				, auth_globalannounce = 0WHERE group_id = $group_id";
Ersetze

Code: Alles auswählen

			$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
				SET auth_view = 0, auth_read = 0, auth_post = 0, auth_reply = 0, auth_edit = 0, auth_delete = 0, auth_sticky = 0, auth_announce = 0, auth_globalannounce = 0
				WHERE group_id = $group_id";
Gruss, Andy