Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Function ereg_replace() is deprecated


Kasketkarl.nu

Recommended Posts

Posted

Hey, i tried a lots of reading of this error:

Deprecated: Function ereg_replace() is deprecated in includes/functions/general.php on line 57

Deprecated: Function eregi() is deprecated in includes/functions/validations.php on line 55

 

it happens while i press 'continue' / 'send' on the contact_us.php file.. i mean, while someone tryes to send an email, but it does get send...

The lines:

 

Hope someone can help..

 

 function tep_output_string_protected($string) {
   return tep_output_string($string, false, true);
 }

 function tep_sanitize_string($string) {
   $string = ereg_replace(' +', ' ', trim($string));

   return preg_replace("/[<>]/", '_', $string);
 }

Posted

Silas,

 

I know the contribution works, I have it installed on ALL of my carts.

 

Check your edits to ensure they are correct.

 

 

 

Chris

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...