NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · Nuke Sites · Nuke Skins
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·php nuke background
·Php nuke one click install on plesk 10.4
·Blocks
·vbulletin migration
·How would I add a clickable link in a Modules Block?
·eregi_replace() is deprecated
·Admin Security login jpeg not showing
·PHP-NUKE CALENDAR MODULE. Does it exist?
·God Account
·Security Code showing up for everything EXCEPT new user reg

read more...
Top10 Links
· 1: Nuke Forums
· 2: Windows Installation: PHP
· 3: PHPNukeFiles
· 4: NukeSkins
· 5: Nuke Templates
· 6: EcomJunk
· 7: MDesign
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: door752
Today: 0
Yesterday: 0
Overall: 15848

Visitation:
Guests: 236
Members: 0
Total: 236


You are Anonymous user. You can register for free by clicking here
Sponsor Links
Game Quest Online - Games and more!
Game Quest Online - Games and more!

NukeResources :: View topic - ERROR in phpBB admin - delete a user
NukeResources Forum Index

NukeResources Forum Index -> Bug Fixes -> ERROR in phpBB admin - delete a user
Post new topic  Reply to topic    View previous topic :: View next topic 
ERROR in phpBB admin - delete a user
PostPosted: Sun Jan 30, 2005 6:43 am Reply with quote
Jean-Claude
Resource Seeker
Resource Seeker
 
Joined: Oct 01, 2003
Posts: 11




Ok
It's very simple.
1/ Go to your administration panel and create yourself a new USER (TEST).
2/ After that, this user (TEST) is in the member List and it 's ok, but now go in your phpBB admin panel, part user admin and link management, search this new user (TEST).

3/ Now try in the bottom of the page to delete this user (TEST)
4/ It's Ok TEST is deleted BUT you have an SQL ERROR like this:

Code:
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 '' at line 2

DELETE FROM nuke_bbgroups WHERE group_id =


This is the first part of this bug repport.

The seconde part is:

If this user called TEST have writte posts in the forum, the posts stay in place but the name of the user disapear and there is nothing at the place of is name.

Thank you ChatServ for your attention.
View user's profile Send private message Visit poster's website
PostPosted: Mon Jan 31, 2005 5:08 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




Does the error give you a filename and line on the file?

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Mon Jan 31, 2005 6:49 pm Reply with quote
Jean-Claude
Resource Seeker
Resource Seeker
 
Joined: Oct 01, 2003
Posts: 11




Hello Chatserv, yes like this:

Code:
Line : 192
File : XXX/XXX/XXX/modules/Forums/admin/admin_users.php


Here is the line 192:

Code:
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);


And this line is in:

Code:
                        $sql = "DELETE FROM " . GROUPS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }
View user's profile Send private message Visit poster's website
PostPosted: Mon Jan 31, 2005 7:25 pm Reply with quote
chatserv
Site Admin
Site Admin
 
Joined: Apr 21, 2002
Posts: 1732
Location: Puerto Rico




For whatever reason sometimes users don't have a group_id set which will result in this error, one thing you could try is looking for this block of code in that file:
Code:
                        $sql = "DELETE FROM " . GROUPS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }

                        $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }

Before it add:
Code:
                        if($row_group['group_id'] > 0) {

After it add:
Code:
                        }

_________________
NukeResources | ScriptHeaven
View user's profile Send private message Visit poster's website
PostPosted: Mon Jan 31, 2005 7:45 pm Reply with quote
Jean-Claude
Resource Seeker
Resource Seeker
 
Joined: Oct 01, 2003
Posts: 11




Ok so in HTML/modules/Forums/admin/adlin_users.php

Replace:
Code:

                        $sql = "DELETE FROM " . GROUPS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }

                        $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }


WITH:

Code:
//--> Fix Chat Serv - 01/02/2005 00:44
if($row_group['group_id'] > 0) {
   
                        $sql = "DELETE FROM " . GROUPS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }

                        $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
                                WHERE group_id = " . $row['group_id'];
                        if( !$db->sql_query($sql) )
                        {
                                message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
                        }
                       
}
//--> Fix ChatServ - 01/02/2005 00:44


I have test it, and it's ok Now.
You can move it to bug fixes Now Wink
Thank you good job
View user's profile Send private message Visit poster's website
ERROR in phpBB admin - delete a user
 NukeResources Forum Index -> Bug Fixes
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 89 unique hit(s) in the past 24 hours.
Forums ©
Download the Best Archiver in the World


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.54 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::