Seite 1 von 2

PCP einbau Fehler

Verfasst: 26.11.2005 11:58
von pillhuhn
Hi ich habe ein Problem beim Einbau des Profil Control Panel... wenn ich diesen SQL befehl durchführe:

Code: Alles auswählen

ALTER TABLE phpbb_users ADD user_realname VARCHAR(25) NOT NULL;
ALTER TABLE phpbb_users ADD user_gender TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_birthday VARCHAR(8) DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_last_birthday INT(11) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_home_phone VARCHAR(20);
ALTER TABLE phpbb_users ADD user_home_fax VARCHAR(20);
ALTER TABLE phpbb_users ADD user_work_phone VARCHAR(20);
ALTER TABLE phpbb_users ADD user_work_fax VARCHAR(20);
ALTER TABLE phpbb_users ADD user_cellular VARCHAR(20);
ALTER TABLE phpbb_users ADD user_pager VARCHAR(20);
ALTER TABLE phpbb_users ADD user_summer_time TINYINT(1) UNSIGNED DEFAULT '0' NOT NULL;
ALTER TABLE phpbb_users ADD user_list_option VARCHAR(255);
ALTER TABLE phpbb_users ADD user_allow_email TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_allow_website TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_allow_messanger TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_allow_real TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_allow_sig TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewpm TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewwebsite TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewmessanger TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewreal TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewavatar TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewsig TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_viewimg TINYINT(1) DEFAULT '1' NOT NULL;
ALTER TABLE phpbb_users ADD user_buddy_friend_display TINYINT(1) DEFAULT '1';
ALTER TABLE phpbb_users ADD user_buddy_ignore_display TINYINT(1) DEFAULT '1';
ALTER TABLE phpbb_users ADD user_buddy_friend_of_display TINYINT(1) DEFAULT '1';
ALTER TABLE phpbb_users ADD user_buddy_ignored_by_display TINYINT(1) DEFAULT '1';
ALTER TABLE phpbb_users ADD user_watched_topics_per_page SMALLINT(3) DEFAULT '15';
ALTER TABLE phpbb_users ADD user_privmsgs_per_page SMALLINT(3) DEFAULT '5';
kommt diese Meldung:

Code: Alles auswählen

Fehler

SQL-Befehl:

ALTER TABLE phpbb_users ADD user_realname VARCHAR( 25 ) NOT NULL

MySQL meldet: Dokumentation
#1060 - Duplicate column name 'user_realname' 
Die anderen Sql befehle funktionierten alle!

Verfasst: 26.11.2005 12:22
von Markus67
Hi ...

hast du schonmal ein zusätzliches Feld 'user_realname' eingebaut?
Die Meldung besagt ja nur dass das Feld schon vorhanden ist.

Markus

Verfasst: 26.11.2005 12:39
von pillhuhn
Hi.. versteh ich das richtig wenn das Feld schon vorhanden ist... dann muss ich es ja nicht nochmal machen!? :-? :-?

Verfasst: 26.11.2005 12:45
von Markus67
Hi ...

Ich sag jetzt mal jein :wink:

Da das Feld ja in der DB genauso heisst würde ich es dort auf jeden Fall mal nicht verändern sonst gehen da die Daten verloren die bereits drinstehen.

An deiner Stelle würde ich aber aus den ganzen php und tpl-Dateien das Feld wieder ausbauen, da es sonst unter Umständen zu Komplikationen kommen kann wegen der Zuordnungen im PCP.

Markus

Verfasst: 26.11.2005 14:15
von pillhuhn
hi also das problem über mir habe ich jetzt gelöst... Danke!

Nur jetzt ist ein neues Problem aufgetaucht ich habe alle Datein editiert und hochgeladen nur nu kommt diese Fehlermeldung:

Code: Alles auswählen

Warning: main(): Unable to access ././includes/functions_mods_settings.php in /home/www/web671/html/includes/mods_settings/mod_profile_control_panel.php on line 28

Warning: main(././includes/functions_mods_settings.php): failed to open stream: No such file or directory in /home/www/web671/html/includes/mods_settings/mod_profile_control_panel.php on line 28

Warning: main(): Failed opening '././includes/functions_mods_settings.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/web671/html/includes/mods_settings/mod_profile_control_panel.php on line 28

Fatal error: Call to undefined function: init_board_config() in /home/www/web671/html/includes/mods_settings/mod_profile_control_panel.php on line 105

Verfasst: 26.11.2005 15:32
von Markus67
Hi ...

ist die Datei vorhanden?
Warning: main(././includes/functions_mods_settings.php): failed to open stream: No such file or directory
Markus

Verfasst: 26.11.2005 20:20
von pillhuhn
Hi...

ja jetzt ist sie vorhanden! Danke!

Aber ich habe noch mehr fehler... jetzt steht dies da:

Code: Alles auswählen

Warning: init_userprefs(): Unable to access ././includes/lang_extend_mac.php in /home/www/web671/html/includes/functions.php on line 355

Warning: init_userprefs(././includes/lang_extend_mac.php): failed to open stream: No such file or directory in /home/www/web671/html/includes/functions.php on line 355

Warning: init_userprefs(): Failed opening '././includes/lang_extend_mac.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/web671/html/includes/functions.php on line 355

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web671/html/includes/functions.php:355) in /home/www/web671/html/includes/page_header.php on line 643

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web671/html/includes/functions.php:355) in /home/www/web671/html/includes/page_header.php on line 645

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web671/html/includes/functions.php:355) in /home/www/web671/html/includes/page_header.php on line 646
/*-- mod : profile cp --*/ .foundercolor, a.foundercolor, a.foundercolor:link, a.foundercolor:active, a.foundercolor:visited { color: #FE00FE; font-weight: bold; } a.foundercolor:hover { color: #FF0000; text-decoration: underline; } .admincolor, a.admincolor, a.admincolor:link, a.admincolor:active, a.admincolor:visited { color: #6ccfff; font-weight: bold; } a.admincolor:hover { color: #; text-decoration: underline; } .modcolor, a.modcolor, a.modcolor:link, a.modcolor:active, a.modcolor:visited { color: #e0e100; font-weight: bold; } a.modcolor:hover { color: #; text-decoration: underline; } .usercolor, a.usercolor, a.usercolor:link, a.usercolor:active, a.usercolor:visited { color : #; font-weight: bold; } a.usercolor:hover { color: #; text-decoration: underline; } /*-- fin mod : profile cp --*/

Verfasst: 26.11.2005 20:23
von Markus67
Hi ...
Warning: init_userprefs(././includes/lang_extend_mac.php): failed to open stream: No such file or directory in /home/www/web671/html/includes/functions.php on line 355
Auch die fehlt wohl :wink:

Markus

Verfasst: 26.11.2005 20:34
von pillhuhn
so das hab ich dann jetzt auch! :)

Jetzt kommt dieser Fehler:

Code: Alles auswählen

/*-- mod : profile cp --*/ .foundercolor, a.foundercolor, a.foundercolor:link, a.foundercolor:active, a.foundercolor:visited { color: #FE00FE; font-weight: bold; } a.foundercolor:hover { color: #FF0000; text-decoration: underline; } .admincolor, a.admincolor, a.admincolor:link, a.admincolor:active, a.admincolor:visited { color: #6ccfff; font-weight: bold; } a.admincolor:hover { color: #; text-decoration: underline; } .modcolor, a.modcolor, a.modcolor:link, a.modcolor:active, a.modcolor:visited { color: #e0e100; font-weight: bold; } a.modcolor:hover { color: #; text-decoration: underline; } .usercolor, a.usercolor, a.usercolor:link, a.usercolor:active, a.usercolor:visited { color : #; font-weight: bold; } a.usercolor:hover { color: #; text-decoration: underline; } /*-- fin mod : profile cp --*/

Verfasst: 26.11.2005 20:44
von Markus67
Hi ...

das hast du in der overall_header.tpl eingefügt ... lösche das dort wieder raus und füge das ganze in die fiblue3d.css ein. :wink:

Markus