Kleiner Fix für backendendit/front_content.php

Gesperrt
BeezyT
Beiträge: 29
Registriert: Mi 21. Mär 2007, 11:26
Kontaktdaten:

Kleiner Fix für backendendit/front_content.php

Beitrag von BeezyT »

Ich bekomme immer mal wieder folgende Einträge im Error Log:

Code: Alles auswählen

[12-Apr-2010 10:43:39] PHP Warning:  include_once(config.php) [<a href='function.include-once'>function.include-once</a>]: failed to open stream: No such file or directory in /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php on line 84
[12-Apr-2010 10:43:39] PHP Warning:  include_once() [<a href='function.include'>function.include</a>]: Failed opening 'config.php' for inclusion (include_path='.:') in /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php on line 84
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 502
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 507
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 508
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 509
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 510
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 511
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 512
[12-Apr-2010 10:43:39] PHP Warning:  Cannot modify header information - headers already sent by (output started at /var/www/vhosts/mywebsite.com/httpdocs/v3/contenido/external/backendedit/front_content.php:84) in /var/www/vhosts/mywebsite.com/httpdocs/v3/conlib/session.inc on line 151
Das Problem tritt auf, wenn man die contenido/external/backendedit/front_content.php ohne client=x in der URL aufruft.
Wenn euch die Einträge im Log stören, einfach in Zeile 84 folgendes ändern:

So siehts vorher aus:

Code: Alles auswählen

include_once ($cfgClient[$client]["path"]["frontend"]."config.php");
Einfach durch das ersetzen:

Code: Alles auswählen

if (!isset($client)) {
	$client = 1;
}
include_once ($cfgClient[$client]["path"]["frontend"]."config.php");
Dann kommt man ganz normal zum Startartikel, wenn man die backendendit/front_content.php direkt aufruft - es treten keine Fehler mehr auf => der Error Log hat hoffentlich nur noch aussagekräftige Einträge ;-)
Oldperl
Beiträge: 4316
Registriert: Do 30. Jun 2005, 22:56
Wohnort: Eltmann, Unterfranken, Bayern
Hat sich bedankt: 6 Mal
Danksagung erhalten: 4 Mal
Kontaktdaten:

Re: Kleiner Fix für backendendit/front_content.php

Beitrag von Oldperl »

BeezyT hat geschrieben:Das Problem tritt auf, wenn man die contenido/external/backendedit/front_content.php ohne client=x in der URL aufruft.
Wann und wo rufst du die denn so auf?

Gruß aus Franken

Ortwin
ConLite 3.0.0-dev, alternatives und stabiles Update von Contenido 4.8.x unter PHP 8.x - Download und Repo auf Gitport.de
phpBO Search Advanced - das Suchwort-Plugin für CONTENIDO 4.9
Mein Entwickler-Blog
BeezyT
Beiträge: 29
Registriert: Mi 21. Mär 2007, 11:26
Kontaktdaten:

Re: Kleiner Fix für backendendit/front_content.php

Beitrag von BeezyT »

Ehrlich gesagt hab ich keine Ahnung, wer das aufruft, und vor allem nicht warum...
Die Einträge waren nur im Fehlerlog, und haben den unnötig aufgeblasen.
Gesperrt