Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 5 of 5

Thread: customers cannot login

  1. #1
    anntaj
    Guest


    Default customers cannot login

    Hello,

    I am trying to set up a shop and the latest error to get in my way is

    Fatal error: Call to undefined function: tep_sanitize_string() in catalog/includes/functions/database.php on line 132

    The error turns up if you try to login in as both a new or returning customer, clicking on advanced search in quick find box also presents the same error. However in the advanced search, a page does display with the error at the bottom of the page.

    I think the error refers to this bit of code, but I have no idea what it is on about

    function tep_db_prepare_input($string) {
    if (is_string($string)) {
    return trim(tep_sanitize_string(stripslashes($string)));
    } elseif (is_array($string)) {
    reset($string);
    while (list($key, $value) = each($string)) {
    $string[$key] = tep_db_prepare_input($value);
    }
    return $string;
    } else {
    return $string;
    }
    }

    would anyone please know how to solve this issue?
    Thanks in advance



    --------------------

    Ann

  2. #2
    jonthewebb
    Guest


    Default

    it means the function tep_sanitize_string() is not present in your system. Either it is there but broken (in which case you'd probably have more errors) or it is missing. Look in includes/functions/general and see if it's there (should be line 56-ish), if not then paste in the following:
    Code:
      function tep_sanitize_string($string) {
        $string = ereg_replace(' +', ' ', trim($string));
    
        return preg_replace("/[<>]/", '_', $string);
      }
    Of course it's possible that if that one's missing, you may have more mising and fixing that error could mean you have a few more to fix too.


    jon

  3. #3
    anntaj
    Guest


    Default thank you

    Hi,

    Thanks so much, it works!

    I really appreciate your help

  4. #4
    jonthewebb
    Guest


    Default

    cool! I thought it would take more than that to fix it!


    jon

  5. #5
    anntaj
    Guest


    Default Gitta win sometimes

    we've got to have a win sometimes or we'd all give up trying

    thanks again for the help

Similar Threads

  1. Customers Unable to login
    By adam71o in forum osCMax v1.7 Installation
    Replies: 8
    Last Post: 04-26-2005, 12:57 PM
  2. Unable to login using default login
    By adam71o in forum osCMax v1.7 Installation
    Replies: 7
    Last Post: 04-08-2005, 07:27 PM
  3. Customer cannot login, redirected back to login page
    By BHenderson in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 02-09-2005, 08:51 PM
  4. Admin Login Problem - my customer can't login, I can
    By pram0310 in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 10-29-2004, 10:46 AM
  5. Well crap... admin login not allowing login-no errors
    By tauras911 in forum osCMax v1.7 Installation
    Replies: 2
    Last Post: 07-06-2004, 11:12 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •