Re: PunBB 1.2 Beta
Kaboon wrote:Verify registrations - Yes
Login attempt after a new registration will results in (for me):
An error was encountered
Error: Unable to update user status.Works for me. Enable DEBUG mode and try again. There's a sticky topic describing how in the troubleshooting forums.
Hehehe, sorry to bother you that much. I got a bit excited so I forgot to look for manuals and stuff.
Anyway, this is what I get when the user tries to log-in for the first time:
File: /var/www/html/forums/login.php
Line: 71PunBB reported: Unable to update user status
Database reported: You have an error in your SQL syntax near 'WHERE id=157' at line 1 (Errno: 1064)
[edit]
I changed:
$db->query('UPDATE '.$db->prefix.'users SET group_id='.$pun_config['o_default_user_group'].' WHERE id='.$user_id) or error('Unable to update user status', __FILE__, __LINE__, $db->error());
Into:
$db->query('UPDATE '.$db->prefix.'users SET group_id=\''.$pun_config['o_default_user_group'].'\' WHERE id='.$user_id) or error('Unable to update user status', __FILE__, __LINE__, $db->error());
Which made it kinda work. But that results in a:
Notice: Undefined index: o_default_user_group in /var/www/html/forums/login.php on line 71
On the next page. (also brings me back to the 1st step of registering and user stays in "Not verified" state but is able to log-in)