Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

forgotten password page error


Guest

Recommended Posts

if you use the wrong name password_forgotten.php works and tells you that email address is incorrect. If you input your correct email address then you get this:

 

Fatal error: Call to undefined function: tep_convert_linefeeds() in /home/virtual/site8/fst/var/www/html/store/includes/classes/email.php on line 149

 

Now I have replaced the password_forgotten.php, includes/classes/email.php files to no avail, it still comes up with the error. This store is 2.2ms2 and I also have a 2.2rc1 store that the password_forgotten.php works fine.

 

I spent 2 days on Google and this forum and have found a handfull of pages that have the error but with no answers on how to fix the problem.

 

I appreaciate any thoughts this community might have!

Link to comment
Share on other sites

Your password_forgotten.php should have this code on about line 13

 

  require('includes/application_top.php');

/includes/application_top.php should have this code on about line 123:

 

  require(DIR_WS_FUNCTIONS . 'general.php');

In /includes/functions/general.php the function actually gets defined (close to the bottom of the file):

 

// 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);
}
 }

So which link in that chain are you missing?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Your password_forgotten.php should have this code on about line 13

 

  require('includes/application_top.php');

/includes/application_top.php should have this code on about line 123:

 

  require(DIR_WS_FUNCTIONS . 'general.php');

In /includes/functions/general.php the function actually gets defined (close to the bottom of the file):

 

// 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);
}
 }

So which link in that chain are you missing?

:unsure:

WOW!! Germ, it was the /includes/functions/general.php that had been modified with the gift card modification contrib. THe // n12br () etc was completely missing. I added it to the very end and made sure there was no white space between it and the ?> and it works!

 

Thanks so much!

Link to comment
Share on other sites

WOW!! Germ, it was the /includes/functions/general.php that had been modified with the gift card modification contrib. THe // n12br () etc was completely missing. I added it to the very end and made sure there was no white space between it and the ?> and it works!

 

Thanks so much!

 

DAMN! Germ or anyone, I recieved my new password and used it to log in but now I get: Error: No match for E-Mail Address and/or Password.

Link to comment
Share on other sites

Going on the fact that you have already made one error, or was it the contribution, installing the contribution it sounds like you should go back and check/reinstall everything.

 

As you have already found out a small mistake can break the code.

 

If you still get the error repost

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Link to comment
Share on other sites

I went to your site and registered and logged in.

 

Then logged out.

 

I clicked on the "forgotten password" link.

 

After getting the new password in an email I was able to use it to log back in, so I'm assuming you've got everything fixed.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

I went to your site and registered and logged in.

 

Then logged out.

 

I clicked on the "forgotten password" link.

 

After getting the new password in an email I was able to use it to log back in, so I'm assuming you've got everything fixed.

 

Again I must thank you guys for taking the time to look into my problem.

 

I did the contribution in Oct or Nov and it does seem that my only error was the removal of important code.

 

The reason osCommerce wouldn't let me in with the new password was a reading error.

 

I tried a dozen times before I realized that "l5" was not "15". I don't think I would have looked at that closer had Germ not taken the time to verify my problem.

 

My hats off to you Germ!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...