News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

generatevalidationcode error in Sources/Reminder.php line 150 ?

Started by Sincere, January 04, 2009, 11:32:50 AM

Previous topic - Next topic

Sincere

hello. here is what a user sent me :

QuoteThe 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

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 


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

Sincere

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

greyknight17

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)?

Sincere

Quote from: greyknight17 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)?

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.

Sincere

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

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

Rumbaar

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:
// 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 ]

Sincere

Quote from: Rumbaar 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:
// 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.

Advertisement: