View previous topic :: View next topic |
Author |
Message |
abuzant3d Smarty n00b
Joined: 23 Jun 2003 Posts: 4 Location: Odessa - Ukraine
|
Posted: Mon Jun 23, 2003 8:35 pm Post subject: %%-XXYY Errors |
|
|
Hi Everybody,
i am still new so do not shout on me that loud...
i configured every thing as in MAN, i still get %%-ABCDE
empty directories on my root drive, any suggestions or comments ??
e.g)
such directories are created ......
d:\%%789
d:\%%-96
while cache directory is configured as:
d:\engine\cache
thanks in advance _________________ eReg(c) Internet Services
Ruslan K. Abu Zant
http://ereg.Info/ |
|
Back to top |
|
Enquest Smarty Regular
Joined: 14 May 2003 Posts: 79
|
Posted: Wed Jun 25, 2003 3:04 pm Post subject: |
|
|
Your using a Windows machine
Maybe try it under GNU/Linux and put your dir on your test machine in chmod 777 _________________ -----------------------
Learning my self by trying to help others |
|
Back to top |
|
abuzant3d Smarty n00b
Joined: 23 Jun 2003 Posts: 4 Location: Odessa - Ukraine
|
Posted: Wed Jun 25, 2003 5:34 pm Post subject: OS Limitation ? |
|
|
Uhu, i understand but is your answer saying that there
is NO WAY i can make these directories from appearing ??
can we call this a Smarty Capability Bug Or Limitation ?
or am i the only one getting these errors?
BTW)) FAQ and DOC say nothing baout suvh things !! _________________ eReg(c) Internet Services
Ruslan K. Abu Zant
http://ereg.Info/ |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Jun 25, 2003 5:43 pm Post subject: |
|
|
You need the $compile_dir set to where you want these files to be generated.
Monte |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Jun 25, 2003 6:15 pm Post subject: |
|
|
Use absolute paths, that should fix it. |
|
Back to top |
|
abuzant3d Smarty n00b
Joined: 23 Jun 2003 Posts: 4 Location: Odessa - Ukraine
|
Posted: Wed Jun 25, 2003 7:01 pm Post subject: Absolute Paths? |
|
|
What Bout Such Config File,
Code: | class SmartBat extends Smarty
{
function SmartBat()
{
// Class Constructor. These automatically get set with each new instance.
$this->Smarty();
$this->template_dir = 'bin\\smarty\\templates\\';
$this->compile_dir = '\\bin\\smarty\\templates_c\\';
$this->config_dir = '\\bin\\smarty\\templates\\configs\\';
$this->cache_dir = '\\bin\\smarty\\templates\\cache';
$this->caching = false;
$this->assign('sitename','Kharabeesh(c)');
}
} |
_________________ eReg(c) Internet Services
Ruslan K. Abu Zant
http://ereg.Info/ |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Wed Jun 25, 2003 11:20 pm Post subject: |
|
|
No, I suggest using absolute paths, especially with 2.5.0.
eg:
$this->template_dir = 'c:\\bin\\smarty\\templates'; |
|
Back to top |
|
abuzant3d Smarty n00b
Joined: 23 Jun 2003 Posts: 4 Location: Odessa - Ukraine
|
Posted: Thu Jun 26, 2003 2:41 am Post subject: Works Fine For Now... |
|
|
ya i missed up the word...
ty anyway !! _________________ eReg(c) Internet Services
Ruslan K. Abu Zant
http://ereg.Info/ |
|
Back to top |
|
JonBoy Smarty Rookie
Joined: 09 Oct 2003 Posts: 6 Location: Madison, Wisconsin, USA
|
Posted: Thu Oct 09, 2003 6:12 pm Post subject: I saw cache folders in my root too on Windows 2000 Server. |
|
|
I'm running Smarty 2.5 under Perl 5 under IIS 5.0 on Windows 2000 Server.
When I started using caching, I too saw "%%XXXX" folders show up under both my "D:\" folder and my "D:\inetpub\public\phptest\cache" folder. At the time I had NO explicit cache_dir setting.
After reading this thread, I first tried to put in a explicit path for my cache_dir. (Specifically, $smarty->cache_dir="D:\\inetpub\\public\\phptest\smartycache"; ) I then ran a test, but caching worked exactly as it had before; the cache folders were created in both the "D:\" folder and my "D:\inetpub\public\phptest\smartycache" folder.
So...next I explicitly set the value of compile_dir. (Specifically, $smarty->compile_dir="D:\\inetpub\\public\\phptest\smartycache"; ) During my next test, no "%%XXXX" folders appeared in my "D:\" folder, so I think that fixed it.
Long story short, set both $smarty->cache_dir and $smarty->compile_dir to explicit values under Windows!!! |
|
Back to top |
|
JonBoy Smarty Rookie
Joined: 09 Oct 2003 Posts: 6 Location: Madison, Wisconsin, USA
|
Posted: Fri Oct 10, 2003 2:08 pm Post subject: Whoops - error in my last post! |
|
|
Whoops - error in my last post!
Do NOT set the compile and cache folder to the same thing! If you so, you will start to see "unparsed" templates when your cache should really refresh.
Here's the error in my previous post:
$smarty->compile_dir="D:\\inetpub\\public\\phptest\smartycache";
Here's a correct version:
$smarty->compile_dir="D:\\inetpub\\public\\phptest\smartycompile"; |
|
Back to top |
|
|