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

Smarty error syntax error unrecognized tag

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-18-2011, 01:04 PM
 
FineDesign FineDesign is offline
 

Member
  
Join Date: Dec 2010
Posts: 28
 

Default 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
Reply With Quote
  #2  
Old 05-18-2011, 02:03 PM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default 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.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #3  
Old 05-19-2011, 11:33 AM
 
FineDesign FineDesign is offline
 

Member
  
Join Date: Dec 2010
Posts: 28
 

Default 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
Reply With Quote
  #4  
Old 05-19-2011, 11:36 AM
  cherie's Avatar 
cherie cherie is online now
 

X-Wizard
  
Join Date: May 2003
Location: USA
Posts: 1,534
 

Default Re: Smarty error syntax error unrecognized tag

Yes, it is a separate item in the Tools area.
__________________
redlimeweb.com
custom mods and design integration
4.7 linux
Reply With Quote
  #5  
Old 05-19-2011, 11:41 AM
 
FineDesign FineDesign is offline
 

Member
  
Join Date: Dec 2010
Posts: 28
 

Default Re: Smarty error syntax error unrecognized tag

Thanks for the info.
__________________
4.4.1
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 10:56 AM.

   

 
X-Cart forums © 2001-2020