Seite 1 von 1

Fehler - nach welchem Mod unbekannt

Verfasst: 26.06.2006 16:03
von bazo
Hallo

habe Probleme, wenn ich mich bei meinem Forum registrieren will.
Nach absenden des Fomulars escheint folgender Fehler :

Code: Alles auswählen

Could not insert data into users table

DEBUG MODE

SQL Error : 1136 Column count doesn't match value count at row 1

INSERT INTO phpbb_users (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_birthday, user_next_birthday_greeting, user_active, user_actkey) VALUES (8, 'asdasf', 1151330062, '040b7cf4a55014e185813e0644502ea9', 'adgda@sadf.de', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 0, 'd.m.Y, H:i', 'german', 2, 0, 1, 1, '')

Line : 705
File : usercp_register.php
Habe das Forum reichlich gemoddet, weiß aber nicht mehr nach welchem Mod dieser Fehler zustande kam.
Der Fehler betrifft aber die MySQL Datenbank, hab ich recht?
Wenn jemand Rat hat, würd ich mich sehr freuen.

bazo

Verfasst: 26.06.2006 16:08
von Markus67
Hi ...

35 Felder stehen zur Verfügung und nur in 34 wird was eingetragen :wink:

Ich würde mal auf den Birthday MOD tippen .... die Alternative wäre du verlinkst mal bitte die usercp_register.php als txt-Datei.

Markus

usercp_register

Verfasst: 27.06.2006 15:33
von bazo
Hallo,
hier mal die usercp_register klick

Birthdaymod ist möglich...hab ich drin, aber der klappt afaik noch.
Hab in einem Mod irgendwo was durch [ersetzen durch] geändert...hoffeich hab nicht mehr geschrottet :/ :oops:
aber kannst jaerst mal die usercp_register angucken,vll. findest du was:)

danke bazo

Verfasst: 27.06.2006 15:40
von Markus67
Hi ...

suche:

Code: Alles auswählen

				VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
ersetze mit:

Code: Alles auswählen

				VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popup_pm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, '$birthday', '$next_birthday_greeting', ";
Markus

Verfasst: 27.06.2006 15:52
von bazo
klapptwieder :)
Vielen vielen Dank
zum Glück ist nicht mehr kaputt :)

DANKE
bazo

vll. noch geradeeine Frage hinterher
Hast du eine Idee wie ich den Chat in meinem Portal verlinkenkann?
Das ist ja leider kein Link zu ner .php Datei.
Vll. hast du ja ne Idee ;)

Verfasst: 27.06.2006 15:54
von FCM
Den Fehler hatte ich auch. Dank Markus67 gelöst :D