Dein Menü

Willkommen Gast. Bitte einloggen oder registrieren.
23. Mai 2012, 20:07:43

Einloggen mit Benutzername, Passwort und Sitzungslänge

Sprache wählen:

Spenden

Donate für den POC!
Deine Spende hilft dem Support, der Erhaltung des Chats und diesem Portal.

Anzeige Amazon

* Chartermember

* Bookmark

Bookmark and Share

* Werbung

vodafone.de
Share this topic on AskShare this topic on BlinkbitsShare this topic on BlinklistShare this topic on BloglinesShare this topic on BmarksShare this topic on Del.icio.usShare this topic on DiggShare this topic on DzoneShare this topic on FacebookShare this topic on Feed Me LinksShare this topic on FurlShare this topic on GoogleShare this topic on LiveShare this topic on MagnoliaShare this topic on MySpaceShare this topic on OneviewShare this topic on RedditShare this topic on ScuttleShare this topic on ShadowsShare this topic on SlashdotShare this topic on SpurlShare this topic on SquidooShare this topic on StumbleUponShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Autor Thema: [Lösung] eines Fehlers in class.Template.inc on Line 488  (Gelesen 1774 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

germane

  • Gast
Hallo Pocuser(innen)

Heute habe ich den Poc mal wieder auf einem externen Server installiert und habe beim Anklicken des Smilie folgenden Fehler erhalten.
Zitat
Warning: is_file() [function.is-file]: open_basedir restriction in effect. File(..) is not within the allowed path(s): (/www/htdocs/xxxxxx/) in /www/htdocs/xxxxxx/include/class.Template.inc on line 488

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/xxxxxx/include/class.Template.inc:488) in /www/htdocs/xxxxxx/include/class.Template.inc on line 335

Der Fehler tauchte auf, als der Poc versuchte, sämtliche Themes im Templates-Ordner nach Smilies zu durchsuchen die evtl. vorhanden sind.
Die Funktion is_file können anscheinend manche Server nicht oder nicht richtig umsetzen. Keine Ahnung warum, ist aber mal egal.

Die Lösung dazu fand ich bei http://de3.php.net/manual/de. Suchbegriff u.a. readdir in der Funktionsliste.

In der if-Anweisung ab Zeile488 folgendes entfernen: !is_file($dir) && . Dann schaut's so aus:

Vorher
Zitat
    while ( $dir = readdir($handle) )
    {
      if ( !is_file($dir)
      &&
$dir != '.'
      && $dir != '..'
      && $dir != 'CVS'
      ) {
        $themes[] = $dir;
      }

Nachher
Zitat
    while ( $dir = readdir($handle) )
    {
      if ($dir != '.'
      && $dir != '..'
      && $dir != 'CVS'
      ) {
        $themes[] = $dir;
      }

Ich denke mal, daß ich diesen Lösungsweg verständlich genug rübergebracht habe. ::)

germane
« Letzte Änderung: 19. Februar 2005, 05:21:10 von germane »

Offline kira12

  • Neuling
  • *
  • Beiträge: 2
  • Karma: 0
  • Ich stehe auf ????
Antw:[Lösung] eines Fehlers in class.Template.inc on Line 488
« Antwort #1 am: 16. September 2009, 18:49:09 »
Hallo,

danke, ich hatte das problem auch und deine Lösung hat funktioniert.

Gruß

POC -PhpOpenChat- Portal

« am: »

Tags:
 

Bequem im Web suchen direkt von hier!

Benutzerdefinierte Suche

Anzeige

www.medionshop.de

Unser Server

www.strato.de -> hier klicken

* Domain Frei?

* Anzeige

Multi Suche


Web
www.phpopenchat.de
www.h-h-c.de

* Networks

Follow Phpopenchat on Twitter
Portal Management Extension PortaMx v0.980-1 | PortaMx © 2008-2010 by PortaMx corp.