osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

customers cannot login

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Installation Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-04-2004, 05:45 PM
New Member
 
Join Date: Sep 2004
Location: Australia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anntaj
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
__________________
Ann
www.ramms.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 10-05-2004, 02:45 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-05-2004, 06:45 AM
New Member
 
Join Date: Sep 2004
Location: Australia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anntaj
Default thank you

Hi,

Thanks so much, it works!

I really appreciate your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-09-2004, 07:25 AM
Active Member
 
Join Date: Jan 2003
Location: Surrey, UK
Posts: 126
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jonthewebb
Default

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


jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 10-09-2004, 08:24 AM
New Member
 
Join Date: Sep 2004
Location: Australia
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
anntaj
Default Gitta win sometimes

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

thanks again for the help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 06:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax