
Originally Posted by
gvpm
smoge i added this to my script
i think its around line 509:
PHP Code:
if ($_POST['NewProfile'] != 'YES')
{
if ($p_arr['NickName'] != $p_arr_new['NickName'])
{
modules_update($ID, '', $p_arr['NickName']);
}
else
{
modules_update($ID);
}
unlink($sUserDataFile);
createUserDataFile( $ID );
}
i had the datafile get deleted and recreate itself because i notice the only time the datafile gets updated is when you log in again so i guess you can try that.(im using 5.6)
This will improve things a little, I applied above fix and I was getting an error when using profile_edit.php as the admin to edit any pofile or approve it if there was no user data file in the server, it was just an error shown at my error log stating sometimes that there was no file to delete (unlink), as far as I can see, everything works as it should, just wanted to stop receiving that error log message.
In the code above:
Replace:
Code:
unlink($sUserDataFile);
createUserDataFile( $ID );
With:
Code:
if ( file_exists( $sUserDataFile ) )
{
unlink($sUserDataFile);
createUserDataFile( $ID );
}
Take care.
Bookmarks