Click to See Complete Forum and Search --> : PHP error message.
tendemo
Sep 3rd, 2008, 12:42 PM
Hi I am getting the below error message, how can I get around it ? Thanks
Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a1571937/public_html/smarty/core/core.get_include_path.php on line 34
dclamp
Sep 3rd, 2008, 06:42 PM
this path:
/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html
doesn't look right.
You probably don't have access to that directory. Looks like it is out site of the www directory.
tendemo
Sep 4th, 2008, 01:30 AM
How can I sort out which piece of code is causing this so I may either adjust or remove ? Thanks
visualAd
Sep 4th, 2008, 01:55 AM
clamp, please check your facts before posting.
The open_basedir directive which you will find in your httpd.conf or php.ini defines which directories scripts are allowed to access files in. In your case:
/home/:/usr/lib/php:/tmp
Thats:
/home/
/usr/lib/php
/tmp
You need to make sure the file which is being opened / included is in one of these paths. If it is not which it isn't in your case then you will get the above error. To fix this you either need to move the script or file you are trying to open to one of those paths or change you php.ini and add that path (which indecently is perfectly ok) to your open_basedir directive.
dclamp
Sep 4th, 2008, 07:36 PM
clamp, please check your facts before posting.
i gave no facts, only opinions :wave:
penagate
Sep 5th, 2008, 08:12 AM
This isn't the place for opinions.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.