Hello! I found some errore in this mod.
In my case, i was have one moderator which was not moderate at least one forume. This generate a database errore 1064 with your mod enabled.
Code:
SELECT COUNT(*) AS num
FROM moderation AS moderation
INNER JOIN post AS post ON (moderation.primaryid = post.postid)
INNER JOIN thread AS thread ON (post.threadid = thread.threadid)
WHERE type = 'reply' AND forumid IN ( );
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 5
I dont know, this errore of mod, or guilty of admin))) but this point exist.....
Same issue here. Finally got around to shutting off my site and finding this plugin was the cause of my login issues.
In my case, i was have one moderator which was not moderate at least one forum.
Exactly this moderator could not login to forum, because of receiving the DB-error.
So,.. for me, the solution of the problem was - to assign him to moderate any forum section. After this problem has been resolved.
Hello! I found some errore in this mod.
In my case, i was have one moderator which was not moderate at least one forume. This generate a database errore 1064 with your mod enabled.
Code:
SELECT COUNT(*) AS num
FROM moderation AS moderation
INNER JOIN post AS post ON (moderation.primaryid = post.postid)
INNER JOIN thread AS thread ON (post.threadid = thread.threadid)
WHERE type = 'reply' AND forumid IN ( );
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 5
I dont know, this errore of mod, or guilty of admin))) but this point exist.....
Quote:
Originally Posted by My Hattiesburg
I had been using the 4.02 version for awhile and never had any problems (except for the count being wrong but thanks to MarkFL for his help in fixing that) so I decided to install the 4.03 version and got the exact same problem. One of our owners got this error and couldn't log in until I disabled it. Going to go back to a previous version to see if it still works.
Quote:
Originally Posted by Venlaw
Same issue here. Finally got around to shutting off my site and finding this plugin was the cause of my login issues.
Had the same problem on one vBulletin 4.2.3 forum and none of the available versions worked. Uninstalled the product and the login issue disappeared.
Then discovered on another 4.2.3 forum, the product wasn't causing login errors but it simply wasn't working any more.
On a third 4.2.3 forum, the plugin is still working without the login error or any other errors.
The SQL error is because of this part of the query:
Code:
WHERE type = 'reply' AND forumid IN ( );
No forum ID is specified, hence the SQL error.
I have no idea why it works on some forums and not others... I don't have the time to try to track down what causes this behavior.
The best solution currently is simply to uninstall the product.
djbaxter, hazem_aliraqi
Hi! Please read previous messages very carefully! This errore appears when try to login moderator what do not assign at least one forum to moderate it.
Quote:
Originally Posted by Wedframe
Venlaw, My Hattiesburg
Exactly this moderator could not login to forum, because of receiving the DB-error. So,.. for me, the solution of the problem was - to assign him to moderate any forum section. After this problem has been resolved.
Well.. I try to fix the root of the problem. As I understand, DB error occurs only with product by_AUGI.
So... if you have installed product by_AUGI, then in module
"Showing notifications"
found string:
BTW! Idea AUGI was in to regulate notifications to moderators according to theirs permissions. But... this is just dont work. Notification appears no matter whether the right to moderate in this section of the forum or not. As a result, if moderator with limited privileges receives a notification about moderation items in forum the moderator of which he is does not, when viewing the moderation queue it gets an error...
UPDATE! !Previous post not enough correct!
for correct processing of rights of moderation with this hack, we need to this piece of code:
PHP Code:
//visitormessage, groupmessage, picturecomment if(count(array_intersect($fr_itemsToTrack, array('visitormessage', 'groupmessage', 'picturecomment')))>0) { $query = "SELECT COUNT(type) AS total, type FROM ". TABLE_PREFIX ."moderation GROUP BY type"; $fr_result = $vbulletin->db->query_read($query); while($fr_entry = $vbulletin->db->fetch_array($fr_result)) { $fr_modItems[$fr_entry['type']] ['total'] = $fr_entry['total']; } }
rearrange upward, so that it would-be over
PHP Code:
//reply - post if(in_array('reply', $fr_itemsToTrack)) { $query = "SELECT COUNT(*) AS num FROM " . TABLE_PREFIX . "moderation AS moderation INNER JOIN " . TABLE_PREFIX . "post AS post ON (moderation.primaryid = post.postid) INNER JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid) WHERE type = 'reply' ". $m_forums; $fr_result = $vbulletin->db->query_first($query); $fr_modItems['reply'] ['total'] = $fr_result['num']; }
Anf another suggest is for that would not appear a database error when entering/leaving forum by moderator/super-moderator/administrator without any forum moderated, string: