Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Final solution to smarty template_c cache error?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-15-2002, 07:50 AM
 
dsaveall dsaveall is offline
 

Newbie
  
Join Date: Nov 2002
Posts: 8
 

Default Final solution to smarty template_c cache error?

Hi Fellas - I've had the same issues with the template_c directory, all the permissions problems and so forth. I'm not sure how they started for most of you, but for me it just started happening out of nowhere.. Which was a little un-nerving, as I'm getting ready to let this site go live..

Thanks to the forums here i've been able to solve most of the problems.. BUT, after all the fixes that I had to perform there is still a mkdir error on a few templates.. ?

The question that I am posing is - Do we have to create the templates_c directory and ALL the folders that seem to be eventually created - to solve this problem once and for all..?

Thanks for listening - Lots of great info floating around in here, thanks for your help, dss.

Code:
Warning: mkdir() failed (Permission denied) in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 1462

Which of course results in ::

Code:
Warning: Smarty error: problem creating directory "../templates_c/137/1378207580" in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 546 Warning: Smarty error: problem writing '../templates_c/137/1378207580/0.php.' in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 546 Warning: Failed opening '../templates_c/137/1378207580/0.php' for inclusion (include_path='./:/usr/local/lib/php') in /home/ntspro/ntspromedia-www/xcart/Smarty-2.1.1/Smarty.class.php on line 1075
Reply With Quote
  #2  
Old 11-15-2002, 08:33 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
mkdir templates_c; chmod 777; chown nobody.nobody;

tempaltes_c/ is created upon installation however all subdirs are created from the actually Smarty.class template engine, hence the reason chmod 777 and change owner nobody. This way your webserver can write to the directory. If your running apache from another user other than nobody then you'll need to change it to the same permissions as your webserver is running.

http://smarty.php.net/
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 11-18-2002, 12:58 PM
 
dsaveall dsaveall is offline
 

Newbie
  
Join Date: Nov 2002
Posts: 8
 

Default thanks BOOMER

-- that helps... thanks a million... i had renamed the templates_c dir to delete_me and created a new dir called templates_c which i chmod'd to 777 -- BUT the template engine had to still create all the subdirectories which is where i was having the problem... didn't know if i had to go in and create all the sub folders too? i asked my webhost to go in and change the permissions of all the sub directories and that seemed to solve the problem.... thanks again, dss...

p.s. - x-cart said the problem stems from the difference in https and http users.. i need to research exactly what they are talking about.. it makes a little sense but not total sense to me yet.... cheers...
Reply With Quote
  #4  
Old 01-27-2003, 10:46 PM
 
Jeannie Jeannie is offline
 

eXpert
  
Join Date: Sep 2002
Location: Texas
Posts: 257
 

Default

Quote:
p.s. - x-cart said the problem stems from the difference in https and http users..

Could that be the reason for this problem?

v3.3
Registered member logs in - adding item to Wishlist returns Smarty Errors .....for some reason it's going to https on Add to Wishlist.

I put Registering in https so is that affecting the Wishlist somehow?
In test mode right now so using SSL of host not my domain name.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:36 PM.

   

 
X-Cart forums © 2001-2020