Seite 1 von 2

Rate Topic Table Error

Verfasst: 21.10.2002 15:54
von maddy
Ich versuche gerade den Rate Topic Hack (Mod) einzubauen. Sobald ich aber die rate_topics_table ausführe erhalte ich die Meldung, das ich entweder keinen Zugriff habe oder die Datei bereits vorhanden ist.

Code: Alles auswählen

Unable to create the table, either it already exists or you do not have security access to do it.
You can try to run the sql command manually with phpmyadmin or another utitily.
SQL COMMAND: CREATE TABLE phpbb_rate_results ( `user_id` MEDIUMINT UNSIGNED NOT NULL, `topic_id` MEDIUMINT UNSIGNED NOT NULL, `rating` MEDIUMINT UNSIGNED NOT NULL, PRIMARY KEY (`user_id`, `topic_id`) )
Habe aber bereits mit phpadmin das vorhandensein der Datei geprüft und ausgeschlossen.

Die Zeilen manuell über den Admin einzugeben funktioniert auch nicht, ist ausserdem aufgrund der vielen Änderungen recht aufwendig.

Dank im Vorfeld bereits für die Hilfe, ...

Verfasst: 21.10.2002 16:15
von codemonkey
Bist du sicher dass du die chmod rechtenicht verändert hast? Hsat du auch die lang_rate.php hochgeladen (weis nich ob das damit was zu tun hat steht aber in der install.txt so)

wenn das alle nichts hilft, mach das doch mit phpMyAdmin. Ist doch kein Problem.

Re: Rate Topic Table Error

Verfasst: 21.10.2002 16:24
von Karle
maddy hat geschrieben:Ich versuche gerade den Rate Topic Hack (Mod) einzubauen. Sobald ich aber die rate_topics_table ausführe erhalte ich die Meldung, das ich entweder keinen Zugriff habe oder die Datei bereits vorhanden ist.

Code: Alles auswählen

Unable to create the table, either it already exists or you do not have security access to do it.
You can try to run the sql command manually with phpmyadmin or another utitily.
SQL COMMAND: CREATE TABLE phpbb_rate_results ( `user_id` MEDIUMINT UNSIGNED NOT NULL, `topic_id` MEDIUMINT UNSIGNED NOT NULL, `rating` MEDIUMINT UNSIGNED NOT NULL, PRIMARY KEY (`user_id`, `topic_id`) )
Also da steht, das die Tabelle phpbb_rate_results schon vorhanden ist. Ist dem nun eigentlich so?
maddy hat geschrieben: Habe aber bereits mit phpadmin das vorhandensein der Datei geprüft und ausgeschlossen.
Welche datei? Mit PhpMyAdmin dannst du doch nicht nach vorhandenen Dateien suchen?
maddy hat geschrieben: Die Zeilen manuell über den Admin einzugeben funktioniert auch nicht, ist ausserdem aufgrund der vielen Änderungen recht aufwendig.
Eingeben musst du in dem Fenster nur das:

Code: Alles auswählen

CREATE TABLE phpbb_rate_results ( `user_id` MEDIUMINT UNSIGNED NOT NULL, `topic_id` MEDIUMINT UNSIGNED NOT NULL, `rating` MEDIUMINT UNSIGNED NOT NULL, PRIMARY KEY (`user_id`, `topic_id`) )
Mehr nicht. Das hat weder was mit den bereits installierten Mods noch was mit viel Aufwand zu tun.

Überprüfe doch aber zuerst einmal, ob die Tabelle phpbb_rate_results nicht doch schon in deiner Datenbank vorhanden ist.

Re: Rate Topic Table Error

Verfasst: 21.10.2002 16:29
von codemonkey
Karle kann das sien, dass du hier irgendwie voll was falsch verstehst?
Karle hat geschrieben:

Code: Alles auswählen

Unable to create the table, either it already exists or you do not have security access to do it.
You can try to run the sql command manually with phpmyadmin or another utitily.
SQL COMMAND: CREATE TABLE phpbb_rate_results ( `user_id` MEDIUMINT UNSIGNED NOT NULL, `topic_id` MEDIUMINT UNSIGNED NOT NULL, `rating` MEDIUMINT UNSIGNED NOT NULL, PRIMARY KEY (`user_id`, `topic_id`) )
Also da steht, das die Tabelle phpbb_rate_results schon vorhanden ist. Ist dem nun eigentlich so?
dann erzähl mir mal wo das steht!

Karle hat geschrieben:
maddy hat geschrieben: Habe aber bereits mit phpadmin das vorhandensein der Datei geprüft und ausgeschlossen.
Welche datei? Mit PhpMyAdmin dannst du doch nicht nach vorhandenen Dateien suchen?
Er meint doch, dass er schon nach der Tabelle gesucht hat.
Karle hat geschrieben: Überprüfe doch aber zuerst einmal, ob die Tabelle phpbb_rate_results nicht doch schon in deiner Datenbank vorhanden ist.
Das habe ich ihm doch auch schon gesagt



Achso und nochmal zu dir 'maddy':
maddy hat geschrieben: Die Zeilen manuell über den Admin einzugeben funktioniert auch nicht, ist ausserdem aufgrund der vielen Änderungen recht aufwendig.


Was hat du denn so vieles verändert? Du musst das doch mit phpMyAdmin einfach in dieses Feld eingeben. Da kannst du gar nichts verändert haben, sodass es schwierig wird!

Rate Topic Table Error

Verfasst: 21.10.2002 17:07
von maddy
Ich hab die CHMOD noch mal geprüft, ist alles ok, die einzelnen Files hochgelade, die Änderungen an den vorhandenen Files hab ich noch nicht gemacht, da ich lt. inst. erst die Tables erstellen soll.

Das Script an sich ist wesentlich umfangreicher, es werden div. Modifikationen an Tables vorgenommen, das Create war nur ein Ausschnitt des ganzen.

Mit Dateien hab ich natürlich die tables gemeint, und die sind devinitiv nicht vorhanden.

Trotzdem, bis hier hin schon mal Dank, für die Hinweise...

Rate Topic Table Error

Verfasst: 22.10.2002 12:41
von maddy
Ich hab hier mal die Dadei die die Tables installieren sollte, vielleich erkennt ja jemand von Euch den Fehler:

Code: Alles auswählen

<?php
		/***************************************************************************
							rate_topics_table.php
		                             -------------------
		    begin                : Sat Feb 23, 2002
		    copyright            : (C) 2002 Nivisec.com
		    email                : nivisec@hotmail.com
		
		    		$Id: rate_topics_table.php,v 1.2.2 2002/02/28 18:15:10 nivisec Exp $
		
		 ***************************************************************************/
		
		/***************************************************************************
		 *                                         				                                
		 *   This program is free software; you can redistribute it and/or modify  	
		 *   it under the terms of the GNU General Public License as published by  
		 *   the Free Software Foundation; either version 2 of the License, or	    	
		 *   (at your option) any later version.
		 *
		 ***************************************************************************/
		 
define('IN_PHPBB', true);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

print '<b>Rate Results Table</b> <br>';
print '<a href="rate_topics_table.php?m=2&t=1">Create the table</a><br>';
print '<a href="rate_topics_table.php?m=3&t=1">Update the table - must do this after creation!</a><br>';
print '<a href="rate_topics_table.php?m=4&t=1">Update the table #2 - must do this after creation!</a><br>';
print '<a href="rate_topics_table.php?m=1&t=1">Delete the table</a>';
print '<br /><br /><b>Rate Config Table</b> <br>';
print '<a href="rate_topics_table.php?m=2&t=2">Create the table</a><br>';
print '<a href="rate_topics_table.php?m=3&t=2">Create the table defaults - must do this after creation!</a><br>';
print '<a href="rate_topics_table.php?m=4&t=2">Create the table defaults part 2- must do this after creation!</a><br>';
print '<a href="rate_topics_table.php?m=5&t=2">Create the table defaults part 3- must do this after creation!</a><br>';
print '<a href="rate_topics_table.php?m=1&t=2">Delete the table</a>';
print '<br /><br /><b>Rate Forum Field</b> <br>';
print '<a href="rate_topics_table.php?m=2&t=3">Create the field</a><br>';
print '<a href="rate_topics_table.php?m=1&t=3">Delete the field</a>';

if ($t == 1)
{
	if ($m == 1)
	{ //delete mode
		$sql = "DROP
		TABLE  " . $table_prefix . "rate_results";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to delete the table, either it does not exist or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Deleted table.';
		}
	}
	if ($m == 2)
	{ //create mode
		$sql = "CREATE TABLE " . $table_prefix . "rate_results (
		`user_id` MEDIUMINT UNSIGNED NOT NULL,
		`topic_id` MEDIUMINT UNSIGNED NOT NULL,
		`rating` MEDIUMINT UNSIGNED NOT NULL,
		PRIMARY KEY (`user_id`, `topic_id`)
		)";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the table, either it already exists or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created table.';
		}
	}
	if ($m == 3)
	{ //update mode
		$sql = "ALTER
		TABLE " . $table_prefix . "rate_results
		ADD `rater_ip` CHAR(8) NOT NULL";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to update the table, either entry already exists or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Updated table.';
		}
	}
	if ($m == 4)
	{ //update #2 mode
		$sql = "ALTER
		TABLE " . $table_prefix . "rate_results
		ADD `rate_time` INT UNSIGNED NOT NULL default " . time();
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to update the table, either entry already exists or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Updated table.';
		}
	}

}

if ($t == 2)
{
	if ($m == 1)
	{ //delete mode
		$sql = "DROP
		TABLE  " . $table_prefix . "rate_config";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to delete the table, either it does not exist or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Deleted table.';
		}
	}

	if ($m == 2)
	{ //create mode
		$sql = "CREATE
		TABLE " . $table_prefix . "rate_config (
		config_name varchar(255) NOT NULL default '',
		config_value varchar(255) NOT NULL default '',
		PRIMARY KEY  (config_name)
		) TYPE=MyISAM";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the table, either it already exists or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created table.';
		}
	}

	if ($m == 3)
	{ //Default mode
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('allow_disable', '0')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('allow_ext_rating', '0')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('max_rating', '5')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('allow_rerate', '0')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
	}
	if ($m == 4)
	{ //Default part 2 mode
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('anon_rate_id', '16777215')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('check_anon_ip', '0')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('main_page_number', '10')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('big_page_number', '30')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
	}

	if ($m == 5)
	{ //Default part 3 mode
		$sql = "INSERT
		INTO " . $table_prefix . "rate_config (`config_name`, `config_value`)
		VALUES ('min_rates_number', '1')";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the defaults, either they already exist or you do not have security access to do it.';
			print '<br />You can try to run the sql commands manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created default.';
		}
	}
}

if ($t == 3)
{
	if ($m == 1)
	{ //delete mode
		$sql = "ALTER
		TABLE " . FORUMS_TABLE . "
		DROP `auth_rate`";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to delete the table, either it does not exist or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Deleted field.';
		}
	}

	if ($m == 2)
	{ //create mode
		$sql = "ALTER
		TABLE " . FORUMS_TABLE . "
		ADD `auth_rate` TINYINT(2) NOT NULL default -1";
		if (!$db->sql_query($sql))
		{
			print '<hr>Unable to create the table, either it already exists or you do not have security access to do it.';
			print '<br />You can try to run the sql command manually with phpmyadmin or another utitily.';
			print '<br />SQL COMMAND: ' . $sql;
		}
		else
		{
			print '<hr>Created field.';
		}
	}

}

?>

THANXXXX

Verfasst: 22.10.2002 12:57
von Acid
..na der Code is scho ok.
Hast Du ma per phpmyadmin nachgeschaut, ob die Tabellen nu scho vorhanden sind?

Ansonsten lösche nochma die 3 Tabellen mit dem "Delete" Link und erstelle sie nochmals...

Rate Topic Table Error

Verfasst: 22.10.2002 13:18
von maddy
Die Tabellen sind nicht vorhanden, ich kann mir einfach keinen Reim darauf mach. Ich starte die Datei ganz normal im Rootverzeichniss vom phpBB2 mit dem IE6. Also langsam weiss ich es auch nicht mehr....


Den Del Link hab ich auch ausprobiert, dann kommt die fogende Meldung:

Code: Alles auswählen

Unable to delete the table, either it does not exist or you do not have security access to do it.
You can try to run the sql command manually with phpmyadmin or another utitily.
SQL COMMAND: DROP TABLE phpbb_rate_results
Danke an Acid das Du mal Drüber geschaut hast, ich hab gestern noch den Card hack und dem Attatchment Hack draugespielt, die haben doch auch TABLE_INST Schripte die normal ausgeführt wurden, daran sieht man doch das ich die Rechte habe.....


TANXX

Verfasst: 22.10.2002 13:52
von Acid
..versuch ma die Queries direkt mit phpmyadmin auszuführen (eventuell prefix_ angleichen)...

Code: Alles auswählen

CREATE TABLE phpbb_rate_results ( 
user_id MEDIUMINT UNSIGNED NOT NULL, 
topic_id MEDIUMINT UNSIGNED NOT NULL, 
rating MEDIUMINT UNSIGNED NOT NULL, 
rater_ip CHAR(8) NOT NULL,
rate_time INT UNSIGNED NOT NULL,
PRIMARY KEY (user_id, topic_id)); 

CREATE TABLE phpbb_rate_config ( 
config_name varchar(255) NOT NULL default '', 
config_value varchar(255) NOT NULL default '', 
PRIMARY KEY  (config_name)) TYPE=MyISAM; 

INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('allow_disable', '0'); 
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('allow_ext_rating', '0');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('max_rating', '5');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('allow_rerate', '0');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('anon_rate_id', '16777215');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('check_anon_ip', '0');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('main_page_number', '10');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('big_page_number', '30');
INSERT INTO phpbb_rate_config (config_name, config_value) VALUES ('min_rates_number', '1');

ALTER TABLE phpbb_forums ADD auth_rate TINYINT(2) NOT NULL default "1"; 

Rate Topic Table Error

Verfasst: 22.10.2002 14:09
von maddy
Ich hab die Tables mit phpadmin jetzt mal mit einigem hängen und würgen eingespielt, werde dann gleich mal den Rest von der Inst machen und dann Meldung machen .....

Grosses THANXXXXXXXX an Acid