Seite 1 von 1

Fehler nach update Arcade 0.6.1

Verfasst: 24.08.2008 16:27
von Shugo
Hallo wenn ich die Berechtigung eines Benutzer teste und meine wieder an nehmen will
dann kommt die fehlermeldung

Code: Alles auswählen

Fatal error: Cannot redeclare class auth_arcade in /usr/export/www/vhosts/funnetwork/hosting/***/includes/auth_arcade.php on line 24
EDIT:
Muss was mit /includes/auth.php zu tun haben hab gerade die alte datei vor dem update aufgespielt der /includes/auth.php datei und alles ging wieder

Die änderung die man machen musste ist folgende:

Code: Alles auswählen

Find

Tip:This may be a partial find and not the whole line.
Code:Select All

		$sql = 'UPDATE ' . USERS_TABLE . "
			SET user_permissions = '',
				user_perm_from = 0
			$where_sql";
		$db->sql_query($sql);	
		

Add after

Tip:Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All

		//Clear arcade permissions
		if (!class_exists('auth_arcade'))
		{
			global $phpbb_root_path, $table_prefix, $phpEx;
			include($phpbb_root_path . 'includes/arcade/arcade_constants.' . $phpEx);
			include($phpbb_root_path . 'includes/auth_arcade.' . $phpEx);

		}
		$auth_arcade = new auth_arcade();
		$auth_arcade->acl_clear_prefetch($user_id);

Verfasst: 24.08.2008 17:07
von Dr.Death
Try and error:

Versuche mal den Code:

Code: Alles auswählen

         include($phpbb_root_path . 'includes/arcade/arcade_constants.' . $phpEx);
         include($phpbb_root_path . 'includes/auth_arcade.' . $phpEx); 
gegen diesen auszutauschen:

Code: Alles auswählen

         include_once($phpbb_root_path . 'includes/arcade/arcade_constants.' . $phpEx);
         include_once($phpbb_root_path . 'includes/auth_arcade.' . $phpEx); 

Verfasst: 24.08.2008 17:24
von Shugo
danke funktioniert !