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 página 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 rápida solución:

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

Other questions in this category Other questions in this category
1. HTTP Internal server Error 500 (viewed 7344 times)
2. Would you help me move my account to your server ? (viewed 7122 times)
3. Blog : block the referer spammers ! Bloquez les spammeurs de referers ! Bloquea a los spammers molestos! (viewed 6880 times)
4. HTTP error 403 (viewed 6797 times)
5. What are Addon/Parked Domains ? Que sont les Domaines Additionnels/Parkés ? ¿Qué son los dominios Aparcados/Adicionales? (viewed 6443 times)
6. Preview your website before DNS propagation - Afficher votre site avant la propagation des DNS - Ver tu web antes de la propagación DNS (viewed 6272 times)
7. Backups - Sauvegardes - Copias de seguridad (viewed 6073 times)
8. Spam filters - Filtres anti-spam - Filtros anti-spam (viewed 6024 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 créer de nouveau compte ? Aún tengo suficiente espacio/transferencia y my WHM no me deja crear nuevas cuentas ? (viewed 5533 times)
10. Do you limit Mysql connections ? Limitez-vous les connexions Mysql ? ¿Limitan el número de conexiones Mysql ? (viewed 2703 times)

Return to Search

Back to Top