Advertisement:

Author Topic: generatevalidationcode error in Sources/Reminder.php line 150 ?  (Read 3243 times)

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
hello. here is what a user sent me :

Quote
The message that appears  after I fill my email address (forgot your password) is :

Fatal error: Call to undefined function generatevalidationcode() in /home/talkabo/public_html/forums/Sources/Reminder.php on line 150

anybody has an idea of what should be done ?
my forums are smf 2.0 public beta4 running on the below server

Code: [Select]
Apache version 2.2.10 (Unix)
MySQL version 5.0.51a-community
PHP version 5.2.8
PHP info Click to View
Perl version 5.8.8
Kernel version 2.6.28
cPanel Version 11.23.6-STABLE_27698
Theme rvskinlight 

« Last Edit: January 04, 2009, 11:36:58 AM by Sincere »
Do you need a special mod for your smf forums? contact me for a quote.

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: generatevalidationcode error in Sources/Reminder.php line 150 ?
« Reply #1 on: January 06, 2009, 07:50:44 PM »
 >:( >:( >:( >:( >:( ??? ??? ???
Do you need a special mod for your smf forums? contact me for a quote.

Offline greyknight17

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,890
  • Gender: Male
    • Kevin's Resource Center
Re: generatevalidationcode error in Sources/Reminder.php line 150 ?
« Reply #2 on: January 19, 2009, 12:57:02 AM »
Sincere, sorry for the delay. Is this issue resolved now? If not, is there any related errors in your forum error log?

What mods do you have installed (if any)?

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: generatevalidationcode error in Sources/Reminder.php line 150 ?
« Reply #3 on: January 19, 2009, 08:11:25 AM »
Sincere, sorry for the delay. Is this issue resolved now? If not, is there any related errors in your forum error log?

What mods do you have installed (if any)?

thank you for your kind answer knight.

no it is not resolved.

mods? I am not sure the few mods I tried to install were installed correctly.

I would appreciate it if a decent fine person such as your handsome self would accept to have a look with admin access.

should I pm you that ?
Do you need a special mod for your smf forums? contact me for a quote.

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: generatevalidationcode error in Sources/Reminder.php line 150 ?
« Reply #4 on: January 19, 2009, 02:17:27 PM »
here is more information on that error.

if a user enters an email address that does NOT exist, there is no error. smf correctly reports no username associated with this email 

the error only happens when the user enters an email of a member.......

and I searched in the logs, I could not find anything related to this error

« Last Edit: January 19, 2009, 02:21:37 PM by Sincere »
Do you need a special mod for your smf forums? contact me for a quote.

Offline Rumbaar

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,805
  • Gender: Male
  • Inherent Omniscience
    • Rumbaar.net
Re: generatevalidationcode error in Sources/Reminder.php line 150 ?
« Reply #5 on: January 28, 2009, 04:51:20 PM »
You should be able to upgrade to RC1 by now, but if not can you check your $sources/Subs-Members.php file and at the very end make sure the following code is there:
Code: [Select]
// Generate a random validation code.
function generateValidationCode()
{
global $smcFunc, $modSettings;

$request = $smcFunc['db_query']('get_random_number', '
SELECT RAND()',
array(
)
);

list ($dbRand) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

return substr(preg_replace('/\W/', '', sha1(microtime() . mt_rand() . $dbRand . $modSettings['rand_seed'])), 0, 10);
}
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Offline Sincere

  • Full Member
  • ***
  • Posts: 631
Re: generatevalidationcode error in Sources/Reminder.php line 150 ?
« Reply #6 on: January 28, 2009, 05:30:52 PM »
You should be able to upgrade to RC1 by now, but if not can you check your $sources/Subs-Members.php file and at the very end make sure the following code is there:
Code: [Select]
// Generate a random validation code.
function generateValidationCode()
{
global $smcFunc, $modSettings;

$request = $smcFunc['db_query']('get_random_number', '
SELECT RAND()',
array(
)
);

list ($dbRand) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

return substr(preg_replace('/\W/', '', sha1(microtime() . mt_rand() . $dbRand . $modSettings['rand_seed'])), 0, 10);
}

thank you very much for this kind help

Indeed, I have just checked, updating to smf2.0 RC1 did solve this issue for me

Do you need a special mod for your smf forums? contact me for a quote.