View Single Post
  #1  
Old 04-25-2003, 12:40 PM
 
Jay Jay is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 30
 

Default Warning: Unknown modifier '/' (error someone please help me)

Warning: Unknown modifier '/' in /usr/www/users/dprep/xcart/Smarty-2.3.0/plugins/modifier.regex_replace.php on line 13

I am relatively new to X-cart. Look at the above error message.

I ran CompareIT on the version of subcategories.tpl on the server and on a local copy I have which is original.

here are the differences it found:
First Difference
{if ($navigation_page eq "")||($navigation_page eq "1")}{$current_category.description|regex_replace: "/[\n]/":"
"}

{/if}

One version HAS the backslash \ inside the [n], the other version does not.

Second Difference
{include file="dialog.tpl" title=$current_category.category|regex_replace:"/.*\//":"" content=$smarty.capture.dialog extra="width=100%"}

One version HAS the backslash \ directly before the two //, the other version does not.

I do not think I ever actually made any changes to this section of this .tpl file. When I try copying the other version to the server, I still get the error message. It's Friday afternoon and I think X-Cart is gone until Tuesday... can someone help?
Reply With Quote