Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PLEASE HELP! Fatal error: Call to undefined function tep_convert_linefeeds()


mbb

Recommended Posts

Posted

Hi all,

 

I was wondering if anybody could help me. I have a problem when registering on my site, the registration form works ok and updates the db when continue is clicked, but then the page that appears after it is saying:

 

Fatal error: Call to undefined function tep_convert_linefeeds() in /includes/classes/email.php on line 149

 

I have not edited the email.php page and have even downloaded a fresh copy and they are exactly the same, so not sure where the problem is.

 

Thanks in advance

Matthew

Posted

missing the tep_convert_linefeeds function, simply to through your unsuccessful installation of feeds module!

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted

open includes/functions/general.php

 

around line 1300 look for :

 

// nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n)
 function tep_convert_linefeeds($from, $to, $string) {
   if ((PHP_VERSION < "4.0.5") && is_array($from)) {
     return ereg_replace('(' . implode('|', $from) . ')', $to, $string);
   } else {
     return str_replace($from, $to, $string);
   }
 }

 

is it there ?

Posted

open includes/functions/general.php

 

around line 1300 look for :

 

// nl2br() prior PHP 4.2.0 did not convert linefeeds on all OSs (it only converted \n)
 function tep_convert_linefeeds($from, $to, $string) {
   if ((PHP_VERSION < "4.0.5") && is_array($from)) {
     return ereg_replace('(' . implode('|', $from) . ')', $to, $string);
   } else {
     return str_replace($from, $to, $string);
   }
 }

 

is it there ?

 

Cheers for the reply

No its not there! Should i insert at the end of general.php?

Posted

yeah stick it at the end before the ?>

 

seems a bit strange as to why it isnt there. did you modify that file before ?

Posted

yeah stick it at the end before the ?>

 

seems a bit strange as to why it isnt there. did you modify that file before ?

 

no have not tried it yet, was going to and then there was a power outage at the datacentre so my site is down. my damn luck, its not gone down at all for ages and then when im trying to do something it goes down. will try it as soon as its back up.

 

and no i havnt modified the file at all so dont know why its not there.

 

Cheers for your help, will post back asap.

Posted

i call that sods law :)

 

let us know how you get on

 

Whey cheers andy, ur a star works great now. Dont know y it was missing!!

Archived

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

×
×
  • Create New...