php Debug auf Portal - von Php 7 auf Php 7.1

Aktuelle Version: 2.1.0
Veröffentlicht: 26.10.2015
Forum rules
Vor dem erstellen neuer Supportanfragen bitte zuerst in die board3 Portal FAQ schauen und die Suche benutzen!
Viele Fragen sind bereits schon gestellt und beantwortet worden.
Bitte auch unsere Forumsregeln lesen und beachten!
Locked

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Ich habe mein Testforum heute von PHP 7.x auf PHP 7.1 umgestellt. Grund ist , das Xampp nicht mehr mit PHP 7 arbeitet. jetzt habe ich wie befürchtet Fehlermeldungen auf der Portalseite sowie im ACP/ eigene Blöcke:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/ext/board3/portal/portal/fetch_posts.php on line 137: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4564: 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.php on line 4564: 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.php on line 4564: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
 
Im ACP/Erweiterungen/eigenes Modul - BBCode nicht aktiv:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 789: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 790: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 791: 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)
Habe hier gesucht und einen kleinen Hinweis zum Problem gefunden welchen ich nicht nachvollziehen kann:
Ich bereite gerade das Update von board3.de auf phpBB 3.2 vor, teste mit PHP 7.1 und es fallen doch ein paar mehr Sachen auf. Auch im Frontend.


und einen Beitrag weiter:
da habe ich diese (geänderte) Zeile.....
Ich weiß nicht in welcher Datei(en) die Änderung(en) vorgenommen werden müssen, damit das Portal auch unter Php 7.1 arbeitet :oops:
Link zum Testforum
PHP 7.1.23-nmm1
MySQL(i) 5.6.38-nmm1-log
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Kirk »

Hallo
Öffne: root/ext/board3/portal/portal/fetch_posts.php
Finde:

Code: Select all

$post_time = $this->get_setting_based_data($time == 0, '', 'AND t.topic_time > ' . (time() - (int) $time * 86400));
ersetzen mit:

Code: Select all

$post_time = $this->get_setting_based_data($time == 0, '', 'AND t.topic_time > ' . (time() - $time * 86400));
Hier gibt es auch ein paar Änderungen: https://github.com/board3/Board3-Portal/pull/691/files
Gruß Udo

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Moin,
root/ext/board3/portal/portal/fetch_posts.php
mit notepad++ geöffnet und in Zeile 137 ist das bereits vor PHP Umstellung geändert:

Code: Select all

$post_time = $this->get_setting_based_data($time == 0, '', 'AND t.topic_time > ' . (time() - $time * 86400));
Ich habe bereits auf die von Dir verweiste Seite nachgeschaut und werde die Änderungen vergleichen.

Der Pfad zur ./travis.yml - ist der richtig?

/root/vendor/ocramius/proxy-manager/travis.yml

Ich kann auch die Pfade zu diesen Dateien nicht recht nachvollziehen:

composer.json - da finde ich einige Dateien - welche muss geändert werden

composer.lock - mehrere Dateien -welche ändern

modules/calendar.php ----> ? /ext/portal/modules/calender.php ?

modules/welcome.php ------> /ext/portal/modules/welcome.php ?
Gruß und danke
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Kirk »

Alle dort aufgeführten Dateien musst du nicht ändern sondern nur diese:
  • composer.json
  • modules/calendar.php
  • modules/welcome.php
  • portal/fetch_posts.php
Rot bedeutet löschen und Grün hinzufügen.
Gruß Udo

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Oh danke. Rein Interessehalber: rot weg - grün einfügen und was bedeutet das Blaue (expand - erweitern) also neu einfügen?
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Kirk »

Das blaue kannst du ignorieren, was das alles zu bedeuten hat kann ich dir auch nicht genau sagen, so gut kenne ich mich mit GitHub auch nicht aus.
Gruß Udo

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

So auf der Portalseite nun keine Fehlermeldung mehr. aber im ACP/Anpassen/Portal Module bei eigenen Modulen nach wie vor folgende Fehlermeldung:

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 789: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 790: A non-numeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 791: 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)
Wichtig war mir das die Portalseite sauber ist. Im ACP werde ich damit wohl leben müssen ?
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Kirk »

Mache doch noch diese beiden Änderungen: https://www.board3.de/viewtopic.php?p=37075#p37075
Gruß Udo

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Woh danke für die kompetente Hilfe. :D

die welcome.php war schon so ediert, es lag an der custom.php. Alles so wie es sein sollte. Keine Fehlermeldungen mehr.

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Nachdem ich für das Testforum die entsprechenden Dateien ediert habe, ist nun das eigentliche daran. Umgestellt auf PHP 7.1.23 und im ACP /Erweiterungen/Portal/
bei den eigenen Modulen mit Text (BB-Code deaktiviert) wieder eine Fehlermeldung - nur wenn ich entsprechendes Modul anklicke:

Code: Select all

  
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 789: A non-nummeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 790: A non-nummeric value encountered
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_content.php on line 791: A non-nummeric value encountered 

Kann ich die zu ändernden Dateien nicht aus den Testforum (läuft unter PHP 7.1.30-nmm1) nicht einfach im anderen Forum mit dieser Debug Fehlermeldung kopieren? Damit würde ich mir die Arbeit ersparen alles noch mal zu ändern?........

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Hat den niemand einen Tipp ob ich so vorgehen kann?
User avatar

Kirk
Dev
Posts: 1937
Joined: 27. July 2010 18:02
phpBB.de User: Kirk
Contact:

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Kirk »

Alle notwendigen Info´s wurden dir in diesem Thema bereits gegeben. Versuch es mit dieser angepassten Version.
Gruß Udo

Topic author
Zausel
Active Member
Posts: 33
Joined: 7. April 2016 21:19

Re: php Debug auf Portal - von Php 7 auf Php 7.1

Post by Zausel »

Oh vielen Dank! Werde es testen.

Aber ich habe nun vorab einfach den Ordner "Board3" mit den bereits edierten Dateien aus den Testforum kopiert und in ein weiteres Testforum übernommen. Ebenso die Einstellungen der eigenen Blocks. Hat wunderbar geklappt. Keinerlei Fehlermeldung mehr.

Es hat sich also erledig. ;)
Locked

Return to “Board3 Portal 2.1.x - Deutscher Support”