Strona 1 z 1

Problem z zabezpieczeniem przeciwbotowym

: 06 czerwca 2011, 11:12
autor: AstroCD
Mam mały problem zabezpieczenia przeciwbotowym. Po aktualizacji z wersji 3.0.5 do 3.0.8 wystąpiły dziwne błędy i przestała działać funkcja zabezpieczająca.

Kod: Zaznacz cały

Deprecated: Assigning the return value of new by reference is deprecated in /home/astrocd/public_html/forum/includes/captcha/plugins/phpbb_captcha_gd_plugin.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/astrocd/public_html/forum/includes/captcha/plugins/phpbb_captcha_nogd_plugin.php on line 45

Deprecated: Assigning the return value of new by reference is deprecated in /home/astrocd/public_html/forum/includes/captcha/plugins/phpbb_captcha_qa_plugin.php on line 104

Deprecated: Assigning the return value of new by reference is deprecated in /home/astrocd/public_html/forum/includes/captcha/plugins/phpbb_recaptcha_plugin.php on line 54
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/captcha/plugins/phpbb_captcha_gd_plugin.php:55)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/captcha/plugins/phpbb_captcha_gd_plugin.php:55)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/captcha/plugins/phpbb_captcha_gd_plugin.php:55)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/captcha/plugins/phpbb_captcha_gd_plugin.php:55)

Szukałem na forum, ale nic nie znalazłem. W czym może być problem?

Re: Problem z zabezpieczeniem przeciwbotowym

: 08 czerwca 2011, 19:01
autor: jaroslw
Jest to standardowa część phpBB3? Komunikat sugeruje wykorzystanie przestarzałej metody przekazywania danych w PHP. Wątpię by to umknęło autorom. Proponuję zastąpić katalog includes/captcha wersją z oryginalnej paczki phpBB 3.0.8. Jeśli masz możliwość edycji php.ini, możesz też „wyciszyć” pokazywanie błędów Deprecated (Przestarzały) usuwając linię E_DEPRECATED z error_reporting. Ewentualnie sprawdź jeszcze czy na początku pliku common.php posiadasz linie:

Kod: Zaznacz cały

// Report all errors, except notices and deprecation messages
if (!defined('E_DEPRECATED'))
{
	define('E_DEPRECATED', 8192);
}
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);