![]() |
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! |
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.
|
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 |
Re: Smarty error syntax error unrecognized tag
Yes, it is a separate item in the Tools area.
|
Re: Smarty error syntax error unrecognized tag
Thanks for the info.
|
All times are GMT -8. The time now is 11:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.