X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Smarty error when updating categories.tpl via Dreamweaver/FTP (https://forum.x-cart.com/showthread.php?t=32829)

asmusa@pacbell.net 07-26-2007 10:02 PM

Smarty error when updating categories.tpl via Dreamweaver/FTP
 
I am updating the categories.tpl file in Dreamweaver (making just a small change like the cellpadding form "0" to "5" (so I don't add any invalid code) and then I overwrite the categories.tpl file on the server via FTP. After that I always get the same error:

---------
Error: Smarty error: [in customer/categories.tpl line 3]: syntax error:
unrecognized tag 'IF' (Smarty_Compiler.class.php, line 580) in
/home/content/a/s/m/asmusa02/html/store/Smarty-2.6.12/Smarty.class.php

on line 1095
Parse error: parse error, unexpected T_ENDIF in
/home/content/a/s/m/asmusa02/html/store/var/templates_c/%%B5^B54^B
543382C%%categories.tpl.php on line 6

----------
I ran cleanup, deleted the tempates_c directory, Chmod to 777 but nothing helps. The error always persists, All I can do is upload a clean version of the categories.tpl and %%B5^B54^B
543382C%%categories.tpl.php which I had saved before making any changes and then all is working again.

Strangely enough I can update the categories.tpl through the ADMIN | Edit Templates section though without incurring any errors.

Any help would be greatly appreciated!

pauldodman 07-27-2007 12:57 AM

Re: Smarty error when updating categories.tpl via Dreamweaver/FTP
 
Have you got the Dreamweaver Smarty plugin installed?

asmusa@pacbell.net 07-27-2007 07:44 AM

Re: Smarty error when updating categories.tpl via Dreamweaver/FTP
 
Hi Paul - thank you very much for your reply. Yes I have the SmartyDWT version 1.32 installed (Klitsche.de). To make sure I am not adding any new code in an improper place I just tried to change table cellpadding from 0 to 5 which gave me the same error. This is really puzzling. Do you have any suggestions...? Thanks again!


All times are GMT -8. The time now is 06:12 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.