| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Warning: Unknown modifier '/' (error someone please help me) | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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? |
|||||||
#2
|
|||||||||
|
|||||||||
![]() 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. ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Problem solved. Special thanks to Shan.
|
|||||||
|
|||
X-Cart forums © 2001-2020
|