X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Warning: Unknown modifier '/' (error someone please help me) (https://forum.x-cart.com/showthread.php?t=2455)

Jay 04-25-2003 12:40 PM

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?

adpboss 04-25-2003 01:42 PM

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.

:)

Jay 04-26-2003 11:58 AM

Problem solved. Special thanks to Shan.


All times are GMT -8. The time now is 04:28 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.