|
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 |
Akari Smarty n00b
Joined: 09 Oct 2003 Posts: 4
|
Posted: Thu Oct 09, 2003 6:09 pm Post subject: Problems setting up... |
|
|
Please, someone give me a hand here, I tried to install Smarty on my local machine and it's always giving me the user error excuse. A directory cannot be created.
I have the following setup:
I'm working on a PHP-Nuke module. When executing a nuke module the cwd is the root of the site and all links and such are relative. Here is what the directories are. All directories and files are currently world-writeable so permission problems are not possibly an issue.
Basedir: /var/www/html/
Smarty: modules/Anime_Database/Smarty
Cache: tmp/cache
Configs: tmp/configs
template_c: tmp/template_c
Cache, Configs and template_c are chmod 777 just to be sure. I can create files there with fopen() as well. The result is:
Code: | Warning: Smarty error: problem creating directory "/%%-25" in /var/www/html/modules/Anime_Database/Smarty/Smarty.class.php on line 1042
Warning: Smarty error: problem writing temporary file '/%%-25/%%-253062835/3f85a03d80e57' in /var/www/html/modules/Anime_Database/Smarty/Smarty.class.php on line 1042
Warning: unable to create file /%%-25/%%-253062835/basic_details.tpl.php because No such file or directory in /var/www/html/modules/Anime_Database/Smarty/Smarty.class.php on line 1575
Warning: Failed opening '/%%-25/%%-253062835/basic_details.tpl.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/modules/Anime_Database/Smarty/Smarty.class.php on line 1158
Warning: Smarty error: unable to read template resource: "file:modules/Anime_Database/Smarty/debug.tpl" in /var/www/html/modules/Anime_Database/Smarty/Smarty.class.php on line 1042 |
This is creepy since the debug.tpl file exists at exact this location (world-accessible) and getcwd() correctly gives me the html directory. Can anyone please reach me a hand and tell me how to set up the Smarty.class.php file to work with relative directories?
Sorry for the trouble...
~Akari |
|
Back to top |
|
Jong Smarty n00b
Joined: 25 Sep 2003 Posts: 4
|
Posted: Mon Oct 13, 2003 4:23 am Post subject: |
|
|
Hmm, maybe a hint, maybe not, but I've been bugging around with a setup, and got similar warning messages as you. My solution was
Code: | use_sub_dirs = false; |
regarding safe-mode restrictions. Check your settings for safe-mode, that's my hint. |
|
Back to top |
|
Akari Smarty n00b
Joined: 09 Oct 2003 Posts: 4
|
Posted: Mon Oct 13, 2003 5:41 pm Post subject: |
|
|
Safe-mode is turned off (and I will change my ISP immediately when they happen to turn it on)
Your setting turns off the directory creation errors but not the file, it says "Warning: unable to create file //%%-253062835/basic_details.tpl.php[...]" |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Oct 13, 2003 7:33 pm Post subject: |
|
|
try to supply a full path as $smarty->compile_dir. |
|
Back to top |
|
Akari Smarty n00b
Joined: 09 Oct 2003 Posts: 4
|
Posted: Mon Oct 13, 2003 9:33 pm Post subject: |
|
|
messju wrote: | try to supply a full path as $smarty->compile_dir. |
Same error as before. Getting the version from your revision thingy was a solution. But it's not overwhelming yet.
~Akari |
|
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
|