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

Smarty Error

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-27-2003, 10:21 AM
 
jf Designs jf Designs is offline
 

Member
  
Join Date: Oct 2002
Location: Florida
Posts: 16
 

Default Smarty Error

My server recently suffered a crash. I was fixing files on the server and appartently have reconfigured things incorrectly in some way. This may have something to do with file permissions or something, I'm not sure at all since I don't fully grasp the smarty engine.

I modified the cart.tpl file and the changes do not appear. I get the Smart error as follows:
"Warning: Smarty error: problem writing '../templates_c/%%-20/%%-2087024569/cart.tpl.php.' in /hsphere/local/home/jfdesign/fagers-store.com/xcart/Smarty-2.3.0/Smarty.class.php on line 589"

I have no idea what the problem is suddenly. Though my hosting company suffered a crash of their hard drive and restored everything to a new drive.

As the example you can go to http://www.fagers-store.com/xcart/customer/cart.php

It seems that for anything I edit in Dreamweave and then FTP to the live site, I receive this error whenever viewing that template.

Can you please point me in the right direction?

Thanks,
John
__________________
=================
jf Designs
http://www.jfdesigns.org
Reply With Quote
  #2  
Old 07-27-2003, 10:26 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

it is down to the templates_c folder.

This is where the templates are compiled (c) ready to display in the browser. When you make changes to the templates they are re-compiled in the templates_c folder.

This folder must have a chmod value of 777 to work correctly.

To clear the templates_c folder you would run www.yoursite.com/xcartdir/cleanup.php . This would force x-xcart to re-compile the store with your changes
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 07-27-2003, 10:32 AM
 
jf Designs jf Designs is offline
 

Member
  
Join Date: Oct 2002
Location: Florida
Posts: 16
 

Default Tried both of those things

I ran the cleanup and I made sure the permissions were 777. The error continues.

Anything else it could be?


Thanks,
John
__________________
=================
jf Designs
http://www.jfdesigns.org
Reply With Quote
  #4  
Old 07-27-2003, 10:50 PM
 
Ian Ian is offline
 

Senior Member
  
Join Date: Sep 2002
Location: Adelaide, South Australia
Posts: 127
 

Default

I just had a look at your site John and it said I didn't accept cookies. I ran the cleanup.php and its working fine for me know.

I hope that has sone the trick for you.
Good luck
Ian

Damn cancel that I looked again after I did this and its the smarty error now
__________________
_____________________________________

4.6.6 Gold Plus
and 4.7.4 Gold
MySQL server 5.6.29
PHP 5.5.34
Reply With Quote
  #5  
Old 07-29-2003, 10:07 AM
 
jf Designs jf Designs is offline
 

Member
  
Join Date: Oct 2002
Location: Florida
Posts: 16
 

Default Got it fixed

I'm going to assume that the hosting company, when they did the restore reuploaded backup files to the server and they reset permissions according to God know's what. The file ownership changed apparently though. X-Cart support had me delete everything out of the C-dir whateverucallit folder and things seem to be running fine now.

Thanks for your help guys.

- John
__________________
=================
jf Designs
http://www.jfdesigns.org
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 02:09 PM.

   

 
X-Cart forums © 2001-2020