| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Smarty error syntax error unrecognized tag | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Smarty error syntax error unrecognized tag
Hello,
I have a need to modify list2matrix.php (/include/templater/plugins). After making a VERY MINOR change, I get the following error when I view my Home page: ⌠Error: Smarty error: [in customer/main/products_t.tpl line 5]: syntax error: unrecognized tag: list2matrix) assign="products_matrix" assign_width="cell_width" list=$products row_length=$config.Appearance.products_per_row (Smarty_Compiler.class.php, line 446) in /home7/finedes2/public_html/dev/x-cart/include/lib/smarty/Smarty.class.php on line 1093■ After restoring the original list2matrix.php and products_t.tpl files (I restored products_t.tpl because originally I was going to change list2matrix.php to list2matrixc.php - ⌠c■ for custom, but received the same ⌠unrecognized tag■ error - then changed the reference back to list2matrix.php in products_t.tpl) I STILL GET THIS ERROR. I▓m thinking there must be some ⌠Smarty thing■ I▓m missing (maybe anytime you change any Smarty function or modifier it needs to be ⌠reset■ or re-compiled, etc). Any Smarty/X-Cart ⌠gurus■ out there that know what might be causing this? I'm running X-Cart Pro v4.4.2. Thanks!
__________________
4.4.1 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Smarty error syntax error unrecognized tag
Check the name of the file, the name of the function in the file, the permissions of the file, and try Clear Templates/X-Cart Cache and Force Cache Generation.
|
|||||||||
#3
|
|||||||
|
|||||||
Re: Smarty error syntax error unrecognized tag
Hi Cherie, thanks for your response.
Yes, I checked the function name reference and the name in the function and they match - I also ran cleanup.php to clear cache - same error. Today, I reloaded a month-old version of products_t.tpl, and voila, now it works! I think this is one of those "Twilight Zone" things, know what i mean? One question for you - you mentioned "Force Cache Generation" - is that something separate and apart from cleanup.php or is it the same thing? Thanks, David
__________________
4.4.1 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: Smarty error syntax error unrecognized tag
Yes, it is a separate item in the Tools area.
|
|||||||||
#5
|
|||||||
|
|||||||
Re: Smarty error syntax error unrecognized tag
Thanks for the info.
__________________
4.4.1 |
|||||||
|
|||
X-Cart forums © 2001-2020
|