![]() |
Could you paste the whole code? You probably made a typo somewhere.
|
Quote:
Code:
if($vbulletin->options['loginlog_enable'] && !is_member_of($vbulletin->userinfo, explode(',', $vbulletin->options['loginlog_exclgroups']))){ |
That looks fine and works on my local test forum.
The error happens because the MySQL connection resource isn't set, which is really odd. |
So, what to do now. I actually wanted to remove the logs taken with cf ips.
|
Perfect! Exactly what I needed.
Thank you so much. |
I have the same error. Fix ?
Database error in vBulletin 4.2.2: Invalid SQL: ; MySQL Error : Error Number : 0 Request Date : Sunday, January 14th 2017 @ 02:20:47 PM Error Date : Sunday, January 14th 2017 @ 02:20:47 PM Script : http://www.domain.com/admincp/loginlog.php?do=purgenow Referrer : http://www.domain.com/admincp/loginlog.php?do=purge IP Address : xxx.xxx.xx.xx Username : pps Classname : vB_Database MySQL Version : |
I'm having the same issue, anyone with a fix?
|
Same error for me (upon purge attempts):
Quote:
|
OK, I believe I've fixed this. Here is what I did...
I changed (line 41) of the purgenow script: Code:
$db->execute_query("TRUNCATE TABLE " . TABLE_PREFIX . "loginlog"); to this: Code:
$db->query(' TRUNCATE TABLE ' . TABLE_PREFIX . 'loginlog'); Basically all you should need to do is change execute_query to query and add a space before and after TRUNCATE TABLE, after which the purges should start working correctly. In any case, this fix seems to work perfectly here. Now every time I execute a purge, the message "The login log has been purged" is properly displayed and all login entries are gone. |
All times are GMT. The time now is 04:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|