Hallo,
ich habe jetzt bei zwei Web-Seiten (beide WE 7.0.4) PHP 7.2 laufen.
Ich bekomme bei Web-Seite 1 die Fehlermeldung:
Declaration of we_webEditionDocument::insertAtIndex(?array $only = NULL, array $fieldTypes = Array) should be compatible with we_textContentDocument::insertAtIndex(?array $only = NULL, ?array $fieldTypes = NULL)
Bei Web-Seite 2 war der oben genannte Fehler auch schon mal, hatte dann aber einfach PHP auf 7.0.33 gestellt wodurch der Fehler nicht mehr auftrat. Jetzt habe ich die Web-Seite 2 wieder auf PHP 7.2 gestellt und der Fehler ist nicht mehr da. (keine anderen Änderungen seit damals vorgenommen).
Ein erneutes PHP downgrade ist für mich nicht möglich da 7.0.33 bald abgestellt wird.
Woran liegt dieser Fehler und wie kann er behoben werden?
Und warum ist dieser Fehler nur noch bei Web-Seite 1?
Vielen Dank
Fehler PHP 7.2 (Declaration of we_webEditionDocument::insertAtIndex)
Re: Fehler PHP 7.2 (Declaration of we_webEditionDocument::insertAtIndex)
wo hast du denn den Fehler?
Wenn du mal hier schaust https://www.webedition.org/de/dokumenta ... zungen.php siehst du, das WE 7.0.3 nur weitestgehend PHP 7 kompatibel ist. Erst WE 8 (wir sind jetzt bei 8.1) ist vollständig PHP 7.x kompatibel.
Wird dir der Fehler auf der Seite angezeigt - schalte mal das WE Fehlerlog an; ich vermute das in deinen Einstellungen aktiviert ist Fehlermeldungen in der Seite auszugeben (PHP Einstellung ohne WE-Fehlerlog).
Wenn du mal hier schaust https://www.webedition.org/de/dokumenta ... zungen.php siehst du, das WE 7.0.3 nur weitestgehend PHP 7 kompatibel ist. Erst WE 8 (wir sind jetzt bei 8.1) ist vollständig PHP 7.x kompatibel.
Wird dir der Fehler auf der Seite angezeigt - schalte mal das WE Fehlerlog an; ich vermute das in deinen Einstellungen aktiviert ist Fehlermeldungen in der Seite auszugeben (PHP Einstellung ohne WE-Fehlerlog).
webEdition-Kern-Entwickler
Re: Fehler PHP 7.2 (Declaration of we_webEditionDocument::insertAtIndex)
Das ist was mein Fehlerlog mir ausgibt:
Error message:
Declaration of we_webEditionDocument::insertAtIndex(?array $only = NULL, array $fieldTypes = Array) should be compatible with we_textContentDocument::insertAtIndex(?array $only = NULL, ?array $fieldTypes = NULL)
Script name:
webEdition/we/include/we_classes/contents/we_webEditionDocument.class.php
Line number:
25
webEdition/we/include/we_classes/contents/we_webEditionDocument.class.php:
24: */
25: class we_webEditionDocument extends we_textContentDocument{
26: // ID of the templates that is used from the document
27: var $TemplateID = 0;
28: // ID of the template that is used from the parked document (Bug Fix #6615)
29: var $temp_template_id = 0;
Error message:
Declaration of we_webEditionDocument::insertAtIndex(?array $only = NULL, array $fieldTypes = Array) should be compatible with we_textContentDocument::insertAtIndex(?array $only = NULL, ?array $fieldTypes = NULL)
Script name:
webEdition/we/include/we_classes/contents/we_webEditionDocument.class.php
Line number:
25
webEdition/we/include/we_classes/contents/we_webEditionDocument.class.php:
24: */
25: class we_webEditionDocument extends we_textContentDocument{
26: // ID of the templates that is used from the document
27: var $TemplateID = 0;
28: // ID of the template that is used from the parked document (Bug Fix #6615)
29: var $temp_template_id = 0;
Re: Fehler PHP 7.2 (Declaration of we_webEditionDocument::insertAtIndex)
ja, wie ich sagte, die Version ist halt noch nicht kompatibel zu PHP 7
webEdition-Kern-Entwickler
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste