Processing
Knowledge Base 
Search the Knowledge Base for

Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-24
Q. Warning: tempnam() function.tempnam: open_basedir restriction in effect. File() is not within the allowed path(s)

A. If your page returns this error :

Warning: tempnam() function.tempnam: open_basedir restriction in effect. File() is not within the allowed path(s): (...) in /home/.../public_html/portal/lib/init/initlib.php on line 101


Here is a quick fix :
Edit your /lib/init/initlib.php
Then change :
$tempfile = tempnam(false,'');
To :
$tempfile = @tempnam(false,'');

-----------------------


Si votre page renvoie cette erreur :

Warning: tempnam() function.tempnam: open_basedir restriction in effect. File() is not within the allowed path(s): (...) in /home/.../public_html/portal/lib/init/initlib.php on line 101


Voici une solution rapide :
Editez votre /lib/init/initlib.php
Et changez :
$tempfile = tempnam(false,'');
Pour :
$tempfile = @tempnam(false,'');

-----------------------


Si tu pgina web muestra el siguiente error :

Warning: tempnam() function.tempnam: open_basedir restriction in effect. File() is not within the allowed path(s): (...) in /home/.../public_html/portal/lib/init/initlib.php on line 101


Aqu exponemos una rpida solucin:

Edita tu /lib/init/initlib.php
Y cambia :
$tempfile = tempnam(false,'');
A :
$tempfile = @tempnam(false,'');
This page has been viewed 5154 times

Return to Search