|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
mischa Smarty Rookie
Joined: 30 Apr 2003 Posts: 19 Location: Suhr, Switzerland
|
Posted: Wed Apr 30, 2003 11:03 am Post subject: Safe Mode, Smarty, PEAR |
|
|
Hi
I've the following error-message:
Quote: |
Warning: file_exists() [function.file-exists]: SAFE MODE Restriction in effect. The script whose uid is 10080 is not allowed to access /usr/share/pear owned by uid 0 in /home/httpd/vhosts/lan-e.ch/httpdocs/include/smarty/Smarty.class.php on line 2691
|
I don't use pear from a Smarty-Template. Smarty-Version 2.5.0
Does anyone know a solution?
Thanks a lot! |
|
Back to top |
|
AZTEK Smarty Pro
Joined: 16 Apr 2003 Posts: 235 Location: Purdue University
|
Posted: Wed Apr 30, 2003 11:51 am Post subject: |
|
|
This is because Smarty is trying to access the default paths to search for an include. I made a quick fix a while ago, just put:
Code: | ini_set("include_path", "."); |
at the top of your PHP file before you include the Smarty class and it fixed it for me. _________________ "Imagine a school with children that can read and write, but with teachers who cannot, and you have a metaphor of the Information Age in which we live." -Peter Cochrane |
|
Back to top |
|
mischa Smarty Rookie
Joined: 30 Apr 2003 Posts: 19 Location: Suhr, Switzerland
|
Posted: Wed Apr 30, 2003 12:26 pm Post subject: Worked! |
|
|
Thanks, it works great! |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|