Warning: tempnam() ... function.tempnam: open basedir restriction in effect.

aus Papoo Dokumentation, der freien Wissensdatenbank
Wechseln zu: Navigation, Suche

Sie sind hier: Hauptseite/FAQ und Lösungen/Warning: tempnam() ... function.tempnam: open_basedir restriction in effect.

Warning: tempnam() ... function.tempnam: open_basedir restriction in effect.

Das ist ein Schreibproblem beim erstellen der temporären Cache Dateien von Smarty.

Lösung:

In der core.write_file.php in der Zeile 18 aus

$_dirname = dirname($params['filename']);

Das folgende ergänzen

$_dirname = realpath(dirname($params['filename']));

Damit sollte das Problem erschlagen sein.

Komplette Fehlermeldung

„Warning: tempnam() [ <http://xy/function.tempnam> function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/domains/xy/:/usr/share/phpmyadmin:/etc/phpmyadmin:/v ar/www/myfilemanager:/var/www/myinstaller:/usr/local/lib/php) in /var/www/domains/yx/docs/lib/smarty/internals/core.write_file. php on line 28”

'Persönliche Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Werkzeuge