Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5
Author Message
spurtus
Regular
Regular



Joined: May 13, 2006
Posts: 89

PostPosted: Mon Jul 31, 2006 6:58 pm Reply with quote

I have looked all through the threads on the Sql 1064 error, but nothing seems to match this case, so thought I would ask. Here is the error:

Quote:
General Error
Could not obtain moderator status

DEBUG MODE

SQL Error : 1064 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 ') AND aa.group_id = ug.group_id AND aa.auth_mod = 1 GROUP BY ug.use' at line 3

SELECT ug.user_id, COUNT(auth_mod) AS is_auth_mod FROM nuke_bbauth_access aa, nuke_bbuser_group ug WHERE ug.user_id IN () AND aa.group_id = ug.group_id AND aa.auth_mod = 1 GROUP BY ug.user_id

Line : 530
File : admin_ug_auth.php


I get this error when I am trying to make a member of my site a moderator for a specific forum. I can make ANYONE ELSE a moderator of that forum, just not this one guy. Is there anything magic in this error that may pinpoint me to a "why" this is happening? Is it a data integrity issue, possibly, in the DB?

Note: I cannot make this person a moderator of ANY forum...without same error.

Thanks for any help you can give me.

Spurt
 
View user's profile Send private message Yahoo Messenger
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Mon Jul 31, 2006 7:09 pm Reply with quote

The problem is that there is nothing in the IN clause:
Code:
...IN ()...

Not sure why that's the case - have you defined any groups? Assigned any users to groups?

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Aug 13, 2006 9:02 am Reply with quote

The fixgroup script will fix this issue

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Doulos
Life Cycles Becoming CPU Cycles



Joined: Jun 06, 2005
Posts: 732

PostPosted: Wed Sep 13, 2006 9:01 pm Reply with quote

The fixgroup link to NukeFixes is not active. Any other place to get this fix?
 
View user's profile Send private message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Thu Sep 14, 2006 7:17 am Reply with quote

I had this error on line 530 in admin_ug_auth.php too and its fixed.

Check this: http://www.ravenphpscripts.com/postt9434.html
 
View user's profile Send private message
Doulos







PostPosted: Thu Sep 14, 2006 8:17 pm Reply with quote

A couple of the groups had user 5 as the moderator. I changed them to 2 (me) and still get the following error when I try to change the permissions of users:
Quote:
Could not obtain moderator status

DEBUG MODE

SQL Error : 1064 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 ') AND aa.group_id = ug.group_id AND aa.auth_mod = 1 GROUP BY ug.use' at line 3

SELECT ug.user_id, COUNT(auth_mod) AS is_auth_mod FROM nuke_bbauth_access aa, nuke_bbuser_group ug WHERE ug.user_id IN () AND aa.group_id = ug.group_id AND aa.auth_mod = 1 GROUP BY ug.user_id

Line : 530
File : admin_ug_auth.php

The weird thing is that if I change the users permissions before I add them to a group everything works fine. If I add them to a group and then try to change the users permissions I get the above error. Also, I tried removing the user from the group and then set the user permissions - but I still get the error. Sad Getting frustrated.

I guess I don't understand what it is you are saying I need to do, Suzanne.
 
Susann







PostPosted: Fri Sep 15, 2006 8:23 am Reply with quote

Because the error is known since 2005 I believe there are several places to download the fixgroup zip.
I did´t use the zip. I fixed my different group errors long time ago deleted some old groups, added moderators through the administration changed the number in the database table etc.
Maybe this is interesting:

http://www.freephpnukehosting.com/modules.php?name=Forums&file=viewtopic&p=216
 
Doulos







PostPosted: Fri Sep 15, 2006 3:04 pm Reply with quote

Is this issue something that would be fixed with an upgrade to RN 20202? (currently using RN76 or 1.5 not sure which)
 
Susann







PostPosted: Fri Sep 15, 2006 4:44 pm Reply with quote

I thought you are using 7.5. In the newest release of RavenNuke are several fixes
from Evaders and Montego but in 2.02.02 I had these errors with the group moderator.
Did you tried to solve this with the fix in modules/Forums/admin/admin_ug_auth.php:

http://www.futurenuke.com/modules.php?name=Forums&file=printview&t=1346&start=0

But make a backup !
 
Doulos







PostPosted: Fri Sep 15, 2006 11:11 pm Reply with quote

Oh sorry I thought I put that in my post....guess not. I suppose that is what the "Preview" button is for.

I used the fix presented here.... Only registered users can see links on this board! Get registered or login!

The first set of changes were already in place. I then did the fixgroups.php thingy and now it works. Thanks.
 
ccac
Hangin' Around



Joined: May 23, 2006
Posts: 40

PostPosted: Wed Sep 27, 2006 10:32 pm Reply with quote

Quote:

I used the fix presented here....http://www.karakas-online.de/forum/viewtopic.php?t=3264


Is this also the fix for RavenNuke 7.6 2.02.02 ?

I dont want to screw anything up...


Thanks!!
 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Thu Sep 28, 2006 5:42 am Reply with quote

Yes, it is the same fix. We have modified the installation process within RN 2.10.00 from '5' to '2' as well.

Evaders, do you recall how this issue was originally introduced? Is it only an issue with the core nuke SQL file or is there also a code change needed somewhere to ensure that after setup, this doesn't happen again?

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
evaders99







PostPosted: Fri Sep 29, 2006 12:18 pm Reply with quote

I believe it came from the core Nuke SQL file.
The other issue is that older phpNuke systems did not have an INSERT for the groups table when an account was created. Thus the forums cannot set any special permissions to them. Essentially the entire permissions in phpBB for groups and users runs the same way
 
montego







PostPosted: Fri Sep 29, 2006 6:22 pm Reply with quote

Evaders, would you please look at fkelly's thread in the private RN 2.10.00 forum related to the upgrading of the DB and let him know to do to fix this for folks upgrading from 2.02.02 to 2.10.00? Thanks!
 
ccac







PostPosted: Wed Nov 29, 2006 6:44 pm Reply with quote

worked for me - thanks!
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.5

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©