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

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

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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
  #2  
Old 04-25-2003, 01:42 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

This is a simple idea from a simple man.

If you have not modified this .tpl and you have not upgraded x-cart, why not restore the version in skin1original dir?

Have you compared either your local copy or the live file to the skin1original tpl?

When I have problems, I just take the distribution archive for the version I am running and extract the problem file and re-upload it. That way I know it is

1. compatible with my current version
2. mint
3. as X-Cart intended it.

Remember to backup before you do anything. Oh yeah, make sure that your upload is ASCII. That may help prevent corruption.

Reply With Quote
  #3  
Old 04-26-2003, 11:58 AM
 
Jay Jay is offline
 

Advanced Member
  
Join Date: Mar 2003
Posts: 30
 

Default

Problem solved. Special thanks to Shan.
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 07:33 AM.

   

 
X-Cart forums © 2001-2020