Seite 1 von 2

[3.2] phpDebug - Fehler im ACP

Verfasst: 14.01.2019 08:23
von maik63de
Hallo,

habe vor ein paar Tagen auf die Version 3.2.5 geupdatet, gleichzeitig von php-Version 5.6 auf 7.2 umgestellt.
Hat alles super geklappt, keine Probleme beim Update und alles läuft, aber im ACP bekomme ich im Bereich "System" - "Allgemeine Funktionen" diese Fehlermeldung am oberen Bildschirmrand:

Code: Alles auswählen

[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/template/context.php on line 204: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
Es ist auch nur in dem Bereich, weder bei "Automatisierung" noch bei "Modul-Konfiguration"! Es funktioniert aber trotz der Fehlermeldung alles.
Auch ist kein anderer Bereich betroffen.

Was könnte das sein?

edit: Ich konnte den Fehler weiter eingrenzen: das Modul "Sprachpakete" wird in dem Bereich nicht angezeigt obwohl es aktiviert ist. Ich habe es mal deaktiviert, dann treten keine Fehler mehr auf.

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 14.01.2019 13:10
von Scanialady
ist möglicherweise ein Problem von PHP 7.2 - hast du das auch, wenn du auf 7.1 runterschaltest?

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 14.01.2019 14:38
von Kirk
phpBB 3.2.5 sollte eigentlich problemlos mit PHP 7.2 laufen, wie bist beim Update vorgegangen?

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 14.01.2019 14:47
von BNa
Mylady hat geschrieben:ist möglicherweise ein Problem von PHP 7.2 - hast du das auch, wenn du auf 7.1 runterschaltest?
Warscheinlich (eher) nicht :wink:

https://www.phpbb.com/community/viewtop ... #p14970041

https://www.phpbb.com/community/viewtop ... #p15149151

https://github.com/phpbb/phpbb/pull/5479/files

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 14.01.2019 15:03
von maik63de
Hi,

Problem gelöst.
  1. Sprachpakete-Modul deaktiviert = läuft ohne Fehler
  2. PHP-Version von 7.2 auf 7.1 runter gestellt und Sprachpakete-Modul aktiviert = läuft ohne Fehler, Modul wird aber nicht angezeigt
  3. Sprachpaket-Modul in testweise in "Automatisierung" verschoben = läuft ohne Fehler, Modul wird angezeigt
  4. PHP-Version wieder auf 7.2 hochgesetzt = läuft ohne Fehler
  5. Sprachpaket-Modul wieder in "Allgemeine Funktionen" verschoben = alles läuft... :grin:
Woran es nun lag, weiß der Geier oder nicht...

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 28.01.2019 22:04
von maik63de
Hi,

habe heute noch einen "Fehler" im ACP gefunden. Ist fast das gleiche wie oben, nur erscheint die Meldung beim Anwählen der "Galerie - Übersicht".

Code: Alles auswählen

[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbgallery/core/acp/main_module.php on line 520: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
Es ist die Galerie von Satanasov in der Version 1.2.1... Leider nicht mehr weiterentwickelt und eine Alternative gibt es ja auch nicht.

Was kann ich gegen die Fehlermeldung machen?

Gruß Maik

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 28.01.2019 22:10
von Crizzo
Code der Extension der Stelle anschauen und das Problem gemäß Anleitung/Infos lösen: viewtopic.php?f=145&t=242571&p=1392092#p1392092 :)

Grüße

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 31.01.2019 09:55
von maik63de
Hi,

danke für deine Antwort, leider werde ich daraus nicht schlau.

Code: Alles auswählen

517	  	//@todo: phpbb_gallery_modversioncheck::check();
518
519		$boarddays = (time() - $config['board_startdate']) / 86400;
520		$images_per_day = sprintf('%.2f', $config['num_images'] / $boarddays);
521
522		$sql = 'SELECT COUNT(album_user_id) AS num_albums
523			FROM ' . $albums_table . '
524			WHERE album_user_id = 0';
525		$result = $db->sql_query($sql);
526		$num_albums = (int) $db->sql_fetchfield('num_albums');
527		$db->sql_freeresult($result);
Laut Fehlermeldung geht es ja um die Zeile 520, siehe hier: (viewtopic.php?p=1392478#p1392478)

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 31.01.2019 11:23
von franki
Also meine letzte Version der Erweiterung ist "3.2.2" vom "2018-03-17"

Dort ist auch die Zeile "520" wie folgt:
$images_per_day = sprintf('%.2f', $config['phpbb_gallery_num_images'] / $boarddays);

Bei Dir
$images_per_day = sprintf('%.2f', $config['num_images'] / $boarddays);

Link zur Version 3.2.2:
https://github.com/satanasov/phpbbgallery

Re: [3.2] phpDebug - Fehler im ACP

Verfasst: 31.01.2019 11:57
von maik63de
franki hat geschrieben:Also meine letzte Version der Erweiterung ist "3.2.2" vom "2018-03-17"

Dort ist auch die Zeile "520" wie folgt:
$images_per_day = sprintf('%.2f', $config['phpbb_gallery_num_images'] / $boarddays);

Bei Dir
$images_per_day = sprintf('%.2f', $config['num_images'] / $boarddays);

Link zur Version 3.2.2:
https://github.com/satanasov/phpbbgallery
Version der Galerie gibt es nur bis 1.2.1
Du meintest bestimmt phpbb-Version 3.2.2

Aber ich habe den Eintrag geändert, nun klappt es. Danke

Nachtrag:
Ich habe die Version 3.2.1.0 gefunden und installiert.
Läuft nun fast alles.
Allerdings kommt nun im ACP beim Modul "Galerie konfigurieren" diese Fehlermeldung:

Code: Alles auswählen

[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbgallery/core/acp/config_module.php on line 232: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/ext/phpbbgallery/core/acp/config_module.php on line 232: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_acp.php on line 137: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
Die Zeile lautet:

Code: Alles auswählen

232				if (count($langs_var) > 1)
Und eins ist mir noch aufgefallen: Man kann nicht mehr beim Betrachten eines Bildes zum nächsten/vorherigen Bild blättern.