Hallo,
unser Shop läuft bei Strato und läuft auch, aber immer wenn ich den tmp-Ordner leere, kommt stets diese Meldung beim 1. Aufruf des Shops:
Warning: file_get_contents(/home/strato/http/power/rid/97/25/htdocs/shop/tmp/config.oxbaseshop.amodules.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php on line 687
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/htdocs/shop/core/oxutilsserver.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/htdocs/shop/core/oxutils.php on line 1156
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/htdocs/shop/core/oxutils.php on line 1156
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/htdocs/shop/core/oxutils.php on line 1156
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/htdocs/shop/core/oxutils.php on line 1156
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/htdocs/shop/core/oxutils.php on line 1156
Im error-log steht das:
oxSystemComponentException-oxException (time: 2013-08-07 11:46:29): [0]: EXCEPTION_SYSTEMCOMPONENT_CLASSNOTFOUND
Stack Trace: #0 /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php(196): oxUtilsObject->_getObject('oxsystemcompone...', 0, Array)
#1 [internal function]: oxUtilsObject->oxNew('oxSystemCompone...')
#2 /mnt/web5/b1/25/htdocs/shop/core/oxfunctions.php(384): call_user_func_array(Array, Array)
#3 /mnt/web5/b1/25/htdocs/shop/core/oxutilsobject.php(186): oxNew('oxSystemCompone...')
#4 [internal function]: oxUtilsObject->oxNew('/proc/self/envi...')
#5 /mnt/web5/b1/25/htdocs/shop/core/oxfunctions.php(384): call_user_func_array(Array, Array)
#6 /mnt/web5/b1/25/htdocs/shop/core/oxshopcontrol.php(439): oxNew('/proc/self/envi...')
#7 /mnt/web5/b1/25/htdocs/shop/core/oxshopcontrol.php(387): oxShopControl->_initializeViewObject('/proc/self/envi...', NULL, NULL, NULL)
#8 /mnt/web5/b1/25/htdocs/shop/core/oxshopcontrol.php(156): oxShopControl->_process('/proc/self/envi...', NULL, NULL, NULL)
#9 /mnt/web5/b1/25/htdocs/shop/core/oxid.php(40): oxShopControl->start()
#10 /mnt/web5/b1/25/htdocs/shop/index.php(28): Oxid::run()
#11 /mnt/web5/b1/25/htdocs/shop/oxseo.php(46): require('/mnt/web5/b1/25...')
#12 {main}
Faulty component --> /proc/self/environ
---------------------------------------------
Offenbar hat noch niemand so eine Fehlermeldung gehabt, zumindest fand ich hier nichts dazu. Wo wird denn /proc/self/environ referenziert und warum gibt es einen Fehler?
Hat irgendwer einen Tipp, in welcher Richtung ich schauen muss?
Vielen Dank!
Hi,
sehr sehr merkwürdig. Offenbar betreibst Du einen V-Server (web5), der auf der Debian(basierten) Host-Kiste über /mnt/ gemountet wird und dort einen Fehler in den Prozessen (/proc/) hervorruft.
Wieso schaust darfst Du eigentlich in die Logs der Host-Büchse schauen? Und wieso ist das nicht so auf der VM gekapselt, dass die Applikation eine Chance hat, in die Prozesse der Host-Büchse zu greifen? Ich verstehe nicht, wer das so konfigurieren konnte.
Gruß
Ach - wegen des “Cannot modify header …”: Entweder hat jemand direkt an der oxutils o.ä. rumgespielt oder ein Modul greift darauf zu. Meist tritt dieser Fehler auf, wenn nach “?>” am Ende der Datei (das ja nicht mehr benutzt werden soll) ein LF kommt, ggf. hervorgerufen durch nicht-binäre Übertragung 
Gruß
Es ist kein V-Server, sondern einfach nur shared hosting, da gibts keine Einstellmöglichkeiten.
An welcher Stelle wird denn hier auf proc zugegriffen?
Auch gibt es keine Zusatzmodule im Einsatz, genausowenig wie an der oxutils rumgemacht wurde. Könnte es evtl. helfen, die Dateien nochmal neu hochzuladen, im Binär-Modus? Welche wären das dann, kann ich dabei den application-baum von azure weglassen, weil ich in dem zig Änderungen gemacht habe? Oder wie wäre das beste Vorgehen wegen dem Binär-Thema?
Was genau meinst Du mit
Meist tritt dieser Fehler auf, wenn nach “?>” am Ende der Datei (das ja nicht mehr benutzt werden soll) ein LF kommt, ggf. hervorgerufen durch nicht-binäre Übertragung
Danke!
Moin,
also für Änderungen am Template gibt’s ein Overwrite-System. Danach kannste mal mit einer oxchkversion die Konsistenz prüfen und ggf. die Dateien ersetzen.
Mir sieht das dennoch nach einer ganz kruden Serverkonfiguration aus, wenn solche Fehler gespuckt werden. Damit meine ich nicht, dass Du darauf Einfluss hättest sondern dass man ggf. - allein aus Sicherheitsgründen - darüber nachdenken könnte, auf einen Provider auszuweichen, der weiss, was er tut.
Gruß
Über den Provider entscheidet halt der Kunde, nicht ich. Hatte ihm das schon nahegelegt, aber bis der Shop dann umgezogen ist, wird es auch wieder lustig… und viel Arbeit.
Es tut ja wie gesagt, aber ich würde gerne die Ursache des Fehlers finden und beheben. Hat denn nur der “Cannot modify header”-Fehler was mit der binären Übertragung der PHP-Dateien zu tun oder auch der error-log-Eintrag?
oxchkversion hab ich schon benutzt, Bis auf meine Template-Änderungen gabs keine Beschwerden oder prüft das Script nicht auf die Binär-Übertragung?
Überhaupt, seit wann spielt es denn bei PHP-Dateien eine Rolle, ob sie binär übertragen werden? Wenn dann doch höchstens als Text? Ich blicks grad nicht.
Hi,
cannot modify header kann mit Binärmodus zu tun aber auch andere Ursachen haben.
Und ja: das kann Dir wie gesagt die LFs zerschiessen.
Gruß
Habe nun die Datei /core/oxutilsobject.php binär neu auf den Server geladen und schwupp, die modify header Fehler sind weg. Das ist zwar prima, aber seltsam, da ich sonst NIE php-Dateien binär übertrage. Ist das etwa für Windows-Server optimiert?
Wahrscheinlich dort größtenteils programmiert 
Da der Fehler trotz meiner obigen Meldung leider doch nicht weg ist, will ich nochmals nachhaken. Das ox-log zeigt zwar keine neue Fehlermeldung an, die letzte ist von November 2013, aber im Serverlog finde ich dafür noch was.
Hier zunächst die Fehlermeldung auf der Shopseite selbst:
Warning: file_get_contents(/home/strato/http/power/rid/97/25/51849725/htdocs/shop/tmp/config.oxbaseshop.amodules.txt) [function.file-get-contents]: failed to open stream: No such file or directory in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php on line 687
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
[…]
Und hier das Server-Errorlog:
07.02.2014 12:32:02 shop [client 91.113.101.0] PHP Warning: file_get_contents(/home/strato/http/power/rid/97/25/51849725/htdocs/shop/tmp/config.oxbaseshop.amodules.txt) [<a href=‘function.file-get-contents’>function.file-get-contents</a>]: failed to open stream: No such file or directory in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php on line 687
07.02.2014 12:32:02 shop [client 91.113.101.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
07.02.2014 12:32:02 shop [client 91.113.101.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutils.php on line 1156
07.02.2014 12:32:02 shop [client 91.113.101.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutils.php on line 1156
07.02.2014 12:32:02 shop [client 91.113.101.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutils.php on line 1156
[…]
07.02.2014 12:34:06 shop [client 213.54.44.0] PHP Warning: file_get_contents(/home/strato/http/power/rid/97/25/51849725/htdocs/shop/tmp/config.oxbaseshop.amodules.txt) [<a href=‘function.file-get-contents’>function.file-get-contents</a>]: failed to open stream: No such file or directory in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php on line 687
07.02.2014 12:34:06 shop [client 213.54.44.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
07.02.2014 12:34:06 shop [client 213.54.44.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
07.02.2014 12:34:06 shop [client 213.54.44.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsserver.php on line 107
07.02.2014 12:34:07 shop [client 213.54.44.0] PHP Warning: Cannot modify header information - headers already sent by (output started at /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutilsobject.php:687) in /mnt/web5/b1/25/51849725/htdocs/shop/core/oxutils.php on line 1156
[…]
Die “Cannot modify header”-Meldungen kommen sicherlich daher, dass zuvor die file_get_contents-warning ausgegeben wird, im Grunde sind die header-Warnings daher irrelevant. Doch was genau hat denn die oxutilsobject.php für ein Problem mit welchem Stream? Hat hier jemand einen Tipp, wie ich vorgehen soll, um den Fehler einzukreisen?
Danke!