Quote:
Originally Posted by TalkVirginia
Looks like the extra quotes in the username are causing it. There are 2 places to change that should fix it. To fix this manually, do the following:
1. Open the reminderemail.php file in the {forumroot}/includes/cron folder
2. Scroll down and insert the following code after 361, just before the line where $sql = "INSERT INTO " is getting set:
$username = addslashes($username);
3. Save and close the file.
4. Open the inactivitylog.php file in your admincp folder
5. Scroll down to line 133 and replace it with the following line of code.
$username = stripslashes($log['username']);
That should do it. I'll upload a new zip with this fix this weekend.
|
I'm still getting this error and I believe it is because the value inserted into the database is $this _username and not $username:
Code:
$sql = "INSERT INTO " . TABLE_PREFIX . "inactiveuserlog (username,userid,dateline,validemail,email)
VALUES ('$this_username','$userid','". TIMENOW ."','$valid','$toemail')";
Error:
INSERT INTO inactiveuserlog (username,userid,dateline,validemail,email)
VALUES ('userna' me','xxx','xxxxxxxxxx','x','xxxxxxxxxxxxxxxxx');