Search

 

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 5415 times

Other questions in this category Other questions in this category
1. HTTP Internal server Error 500 (viewed 6206 times)
2. Would you help me move my account to your server ? (viewed 6127 times)
3. Blog : block the referer spammers ! Bloquez les spammeurs de referers ! Bloquea a los spammers molestos! (viewed 5788 times)
4. What are Addon/Parked Domains ? Que sont les Domaines Additionnels/Parks ? Qu son los dominios Aparcados/Adicionales? (viewed 5394 times)
5. HTTP error 403 (viewed 5383 times)
6. Preview your website before DNS propagation - Afficher votre site avant la propagation des DNS - Ver tu web antes de la propagacin DNS (viewed 5232 times)
7. Backups - Sauvegardes - Copias de seguridad (viewed 5060 times)
8. Spam filters - Filtres anti-spam - Filtros anti-spam (viewed 5022 times)
9. I still have plenty of space / transfer and my WHM won't let me create any new account ? Il me reste plein d'espace / transfert et mon WHM ne me permet pas de crer de nouveau compte ? An tengo suficiente espacio/transferencia y my WHM no me deja crear nuevas cuentas ? (viewed 4904 times)
10. Do you limit Mysql connections ? Limitez-vous les connexions Mysql ? Limitan el nmero de conexiones Mysql ? (viewed 2210 times)

Return to Search

Back to Top