Seite 1 von 1

Fehlermeldung bei der Registrierung

Verfasst: 27.03.2003 00:56
von AzIbI
Ich bekomme eine Fehlermeldung wenn sich ein neuer User registrieren möchte. Und zwar folgende:
  • Could not insert data into users table

    DEBUG MODE

    SQL Error : 1064 You have an error in your SQL syntax near '0, '57a98c9827')' at line 2

    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 (4, 'Test_User2', 1048721812, '098f6bcd4621d373cade4e832627b4f6', 'azibi@azibi.de', '', '', '', '', '', '', '', '', 0, 0, '', '', '', 1, 1, 0, 1, 1, 0, 1, 1, 1, 'd. F Y H:i', 'german', 1, 0, 1, '-1376','2004' 0, '57a98c9827')

    Line : 599
    File : /home/azibi/public_html/phpbb2/includes/usercp_register.php
Also ich kann danit nicht viel anfangen. Vielleich könnt ihr mir ja weiterhelfen. Ich vermute mal das sie von dem Birthday Mod kommt.
Um das ganze noch abzurunden hänge ich einen Ausschnitt aus der usercp_register.php an.

Code: Alles auswählen

			$user_id = $row['total'] + 1;

			//
			// Get current date
			//
			$sql = "INSERT INTO " . USERS_TABLE . "	(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 ($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, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, '$birthday','$next_birthday_greeting' ";
			if ( $board_config['require_activation'] == USER_ACTIVATION_SELF || $board_config['require_activation'] == USER_ACTIVATION_ADMIN || $coppa )
			{
				$user_actkey = gen_rand_string(true);
				$key_len = 54 - (strlen($server_url));
				$key_len = ( $key_len > 6 ) ? $key_len : 6;
				$user_actkey = substr($user_actkey, 0, $key_len);
				$sql .= "0, '" . str_replace("\'", "''", $user_actkey) . "')";
			}
			else
			{
				$sql .= "1, '')";
			}

			if ( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) )
			{
				message_die(GENERAL_ERROR, 'Could not insert data into users table', '', __LINE__, __FILE__, $sql);			}

			$sql = "INSERT INTO " . GROUPS_TABLE . " (group_name, group_description, group_single_user, group_moderator)
				VALUES ('', 'Personal User', 1, 0)";
			if ( !($result = $db->sql_query($sql)) )
			{
				message_die(GENERAL_ERROR, 'Could not insert data into groups table', '', __LINE__, __FILE__, $sql);
			}

			$group_id = $db->sql_nextid();

			$sql = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
				VALUES ($user_id, $group_id, 0)";
			if( !($result = $db->sql_query($sql, END_TRANSACTION)) )
			{
				message_die(GENERAL_ERROR, 'Could not insert data into user_group table', '', __LINE__, __FILE__, $sql);
			}

			if ( $coppa )
			{
				$message = $lang['COPPA'];
				$email_template = 'coppa_welcome_inactive';
			}
			else if ( $board_config['require_activation'] == USER_ACTIVATION_SELF )
			{
				$message = $lang['Account_inactive'];
				$email_template = 'user_welcome_inactive';
			}
			else if ( $board_config['require_activation'] == USER_ACTIVATION_ADMIN )
			{
				$message = $lang['Account_inactive_admin'];
				$email_template = 'admin_welcome_inactive';
			}
			else
			{
				$message = $lang['Account_added'];
				$email_template = 'user_welcome';
			}

Verfasst: 27.03.2003 11:00
von Acid
Setze ma bei dem INSERT INTO Block hinter '$next_birthday_greeting' noch ein Komma.

Verfasst: 27.03.2003 12:14
von AzIbI

Code: Alles auswählen

DANKE
Genau das war es.


Aber wenn ich schonmal hier bin kannst du mir bestimmt auch mit meinem Attachment Mod weiterhelfen?

Also ich bekomme die Fehlermeldung wenn was runterladen will:

Code: Alles auswählen

Warning: readfile() [function.readfile]: SAFE MODE Restriction in effect. The script whose uid is 32096 is not allowed to access /tmp/t0000skCiRJ owned by uid 99 in /home/azibi/public_html/phpbb2/download.php on line 281

Warning: readfile(/tmp/t0000skCiRJ) [function.readfile]: failed to create stream: Success in /home/azibi/public_html/phpbb2/download.php on line 281
Hier nochmal ein Link zu der Datei

http://www.azibi.gu1.info/phpbb2/download.txt

Verfasst: 27.03.2003 19:29
von saerdnaer
irgendwie ist bei deinem provider der safe mode aktiviert... das heißt der hack läuft bei dir nicht... ansonsten ist das die aktuelleste version des hacks?

ah

Verfasst: 27.03.2003 22:10
von AzIbI
Die neueste Version ist es. Könnte es daran liegen das die Dateien auf einen Externen FTP geladen werden? Aber wenn ich es ohne Ftp mache funzt es auch nicht.

Vielleicht hilft dir ja die PHPinfo weiter

http://www.azibi.gu1.info/phpbb2/info.php