General error

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   General error
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
I get this when i save the config in the admin panel in the forums...how can i correct this

Failed to update general configuration for ('points_user_group_auth_ids', '');

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 'points_system_version', '2.0.0');'

UPDATE nuke_bbconfig SET config_value = '('points_system_version', '2.0.0');' WHERE config_name = '('points_user_group_auth_ids', '');'

Line : 99
File : C:\web\gfyclan\modules\Forums\admin\admin_board.php



Again sorry about all the post i have been making latley..Im still a newb trying to learn...thx for all your help.


Back to top Reply with quote
#2   re: General error
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
SAve as fixit.php and upload to your modules/Forums/ folder then go to it in your browser.
[ Register or login to view links on this board. ]

<?php
//*****  check users and user groups ****//

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
    die ("You can't access this file directly...");
}
$module_name = basename(dirname(__FILE__));
require("modules/Forums/nukebb.php");

define('IN_PHPBB', true);
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include('includes/functions_search.'.$phpEx);

// Start session management
$userdata = session_pagestart($user_ip, PAGE_SEARCH, $nukeuser);
init_userprefs($userdata);
// End session management

$sql = "SELECT user_id, username
    FROM " . USERS_TABLE ."
    WHERE user_id > 0";
if ( !($result = $db->sql_query($sql)) )
{
    message_die(GENERAL_ERROR, 'Could not obtain user list', '', __LINE__, __FILE__, $sql);
}

$liste ='';
while ( $row = $db->sql_fetchrow($result) )
{
   $username = $row['username'];
   $user_id = $row['user_id'];
   $usergroup = '';
   
   $sql1 = "SELECT ug.group_id
          FROM " . USER_GROUP_TABLE ." ug, ". GROUPS_TABLE. " g 
          WHERE ug.user_id = $user_id
            AND ug.group_id = g.group_id
            AND g.group_single_user  = 1
            ";
             
   if ( ($result1 = $db->sql_query($sql1)) )
   {
       $row1 = $db->sql_fetchrow($result1);
          $usergroup =( ( $row1['group_id'] != '' ) ? $row1['group_id'] : 'User has no user group'.$row1 );
         
   }

          if (!($row1['group_id'] != ''))
          {
             
         $sql2 = "SELECT MAX(group_id) AS total
            FROM " . GROUPS_TABLE;
         if ( !($result2 = $db->sql_query($sql2)) )
         {
            message_die(GENERAL_ERROR, 'Could not obtain next group_id information', '', __LINE__, __FILE__, $sq2l);
         }

         if ( !($row2 = $db->sql_fetchrow($result2)) )
         {
            message_die(GENERAL_ERROR, 'Could not obtain next group_id information', '', __LINE__, __FILE__, $sql2);
         }
         $group_id = $row2['total'] + 1;
         
         
         $sql3 = "INSERT INTO " . GROUPS_TABLE . " (group_id, group_name, group_description, group_single_user, group_moderator)
            VALUES ($group_id, '', 'Personal User', 1, 0)";
         if ( !($result3 = $db->sql_query($sql3, BEGIN_TRANSACTION)) )
         {
            message_die(GENERAL_ERROR, 'Could not insert data into groups table', '', __LINE__, __FILE__, $sql3);
         }

         $sql4 = "INSERT INTO " . USER_GROUP_TABLE . " (user_id, group_id, user_pending)
            VALUES ($user_id, $group_id, 0)";
         if( !($result4 = $db->sql_query($sql4, END_TRANSACTION)) )
         {
            message_die(GENERAL_ERROR, 'Could not insert data into user_group table', '', __LINE__, __FILE__, $sql4);
         }

             
             $usergroup = $usergroup.', adding user group '.$group_id;
          }


   $liste .= ( ( $liste != '' ) ? '<br> ' : '' ) . $username.' <b>'.$usergroup.'</b>';
}

message_die(GENERAL_MESSAGE,'Users:<br>'.$liste);

?>




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: General error
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
i did it and it added users to gropus but i still have the error.any other idea?



Back to top Reply with quote
#4   re: General error
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   
i jsut started getting this error on the index of my forums
Parse error: parse error, unexpected $end in C:\web\gfyclan\includes\template.php(164) : eval()'d code on line 70



Back to top Reply with quote
#5   Re: re: General error
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   


Originally posted by Killa @ Mon Apr 19, 2004 4:07 am:

i jsut started getting this error on the index of my forums
Parse error: parse error, unexpected $end in C:\web\gfyclan\includes\template.php(164) : eval()'d code on line 70



i fixed that but i still have the original error in this post ...


Back to top Reply with quote
#6   Re: General error
Killa
CZ Super Newbie
Killa has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Gender: Male
Status: Offline
Joined: Apr 02, 2004
0.01 posts per day
Posts: 65
Points: 4,417
   


Originally posted by Killa @ Fri Apr 16, 2004 10:41 pm:

I get this when i save the config in the admin panel in the forums...how can i correct this

Failed to update general configuration for ('points_user_group_auth_ids', '');

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 'points_system_version', '2.0.0');'

UPDATE nuke_bbconfig SET config_value = '('points_system_version', '2.0.0');' WHERE config_name = '('points_user_group_auth_ids', '');'

Line : 99
File : C:\web\gfyclan\modules\Forums\admin\admin_board.php



Again sorry about all the post i have been making latley..Im still a newb trying to learn...thx for all your help.



Any idea???


Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum