Strona 1 z 1

Błąd Rejestracja

: 28 października 2009, 13:26
autor: Tomy
Podczas Rejestracji pokazuje mi się błąd

Kod: Zaznacz cały

[phpBB Debug] PHP Notice: in file /includes/ucp/ucp_register.php on line 488: mt_rand() expects parameter 1 to be long, string given
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3769: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3771: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3772: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3773: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3184)
Wgrałem swoje najwcześniejsze pliki jakie miałem bez kilku modów i problem się powtarza !
Oczywiście zamieniłem także pliki w komunikacie błędu .

Można się zarejestrować ,ale nie ma kodu obrazkowego !

Re: Błąd Rejestracja

: 28 października 2009, 15:19
autor: huber2t
Jakie modyfikacje w kodzie ostatnio wykonywałeś? Jakie modyfikacje instalowałeś?

Re: Błąd Rejestracja

: 28 października 2009, 16:27
autor: Tomy
Mod Kto był , CzatLwa,Skryp Urodziny widoczne na stałe, do tego momentu cofnołem się z plikami i problem nadal jest !

Re: Błąd Rejestracja

: 29 października 2009, 19:23
autor: daroPL
Pokaż kod z pliku includes/ucp/ucp_register.php w obrębie 488 wiersza.

Re: Błąd Rejestracja

: 29 października 2009, 20:27
autor: Tomy

Kod: Zaznacz cały

				$result = $db->sql_query($sql);
				$attempts = (int) $db->sql_fetchfield('attempts');
				$db->sql_freeresult($result);

				if ($config['max_reg_attempts'] && $attempts > $config['max_reg_attempts'])
				{
					trigger_error('TOO_MANY_REGISTERS');
				}

				$code = gen_rand_string(mt_rand(CAPTCHA_MIN_CHARS, CAPTCHA_MAX_CHARS));
				$confirm_id = md5(unique_id($user->ip));
				$seed = hexdec(substr(unique_id(), 4, 10));

				// compute $seed % 0x7fffffff
				$seed -= 0x7fffffff * floor($seed / 0x7fffffff);

				$sql = 'INSERT INTO ' . CONFIRM_TABLE . ' ' . $db->sql_build_array('INSERT', array(
					'confirm_id'	=> (string) $confirm_id,
					'session_id'	=> (string) $user->session_id,
					'confirm_type'	=> (int) CONFIRM_REG,
					'code'			=> (string) $code,
					'seed'			=> (int) $seed)
				);
				$db->sql_query($sql);
			}
			else if ($confirm_refresh)
			{
				$code = gen_rand_string(mt_rand(CAPTCHA_MIN_CHARS, CAPTCHA_MAX_CHARS));
				$confirm_id = md5(unique_id($user->ip));
				$seed = hexdec(substr(unique_id(), 4, 10));
					// compute $seed % 0x7fffffff
				$seed -= 0x7fffffff * floor($seed / 0x7fffffff);
				$sql = 'UPDATE ' . CONFIRM_TABLE . ' SET ' . $db->sql_build_array('UPDATE', array(
					'confirm_type'	=> (int) CONFIRM_REG,
					'code'			=> (string) $code,
					'seed'			=> (int) $seed)) . "
					WHERE
					confirm_id = '" . $db->sql_escape($confirm_id) . "' AND
					session_id = '" . $db->sql_escape($session_id) . "' AND
					confirm_type = " . (int) CONFIRM_REG;
				$db->sql_query($sql);
			}
			$confirm_image = '<img src="' . append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=confirm&id=' . $confirm_id . '&type=' . CONFIRM_REG . $str) . '" alt="" title="" />';
			$s_hidden_fields .= '<input type="hidden" name="confirm_id" value="' . $confirm_id . '" />';
		}

		//