I have installed drupal 6.4 on my new host. Installation went oke, when I finish I get to the first frontpage but in the top i have this warning:
warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/vpz/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/) in /home/vpz/domains/vpzschaatsteam.nl/public_html/includes/file.inc on line 756.
Het bestand kon niet aangemaakt worden.
warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/home/vpz/:/tmp/:/var/www/:/usr/local/lib/php/:/etc/virtual/) in /home/vpz/domains/vpzschaatsteam.nl/public_html/includes/file.inc on line 756.
Het bestand kon niet aangemaakt worden.
The last line is Dutch for: The file cannot be created.
When I click any link on the frontpage (by example: module list) I get a new screen with acces denied and also the above warning. I can also login again on this new screen (weird layout), but that's doesn't help a thing.
I don't get it. The installation went oke but I cannot do anything. Has it something to do with PHP safe mode?
Who can help me?
Comments
extra info
When I click on a link and get the new screen with the warning it also says at the bottum:
You don't have the rights to acces this page.
same and solved
Hallo,
I had the same error message after a difficult update (due to a bad management of the restore function of my hosting)
It was solved in two steps (thanks to various forums)
- in admin/site management/file system check the path for tmp folder (in my case, it was not congruent with the path to the files folder)
- even after correction, the message stays => delete the current tmp folder via ftp, and in admin, save config again: a correct folder is created
I get a second error message regarding the sites/default/languages folder where a file is not correct
- same solution: I delete the folder and save config again: no more error message
hope it helps
Groetens
It worked smoothly!
Hi, thanks for your answer! It worked really nice!
@:)
Luiz Gustavo Aleagi Nunes `°º¤ø,¸¸,
http://aleagi.com | http://eopen.com.br
Desenvolvedor Drupal | Padrões W3C | Acessibilidade
¸,ø¤º°`°º¤ø,¸¸,ø¤º°` Nosce te ipsum...¸,ø¤º°``°º¤ø,¸¸,
additional information
Your solution did not work for me because the folder chosen by drupal as temporary folder is not deletable by me, only by an admin which I am not.
What worked for me is to use one of the folders mentioned as "within allowed paths" in the error message. It still comes up with a message like "Folder XYZ does not exist" (though it does), but the error for tempnam does not appear any longer.
It works!
Thank you!
and +1 from me, another very
and +1 from me, another very related problem ;)
I got it solved too!
http://hanief.blogspot.com/2010/02/drupal-warning-tempnam-functiontempna...
I'm on Drupal 6.15
Thank you hanief84!
Your detailed images REALLY helped me!
Thank you!
--Ted
Thank you!
Your post helped me a lot. Thank you!
Great answer! Thanks a bunch.
Great answer! Thanks a bunch. Worked great for me.
Disable PHP Safe Mode as well
Works like a charm, patch-works. Thank you.
In our case PHP Safe Mode had to be disabled as well.
Thanks!
That solution worked well! Somehow the tmp folder magically disappeared from the website. Once created again in ftp then saved the error messages were still there. Once I refreshed they went away and have not returned.
transfer D7 site to another domain
Hello,
Thanks a lot! I've transfered my drupal 7 site to another domain, and got the same message. Configuring the path of tmp and flushing the cache solved the problem.
Best wishes..
Worked for me, thanks!
Worked for me, thanks!