Seite 1 von 2

2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 26.11.2009 17:27
von Woodstock
Ich habe nach dem Update von 3.05. auf 3.06 zwei Probleme

1. Es gibt Probleme bei der Registrierung mit dem Captcha-Code, der jetzt so aussieht:

[ externes Bild ]

und ganz oben über dem Header erscheint diese Fehlermeldung

[phpBB Debug] PHP Notice: in file /includes/captcha/plugins/captcha_abstract.php on line 233: mt_rand() expects parameter 1 to be long, string given
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4157: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4158: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3464)




2. bei Klick auf Captcha-Modul-Einstellungen im Administratorbereich erhalte ich diese Fehlermeldung


Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /is/htdocs/.............../www/community/includes/db/db_tools.php on line 654

LG Woodstock

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 26.11.2009 21:15
von nickvergessen
Woodstock hat geschrieben:Parse error: syntax error, unexpected T_IF, expecting T_FUNCTION in /is/htdocs/.............../www/community/includes/db/db_tools.php on line 654
Lad die Datei mal aus einem neuen phpBB auf deinen Server hoch.

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 26.11.2009 22:09
von Woodstock
Hi und danke.. :grin: ein Problem scheint schon mal gelöst..

Punkt 2 diese Fehlermeldung kam jetzt nicht mehr...

allerdings Problem 1 ist geblieben.... nur wird jetzt das Captchabild gar nicht mehr
und die Zeilen bei der Registrierung ganz oben werden immer noch angezeigt.

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 26.11.2009 23:05
von nickvergessen
Lad die hier dann auch nochmal neu hoch:
includes/captcha/plugins/captcha_abstract.php
ansonsten versuch mal ein anderes Captcha auszuwählen.

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 27.11.2009 12:43
von Woodstock
Leider sieht es noch immer so aus

http://www.250kb.de/u/091127/g/8a663074.gif
Große Bilder bitte nur verlinken - KB:16 - nickvergessen

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 27.11.2009 12:59
von marunde
Ich habe exakt das gleiche Problem

Code: Alles auswählen

[phpBB Debug] PHP Notice: in file /includes/captcha/plugins/captcha_abstract.php on line 233: mt_rand() expects parameter 1 to be long, string given
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4304: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3483)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4306: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3483)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4307: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3483)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4308: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3483)
die Grafik-Captchas werden nicht angezeigt, auch nicht im ACP (Vorschau). Bei der Registrierung bleibt das Captcha leer und damit nutzlos.

Mit dem ReCaptcha funktioniert eine Registrierung zwar, aber die oben genannten Zeilen im Header bleiben.

die "Cannot modify header information" bekäme ich weg, wenn ich in der includes/function.php die 4 Zeilen

Code: Alles auswählen

	// application/xhtml+xml not used because of IE
	header('Content-type: text/html; charset=UTF-8');

	header('Cache-Control: private, no-cache="set-cookie"');
	header('Expires: 0');
	header('Pragma: no-cache');
lösche, kann aber nicht Sinn und Zweck der Sache sein.

das einzige Captcha was funktionieren würde ist das Q&A-Captcha, das ist aber Mist. (hatte schon 3 Bot-Anmeldungen in nur paar Stunden)

Ließe sich das alte Captcha aus der V 3.0.5. denn nicht wieder implentieren. Damit hatte ich nie Probleme. Welche Dateien müssten dafür ersetzt werden ?

Screenshots:
http://www.costa-rica.eu/captcha1.png
http://www.costa-rica.eu/captcha2.png

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 27.11.2009 13:13
von nickvergessen
Könnt ihr mal gucken, ob folgender Code in eurer includes/constants.php steht?

Code: Alles auswählen

// Captcha code length
define('CAPTCHA_MIN_CHARS', 4);
define('CAPTCHA_MAX_CHARS', 7);

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 27.11.2009 13:21
von marunde
nickvergessen hat geschrieben:Könnt ihr mal gucken, ob folgender Code in eurer includes/constants.php steht?

Code: Alles auswählen

// Captcha code length
define('CAPTCHA_MIN_CHARS', 4);
define('CAPTCHA_MAX_CHARS', 7);
Eben nachgesehen. Der Code steht nicht drin.

LG

EDIT: hab den Code jetzt nach

Code: Alles auswählen

// phpBB Version
define('PHPBB_VERSION', '3.0.6');
eingebaut und es läuft jetzt super. (eben gestestet)

vielen Dank
LG Nico

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 27.11.2009 13:48
von nickvergessen
Vergleich mal eine includes/constants.php dann mit der aus einem Neuem Paket, ob da noch mehr fehlen.

Re: 2 Probleme nach Update von 3.05 auf 3.06

Verfasst: 27.11.2009 14:04
von marunde
nickvergessen hat geschrieben:Vergleich mal eine includes/constants.php dann mit der aus einem Neuem Paket, ob da noch mehr fehlen.
Also sowohl im Update-Paket phpBB-3.0.5_to_3.0.6-deutsch.zip als auch im Neuen Paket phpBB-3.0.6-deutsch.zip steht es mit dabei. Es lag dann offenbar am automatischen Update, bei dem diese Codeänderung nicht durchgeführt wurde (ich hab jedenfalls updaten lassen) und es dann zu den o.g. Probs führte.

2 simple Variablen...

LG