Warning: Smarty error: validate: validator id 'v_URL_BANNED' is not registered

Discussion in 'PHP' started by petyard, May 5, 2007.

  1. #1
    hello,
    Can anyone help me to fix this error in phpld?
    thanks
     
    petyard, May 5, 2007 IP
  2. jmort732

    jmort732 Peon

    Messages:
    543
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am assuming you are getting the error on your submit page, try looking at submit.php

    and look for code similar to:
    
       SmartyValidate :: register_validator('v_URL'           , 'URL', 'isURL'       , false, false, 'trim', 'submit_link');
    [COLOR="Red"]   SmartyValidate :: register_validator('v_URL_BANNED'    , 'URL', 'isDomainBanned', false, false, 'trim', 'submit_link');[/COLOR]
       SmartyValidate :: register_validator('v_URL_ONLINE'    , 'URL', 'isURLOnline' , false, false,  null , 'submit_link');
    
    Code (markup):
    Make Sure that the part highlighted above in Red is in there. I don't think it has to be in that exact spot, but make sure that line is somewhere.

    If that is not it, it would be helpful for you to elaborate on where/how you are seeing this error.

    You also may want to try the forums at PhpLD http://www.phplinkdirectory.com/forum/
     
    jmort732, May 5, 2007 IP
  3. petyard

    petyard Well-Known Member

    Messages:
    2,025
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    185
    #3
    thanks a lot!
    it worked !
     
    petyard, May 5, 2007 IP
  4. jmort732

    jmort732 Peon

    Messages:
    543
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No problem ;)
    Glad to be of help.

    Morty
     
    jmort732, May 5, 2007 IP
    Professional Dude likes this.
  5. CodyRo

    CodyRo Peon

    Messages:
    365
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What is this in reference to? A certain script? I looked up the error on Google and saw a couple scripts that spat it out that were running PHPLD.

    Please confirm and we may be able to help you a bit more :).
     
    CodyRo, May 5, 2007 IP
  6. atrades

    atrades Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi I Tried that but I still get the following on the submit page

    Warning: Smarty error: validate: validator id 'v_URL_BANNED' is not registered. in /#####/local/home/########/############/###/links/libs/smarty/Smarty.class.php on line 1095

    and I get the following further down the page:

    Warning: Smarty error: validate: validator id 'v_OWNER_EMAIL_BANNED' is not registered. in /#####/local/home/########/############/###/links/libs/smarty/Smarty.class.php on line 1095

    some help would really be appreciated

    Atrades
     
    atrades, May 6, 2007 IP
  7. atrades

    atrades Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I have managed to fix the above but now I have fixed this it prodices the the following:

    Notice: SmartyValidate: [is_valid] criteria function 'isUrlBanned' was not found. in in /#####/local/home/########/############/###/links/libs/smarty/SmartyValidate.class.php on line 572
     
    atrades, May 6, 2007 IP
  8. jmort732

    jmort732 Peon

    Messages:
    543
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    0
    #8
    HI atrades,
    Are you sure that the template you are using is compatible with the version of PHPld you are running?

    Try this, if you made the following change, undo it:
    Then in phpld try the default template and see if you get any errors.
    If the default works, then it maybe that you are using the wrong template version.
    If the default doesn't work, then head over to http://www.phplinkdirectory.com/forum/ as you can get support there.
    (This really isn't a tech support type forum).

    Morty
     
    jmort732, May 6, 2007 IP