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

Can't update templates, changes not sticking

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-25-2004, 10:04 AM
  mida68's Avatar 
mida68 mida68 is offline
 

Senior Member
  
Join Date: May 2004
Location: Temecula, CA
Posts: 104
 

Default Can't update templates, changes not sticking

I've been able to edit my templates before but today, I login, make a change, click on "update" and the admin page reloads back to the previous version like I haven't made any changes at all.

Anyone know why this might happen? It's like my editing ability has been "turned off"

Thanks!
Shelley
__________________
X-Cart 4.2, 4.3
Web Editors: http://www.webeditors.com
Reply With Quote
  #2  
Old 05-25-2004, 10:05 AM
 
Mod King Mod King is offline
 

Senior Member
  
Join Date: May 2004
Posts: 115
 

Default

It may be that you haven't chmodded the folder properly
I think it has to be atleast chmodded to 755
__________________
Mod King
Reply With Quote
  #3  
Old 05-25-2004, 10:13 AM
  mida68's Avatar 
mida68 mida68 is offline
 

Senior Member
  
Join Date: May 2004
Location: Temecula, CA
Posts: 104
 

Default Nope, but thanks any other ideas??

Nope, It was 777, I changed it to 755. Have no idea how it could have become un-chmodded

It's the weirdest thing. I'm on my admin page and after trying to edit the advanced pages, decided to try the basic templates.

I'm just taking off a <blockquote> tag to see if I can make a change stick and nope, it just reappears after I click on "update"

Hmmmmmm??
__________________
X-Cart 4.2, 4.3
Web Editors: http://www.webeditors.com
Reply With Quote
  #4  
Old 05-27-2004, 01:59 PM
  velander's Avatar 
velander velander is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Portland, OR USA
Posts: 62
 

Default Template changes are not showing up.

I am having the same problem. This morning I was making changes and seeing them appear on the server. Then all at once my changes were being ignored.

I am making changes to customer/main/products.tpl and I know the changes are being updated on the server, but X-Cart loads the old version every time. If I delete the template from the server, then the products stop showing up, but when I put the new version back on the server, the old version is used again.

Does Smarty cache the templates somehow? Where is it getting the old version?

__________________
Eric Vaterlaus
http://www.co-operations.com/
21 X-Cart Gold Installations on Linux
Versions 3.5.4 - 4.2.0
Reply With Quote
  #5  
Old 05-27-2004, 02:14 PM
 
TonyD TonyD is offline
 

eXpert
  
Join Date: Mar 2004
Location: Okc
Posts: 288
 

Default

If "$admin_safe_mode" is set to "true" then template editor is write-protected.
Reply With Quote
  #6  
Old 05-27-2004, 03:19 PM
  velander's Avatar 
velander velander is offline
 

Advanced Member
  
Join Date: Feb 2003
Location: Portland, OR USA
Posts: 62
 

Default Template cache problem

I found out why my template changes were not showing up.

There is a directory template_c that has a cached version of the templates. I checked the setting for my smarty cache in smarty.php, and it is set to have cache off, but maybe it is being turned on by X-Cart.

When I deleted the cached version of the template that I was working on, then my changes started to show up again.
__________________
Eric Vaterlaus
http://www.co-operations.com/
21 X-Cart Gold Installations on Linux
Versions 3.5.4 - 4.2.0
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:19 PM.

   

 
X-Cart forums © 2001-2020