Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

%%-XXYY Errors

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
abuzant3d
Smarty n00b


Joined: 23 Jun 2003
Posts: 4
Location: Odessa - Ukraine

PostPosted: Mon Jun 23, 2003 8:35 pm    Post subject: %%-XXYY Errors Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Enquest
Smarty Regular


Joined: 14 May 2003
Posts: 79

PostPosted: Wed Jun 25, 2003 3:04 pm    Post subject: Reply with quote

Your using a Windows machine Sad
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
View user's profile Send private message
abuzant3d
Smarty n00b


Joined: 23 Jun 2003
Posts: 4
Location: Odessa - Ukraine

PostPosted: Wed Jun 25, 2003 5:34 pm    Post subject: OS Limitation ? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Wed Jun 25, 2003 5:43 pm    Post subject: Reply with quote

You need the $compile_dir set to where you want these files to be generated.

Monte
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Jun 25, 2003 6:15 pm    Post subject: Reply with quote

Use absolute paths, that should fix it.
Back to top
View user's profile Send private message
abuzant3d
Smarty n00b


Joined: 23 Jun 2003
Posts: 4
Location: Odessa - Ukraine

PostPosted: Wed Jun 25, 2003 7:01 pm    Post subject: Absolute Paths? Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Jun 25, 2003 11:20 pm    Post subject: Reply with quote

No, I suggest using absolute paths, especially with 2.5.0.

eg:

$this->template_dir = 'c:\\bin\\smarty\\templates';
Back to top
View user's profile Send private message
abuzant3d
Smarty n00b


Joined: 23 Jun 2003
Posts: 4
Location: Odessa - Ukraine

PostPosted: Thu Jun 26, 2003 2:41 am    Post subject: Works Fine For Now... Reply with quote

Shocked
ya i missed up the word...

ty anyway !!
_________________
eReg(c) Internet Services
Ruslan K. Abu Zant
http://ereg.Info/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
JonBoy
Smarty Rookie


Joined: 09 Oct 2003
Posts: 6
Location: Madison, Wisconsin, USA

PostPosted: Thu Oct 09, 2003 6:12 pm    Post subject: I saw cache folders in my root too on Windows 2000 Server. Reply with quote

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
View user's profile Send private message
JonBoy
Smarty Rookie


Joined: 09 Oct 2003
Posts: 6
Location: Madison, Wisconsin, USA

PostPosted: Fri Oct 10, 2003 2:08 pm    Post subject: Whoops - error in my last post! Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP