This is a discussion on customers cannot login within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; Hello, I am trying to set up a shop and the latest error to get in my way is Fatal ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| 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);
}
jon |
|
#3
| |||
| |||
| Hi, Thanks so much, it works! I really appreciate your help |
|
#4
| |||
| |||
| cool! I thought it would take more than that to fix it! jon |
|
#5
| |||
| |||
| we've got to have a win sometimes or we'd all give up trying thanks again for the help |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Customers Unable to login | adam71o | osCMax v1.7 Installation | 8 | 04-26-2005 01:57 PM |
| Unable to login using default login | adam71o | osCMax v1.7 Installation | 7 | 04-08-2005 08:27 PM |
| Customer cannot login, redirected back to login page | BHenderson | osCMax v1.7 Installation | 2 | 02-09-2005 08:51 PM |
| Admin Login Problem - my customer can't login, I can | pram0310 | osCMax v1.7 Installation | 2 | 10-29-2004 11:46 AM |
| Well crap... admin login not allowing login-no errors | tauras911 | osCMax v1.7 Installation | 2 | 07-07-2004 12:12 AM |