You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 64 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Error when setting Permissions in Nuke 6.9 [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
StarHopper
Nuke Cadet
Nuke Cadet


Joined: Jan 05, 2004
Posts: 3


PostPosted: Mon Jan 05, 2004 12:49 pm Reply with quoteBack to top

When I set user permissions in the forum I get this error.
Any Help would be much appreciated.

Thank you

----------------------------------------------------------------------------------
General Error
Couldn't update private forum permissions

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 ' 1, 1, 1, 1, 1, 0)' at line 2

INSERT INTO nuke_bbauth_access (forum_id, group_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_mod) VALUES (31, , 1, 1, 1, 1, 1, 0)

Line : 425
File : /home/sleuths/public_html/Nuke/modules/Forums/admin/admin_ug_auth.php


------------------------------------------------------------------------------------

I am using PHPnuke 6.9 on Apache sever.


Theme: SpacePilot3K
Operation System Linux
Apache Version 1.3.29 (Unix)
Kernel Version 2.4.20-24.9
Perl Version 5.8.0
PHP Version 4.3.2
MySQL Version 4.0.15-standard





------------------------------------------------------------------------------------

admin_ug_auth.php fuction in question







//
// Checks complete, make updates to DB
//
$delete_sql = '';
while( list($forum_id, $action) = @each($forum_auth_action) )
{
if ( $action == 'delete' )
{
$delete_sql .= ( ( $delete_sql != '' ) ? ', ' : '' ) . $forum_id;
}
else
{
if ( $action == 'insert' )
{
$sql_field = '';
$sql_value = '';
while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) )
{
$sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . $auth_type;
$sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . $value;
}
$sql_field .= ( ( $sql_field != '' ) ? ', ' : '' ) . 'auth_mod';
$sql_value .= ( ( $sql_value != '' ) ? ', ' : '' ) . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]);

$sql = "INSERT INTO " . AUTH_ACCESS_TABLE . " (forum_id, group_id, $sql_field)
VALUES ($forum_id, $group_id, $sql_value)";
}
else
{
$sql_values = '';
while ( list($auth_type, $value) = @each($update_acl_status[$forum_id]) )
{
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . $auth_type . ' = ' . $value;
}
$sql_values .= ( ( $sql_values != '' ) ? ', ' : '' ) . 'auth_mod = ' . ( ( !isset($update_mod_status[$forum_id]) ) ? 0 : $update_mod_status[$forum_id]);

$sql = "UPDATE " . AUTH_ACCESS_TABLE . "
SET $sql_values
WHERE group_id = $group_id
AND forum_id = $forum_id";
}
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update private forum permissions", "", __LINE__, __FILE__, $sql);
}
}
}
Find all posts by StarHopperView user's profileSend private message
sinnersacolyte
Nuke Cadet
Nuke Cadet


Joined: Jan 12, 2004
Posts: 1

Location: Coal Valley, IL

PostPosted: Thu Jan 15, 2004 9:42 am Reply with quoteBack to top

i had the same problem. use this

http://www.nukeresources.com/downloads-file-746.html

_________________
beware my holy fire!

<)SS(>Acolyte


sinnersclan.com
Find all posts by sinnersacolyteView user's profileSend private messageSend e-mailVisit poster's websiteAIM AddressYahoo MessengerICQ Number
egidius
Nuke Soldier
Nuke Soldier


Joined: Dec 23, 2003
Posts: 15


PostPosted: Wed Jan 21, 2004 4:15 pm Reply with quoteBack to top

I had this problem too. Tried the fix and got this:

Couldn't update private forum permissions

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 ' 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)' at line 2

INSERT INTO nuke_bbauth_access (forum_id, group_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_vote, auth_pollcreate, auth_mod) VALUES (6, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)

Line : 385
File : /usr/home/egidius/public_html/home/modules/Forums/admin/admin_ug_auth.php


--------------------------------------
Operating system FreeBSD
Apache version 1.3.29 (Unix)
PHP version 4.3.3
MySQL version 4.0.17
Find all posts by egidiusView user's profileSend private message
biga27110
Nuke Cadet
Nuke Cadet


Joined: Jan 25, 2004
Posts: 7


PostPosted: Sun Jan 25, 2004 2:06 pm Reply with quoteBack to top

egidius wrote:
I had this problem too. Tried the fix and got this:

Couldn't update private forum permissions

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 ' 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)' at line 2

INSERT INTO nuke_bbauth_access (forum_id, group_id, auth_view, auth_read, auth_post, auth_reply, auth_edit, auth_delete, auth_sticky, auth_vote, auth_pollcreate, auth_mod) VALUES (6, , 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)

Line : 385
File : /usr/home/egidius/public_html/home/modules/Forums/admin/admin_ug_auth.php


--------------------------------------
Operating system FreeBSD
Apache version 1.3.29 (Unix)
PHP version 4.3.3
MySQL version 4.0.17


i have this same issue i posted on other places how come we dont get any help?
Find all posts by biga27110View user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.193 Seconds - 151 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::