Seite 3 von 3

Re: Problem mit Umzug auf Testumgebung

Verfasst: 08.06.2012 08:20
von PatrickS3
So, zurück aus dem Urlaub.

Wenn ich nun also die htacces wie oben beschrieben ändere, mit dem Eintrag

Code: Alles auswählen

AddType x-mapp-php6 .php 
AddHandler x-mapp-php6 .php
und anschließend hochlade, wird mir folgender Fehler ausgeworfen (dank Screenshot konnte ich es abschreiben):

Code: Alles auswählen

Strict Standards: Non-static method utf_normalizer::nfkc() should not be called statically in /rootpfad/includes/utf/utf_tools.php on line 1663
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1052: Cannot modify header information - header already sent by (output started at[ROOT]/includes/utf/utf_tools.php:1663)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1052: Cannot modify header information - header already sent by (output started at[ROOT]/includes/utf/utf_tools.php:1663)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1052: Cannot modify header information - header already sent by (output started at[ROOT]/includes/utf/utf_tools.php:1663)

Warning: Cannot modify header information - headers already sent by (output started at /rootpfad/includes/utf/utf_tools.php:1663) in /rootpfad/includes/funkctions.php on line 4864

Warning: Cannot modify header information - headers already sent by (output started at /rootpfad/includes/utf/utf_tools.php:1663) in /rootpfad/includes/funkctions.php on line 4866

Warning: Cannot modify header information - headers already sent by (output started at /rootpfad/includes/utf/utf_tools.php:1663) in /rootpfad/includes/funkctions.php on line 4867

Warning: Cannot modify header information - headers already sent by (output started at /rootpfad/includes/utf/utf_tools.php:1663) in /rootpfad/includes/funkctions.php on line 4868
Nehme ich die Änderung zurück, läuft wieder alles prima.

Die Zeilen aus den genannten Dateien:
utf_tools.php Zeile 1662 und 1663:

Code: Alles auswählen

// convert to NFKC
	utf_normalizer::nfkc($text);
functions.php Zeile 4863 bis 4868:

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');
Selbstverständlich habe ich den Artikel zu "headers already sent" in der KB gelesen, komme aber nicht wirklich weiter. Zumal es ja einmal funktioniert und einmal nicht?


Gruß Patrick

Re: Problem mit Umzug auf Testumgebung

Verfasst: 08.06.2012 08:56
von Pfiffy
Also schon alleine die Dateiangabe "/rootpfad/includes/funkctions.php" ist nicht normal. Die Datei heißt "functions.php" und nicht "funkctions.php"!

Grücce
Pfiffy

Re: Problem mit Umzug auf Testumgebung

Verfasst: 08.06.2012 09:20
von Mahony
Hallo
PatrickS3 hat geschrieben:Wenn ich nun also die htacces wie oben beschrieben ändere, mit dem Eintrag

Code: Alles auswählen

AddType x-mapp-php6 .php
    AddHandler x-mapp-php6 .php

und anschließend hochlade, wird mir folgender Fehler ausgeworfen (dank Screenshot konnte ich es abschreiben):
Ja und warum machst du das? Dir ist schon klar, das du damit auf die PHP DEV-Version (Entwickler-Version) umschaltest?


Grüße: Mahony

Re: Problem mit Umzug auf Testumgebung

Verfasst: 08.06.2012 10:12
von Miriam
Ich verstehe auch nicht, warum Du nicht auf dem Webspace die eine .htaccess und auf dem lokalen Rechner eine andere .htaccess benutzt. Also jeweils funktionierende Version pro Rechner.

Re: Problem mit Umzug auf Testumgebung

Verfasst: 08.06.2012 11:42
von PatrickS3
Pfiffy hat geschrieben:Also schon alleine die Dateiangabe "/rootpfad/includes/funkctions.php" ist nicht normal. Die Datei heißt "functions.php" und nicht "funkctions.php"!

Grücce
Pfiffy
Tippfehler von mir, heisst natürlich functions.php.


Also nochmals ausführlicher.

Es geht derzeit nur noch um die echte Serverumgebung, nicht die Testumgebung. Ab diesem Beitrag: posting.php?mode=reply&f=73&t=222506#pr1272778 ist alles nur noch Serverumgebung.

Mein Provider sagt, wenn ich die aktuelle version von PHP nutzen möchte, soll ich eben den oben genannten Schnipsel in die .htaccess eintragen.

Mit dieser Anweisung in der .htaccess:

Code: Alles auswählen

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
Habe ich als PHP Version 5.2.17

Mit dieser Anweisung in der .htaccess:

Code: Alles auswählen

AddType x-mapp-php6 .php
    AddHandler x-mapp-php6 .php
habe ich als PHP Version 5.4.3. Mein Provider hat dazu auch ein Infoscript in einem Unterverzeichnis /test mit einer entsprechenden .htaccess erzeugt um mir das zu erklären:
http://www.digitalfototreff.de/test/info.php

Und genau das funktioniert aber nicht, wenn ich den Codeschnipsel in die .htaccess im Rootverzeichnis lege.
Derzeit ist das ja noch nicht so wichtig, da phpBB 3.0.10 mit PHP 5.2.17 einwandfrei läuft. Nur irgendwann in ferner Zukunft wird phpBB 3.1 die Version 5.3 von PHP voraussetzen.

Gruß Patrick

Re: Problem mit Umzug auf Testumgebung

Verfasst: 14.06.2012 09:21
von PatrickS3
Kann es eigentlich sein, dass in der utf.php eine Syntax enthalten ist, die unter PHP 5.4 nicht läuft und deshalb der Fehler ausgeworfen wird?

Code: Alles auswählen

Strict Standards: Non-static method utf_normalizer::nfkc() should not be called statically in /rootpfad/includes/utf/utf_tools.php on line 1663
Und alle weiteren Fehler dann nur wegen diesem ersten Fehler entstehen?


Gruss Patrick

Re: Problem mit Umzug auf Testumgebung

Verfasst: 14.06.2012 10:34
von Mahony
Hallo
Wie bereits gesagt, solltest du keine PHP DEV-Version (Entwickler-Version) verwenden.
Wenn du die DEV-Version (Entwickler-Version) aber nun unbedingt dennoch verwenden möchtest, dann schau mal hier http://www.oxpus.de/viewtopic.php?f=14&t=9853
in der Datei includes/startup.php die Zeile

Code: Alles auswählen

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
ersetzen durch

Code: Alles auswählen

error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
Dann sollten die Fehlermeldungen aufhören.
Grüße: Mahony

Re: Problem mit Umzug auf Testumgebung

Verfasst: 14.06.2012 12:59
von PatrickS3
Danke mahony.
Warum mein Provider nur 5.2.17 und 5.4.x (also eine Developer Version) auf dem Server hat ist mir auch ein Rätsel und konnte auch nicht wirklich abschliessend durch Mailkontakte mit dem Support geklärt werden.

Wie gesagt, es eilt ja nicht im Moment interessiert mich eher der Zusammenhang warum der Fehler kommt.
Und bis phpBB 3.1 irgendwann erscheint wird mein Provider hoffentlich auch eine aktuellere PHP Version auf dem Server installiert haben.