Seite 1 von 1

SQL Error

Verfasst: 01.12.2010 18:50
von outlet
Kann folgendes Problem jemand auflösen?

Bei der Installation des Mod shmk_user_feedback_1.0.6 tritt bei der Datenbankinstallation folgender Fehler auf.

Create Table Befehl:

Code: Alles auswählen

CREATE TABLE phpbb_shmk_feedback_tot (
	fb_user smallint(4) UNSIGNED DEFAULT '0' NOT NULL,
	fb_pos smallint(4) DEFAULT '0' NOT NULL,
	fb_neg smallint(4) DEFAULT '0' NOT NULL,
	fb_neu smallint(4) DEFAULT '0' NOT NULL,
	PRIMARY KEY (fb_user)
) COLLATE utf8_bin;


CREATE TABLE phpbb_shmk_feedback (
	fb_id mediumint(8) UNSIGNED NOT NULL auto_increment,
	fb_to mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
	fb_from mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
	fb_role tinyint(1) UNSIGNED DEFAULT '0' NOT NULL,
	fb_vote tinyint(1) UNSIGNED DEFAULT '2' NOT NULL,
	fb_link mediumint(8) UNSIGNED DEFAULT '0' NOT NULL,
	fb_comment text NOT NULL,
	fb_ip varchar(40) DEFAULT '' NOT NULL,
	fb_date int(11) UNSIGNED DEFAULT '0' NOT NULL,
	bbcode_bitfield varchar(255) DEFAULT '' NOT NULL,
	bbcode_uid varchar(8) DEFAULT '' NOT NULL,
	PRIMARY KEY (fb_id),
	KEY fb_to (fb_to)
) COLLATE utf8_bin;


CREATE TABLE phpbb_shmk_feedback_config (
	fb_config varchar(255) DEFAULT '' NOT NULL,
	fb_config_val varchar(255) DEFAULT '' NOT NULL,
	PRIMARY KEY (fb_config)
) COLLATE utf8_bin;


INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('comm_minchars','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('comm_maxchars','500');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('comm_bbcode','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('comm_smilies','1');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('comm_url','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('link_enable','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('link_force','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('link_force_in','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('link_forum','');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('m_haspower','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('role_enable','1');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('top_best','50');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('top_main','10');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('top_worst','50');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('u_canedit','1');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('u_morethenone','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('antiflood','0');
INSERT INTO phpbb_shmk_feedback_config(fb_config,fb_config_val) VALUES('antiflood_same','0');

INSERT INTO phpbb_config(config_name,config_value,is_dynamic) VALUES('fb_score','0','1');
INSERT INTO phpbb_config(config_name,config_value,is_dynamic) VALUES('fb_score_pos','1','1');
INSERT INTO phpbb_config(config_name,config_value,is_dynamic) VALUES('fb_score_neu','0','1');
INSERT INTO phpbb_config(config_name,config_value,is_dynamic) VALUES('fb_score_neg','-1','1');

INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_access',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_add',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_edit',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_delete',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_addmore',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_ignoreflood',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_bbcode',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('u_fb_smilies',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('m_fb_edit',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('m_fb_delete',1,0,0);
INSERT INTO phpbb_acl_options(auth_option,is_global,is_local,founder_only) VALUES('m_fb_viewip',1,0,0);
Fehlermeldung:

Code: Alles auswählen

SQL-Befehl:

INSERT INTO phpbb_config( config_name, config_value, is_dynamic )
VALUES (
'fb_score', '0', '1'
);

MySQL meldet: Dokumentation
#1146 - Table 'usr_web304_1.phpbb_config' doesn't exist 
Danach steht beim Modaufruf im ACP folgende Meldung:

SQL ERROR [ mysqli ]

Table 'usr_web304_1.SHMK_FEEDBACKCONFIG_TABLE' doesn't exist [1146] "Also ohne Underscore"

SQL

SELECT * FROM SHMK_FEEDBACKCONFIG_TABLE

BACKTRACE

FILE: includes/db/mysqli.php
LINE: 163
CALL: dbal->sql_error()

FILE: includes/acp/acp_feedback.php
LINE: 41
CALL: dbal_mysqli->sql_query()

FILE: includes/functions_module.php
LINE: 507
CALL: acp_feedback->main()

FILE: adm/index.php
LINE: 74
CALL: p_master->load_active()
_______________________________________________________

Tables wurden aber angelegt!

Re: SQL Error

Verfasst: 01.12.2010 19:19
von Metzle
Hallo,

zum ersten und zum zweiten Fehler: KB:sql_error

Re: SQL Error

Verfasst: 01.12.2010 21:47
von outlet
Danke, aber daraus werd ich leider nicht schlau, da ich nicht mehr in der Install-anleitung habe als den oben genannten Create Table Befehl. :(
Kann sich jemand erbarmen (weil ja bald Weihnachten ist :D ) und mir aus der Klemme helfen, da ich diesen Mod dringend brauchen würde. Ich stelle alles zur Verfügung, was gebraucht wird.

Re: SQL Error

Verfasst: 01.12.2010 22:05
von Mahony
Hallo
Die Lösung steht doch im verlinkten Artikel.
Lösung: Die Datei constants.php wie bspw. in der MOD-Anleitung beschrieben bearbeiten.

Grüße: Mahony

Re: SQL Error

Verfasst: 01.12.2010 23:41
von outlet
Wunderbar, bin jetzt schon um einiges weiter. Leider hab ich da noch irgendwo einen Bug drinnen.

Fehlermeldung:

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /language/en/common.php:1)

Re: SQL Error

Verfasst: 02.12.2010 00:04
von Metzle
Hallo,

Sprachdatei nicht im richtigen Format abgespeichert würde ich sagen.

Schau mal hier: KB:utf8bom oder auch KB:headers_already_sent

Re: SQL Error

Verfasst: 02.12.2010 09:43
von outlet
Danke für eure Tipps, jetzt sind die Fehler weg.