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

interesting error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-11-2003, 09:12 AM
 
jcgg jcgg is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 5
 

Default interesting error

Hello,

When I edit main/register.tpl, i keep getting an error on customer/register.php:

Warning: Smarty error: problem writing '../templates_c/%%180/%%1802305980/register.tpl.php.' in /blah/blah/blah/xcart/Smarty-2.3.0/Smarty.class.php

does anyone have any idea what causes that? when I opened the file file in the templates_c folder, i noticed a synax error, fixed it, and the error went away, but the update to register.tpl does not take place. The templates_c folder is set up to permissions 777.

So if I try to edit the template again, I get the same error as above. Any ideas what might be causing that? Thanks!
Reply With Quote
  #2  
Old 08-13-2003, 03:20 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

Have you tried removing templates_c/ and let x-cart/smarty recreate the directory, or issued a clear templates in the summary of the admin?

hht.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 08-15-2003, 05:11 AM
 
jcgg jcgg is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 5
 

Default

Thank You Boomer,

I did try deleting the templates_c folder, and got a bunch of errors, including this error:

Warning: MkDir failed (Permission denied)

We had changed the permisions for the x-cart folder, is this what could be causing it?

The reason we changed the permissions was because we needed to edit a php file within the include folder, but the user name that owned the files was declared when we set up x-cart.
Reply With Quote
  #4  
Old 08-15-2003, 06:51 AM
 
jcgg jcgg is offline
 

Newbie
  
Join Date: Jul 2003
Posts: 5
 

Default

Good news, the error went away!

After deleting the templates_c folder, I recreated the folder, set chmod to 777, and then refreshed the website. This must have rewrote that cached template that was creating errors. Thanks for your help!
Reply With Quote
  #5  
Old 08-16-2003, 07:15 AM
  HockeyGuy's Avatar 
HockeyGuy HockeyGuy is offline
 

Member
  
Join Date: Dec 2002
Location: Toronto
Posts: 20
 

Default

The same error happened to me when editing templates.

Deleting the templates_c directory as directed above worked for me too.

Good call.
__________________
Jeff Lancaster
_________________


www.frozenpond.com
Live Store 3.2.2
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:31 PM.

   

 
X-Cart forums © 2001-2020