Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Jagerman] Delete user error in 1.1.8 FR

Quote Reply
Re: [Jagerman] Delete user error in 1.1.8 FR In reply to
In Reply To:
It took me a while, but I managed to track down the problem to the "Block_PM" and "Block_User" plugins; for some reason, they create foreign keys to the User table to the effect that the User table knows it has foreign keys pointing to it from the Block_PM/Block_User tables, but when GT::SQL looks at those tables to try to find the relevant columns it can't find any, thus causing the error. I'm going to have to look around some more to figure out why those foreign key entries weren't in the def file to Block_User/Block_PM, but I've added them manually to your copy in order to fix this without having to uninstall those plugins.
For other people who are getting the same error, I've outlined the fix below:
You need to edit admin/defs/gforum_Block_User.def and .../gforum_Block_PM.def. In those files, look for

Code:
'fk' => {},

You need to change this to:

Code:
'fk' => { gforum_User => { blocker_user_id => 'user_id' } },

If it is already there (it may be on multiple lines, but will start with: 'fk' => {), you don't need to change anything.


Hi

I still have this kind of problem... (with 1.1.8 version of french gforum)

Do I have to change someting in the defs file ? if yes in which one ?

Txs for your help....

Here is the message error I get...

A fatal error has occurred:
GT::SQL::Table (16289): Wrong argument passed to this subroutine. Usage: Could not create a condition object out of arguments. at /home/site/cgi-bin/gforum/admin/GT/SQL/Table.pm line 643.
Please enable debugging in setup for more details.
Stack Trace
======================================
GForum (16289): GT::Base::error called at /home/site/cgi-bin/gforum/admin/GT/SQL/Table.pm line 643 with arguments
([undef], GT::SQL::Table=HASH(0x844ee98), BADARGS, FATAL, Could not create a condition object out of arguments.).
GForum (16289): GT::SQL::Table::delete called at GT::SQL::Table::_do_opt line 2172 with arguments
(GT::SQL::Table=HASH(0x844ee98), HASH(0x8458a1c)).
GForum (16289): GT::SQL::Table::_do_opt called at GT::SQL::Table::_delete_cond line 2200 with arguments
(GT::SQL::Table=HASH(0x839877c), cascade, HASH(0x8458a1c), forum_Online).
GForum (16289): GT::SQL::Table::_delete_cond called at /home/site/cgi-bin/gforum/admin/GT/SQL/Table.pm line 664 with arguments
(GT::SQL::Table=HASH(0x839877c), GT::SQL::Condition=HASH(0x8223630), cascade).
GForum (16289): GT::SQL::Table::delete called at /home/site/cgi-bin/gforum/admin/GForum.pm line 547 with arguments
(GT::SQL::Table=HASH(0x839877c), GT::SQL::Condition=HASH(0x844a9c8)).
GForum (16289): GForum::_plg_authenticate called at /home/site/cgi-bin/gforum/admin/GT/Plugins.pm line 108 with no arguments.
GForum (16289): GT::Plugins::dispatch called at /home/site/cgi-bin/gforum/admin/GForum.pm line 486 with arguments
(GT::Plugins, /home/site/cgi-bin/gforum/admin/Plugins/GForum, authenticate, CODE(0x82a928c)).
GForum (16289): GForum::authenticate called at /home/site/cgi-bin/gforum/gforum.cgi line 53 with no arguments.
GForum (16289): main::main called at /home/site/cgi-bin/gforum/admin/GT/Plugins.pm line 108 with no arguments.
GForum (16289): GT::Plugins::dispatch called at /home/site/cgi-bin/gforum/gforum.cgi line 22 with arguments
(GT::Plugins, /home/site/cgi-bin/gforum/admin/Plugins/GForum, main, CODE(0x8325680)).


System Information
======================================
Perl Version: v5.6.0
Gossamer Forum Version: 1.1.8
GForum.pm version: 1.118
GT::SQL Version: 1.099
GT::Template Version: 2.084
DBI.pm Version: 1.18
@INC =
/home/site/cgi-bin/gforum/admin
/usr/lib/perl5/5.6.0/i386-linux
/usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl
.
GT::SQL::error = GT::SQL::Table (16289): Wrong argument passed to this subroutine. Usage: Could not create a condition object out of arguments. at /home/site/cgi-bin/gforum/admin/GT/SQL/Table.pm line 643.


regards
FMP
Subject Author Views Date
Thread Delete user error in 1.1.8 FR Jag 15631 Oct 11, 2002, 8:29 AM
Thread Re: [Jag] Delete user error in 1.1.8 FR
Franco 15343 Oct 12, 2002, 5:23 AM
Thread Re: [Franco] Delete user error in 1.1.8 FR
Jag 15315 Oct 12, 2002, 6:18 AM
Thread Re: [Jag] Delete user error in 1.1.8 FR
Franco 15355 Oct 12, 2002, 6:23 AM
Thread Re: [Franco] Delete user error in 1.1.8 FR
Jag 15361 Oct 15, 2002, 2:45 AM
Thread Re: [Jag] Delete user error in 1.1.8 FR
Jag 15246 Oct 19, 2002, 3:56 PM
Thread Re: [Jag] Delete user error in 1.1.8 FR
Franco 15316 Oct 20, 2002, 7:33 AM
Thread Re: [Franco] Delete user error in 1.1.8 FR
Jag 15287 Oct 28, 2002, 4:54 AM
Post Re: [Jag] Delete user error in 1.1.8 FR
Franco 15161 Oct 29, 2002, 8:57 AM
Thread Re: [Jag] Delete user error in 1.1.8 FR
Jagerman 15216 Oct 30, 2002, 5:40 PM
Post Re: [Jagerman] Delete user error in 1.1.8 FR
Jag 15128 Nov 5, 2002, 4:55 AM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
Jag 15285 Nov 22, 2002, 5:28 AM
Thread Re: [Jag] Delete user error in 1.1.8 FR
Jagerman 15127 Nov 28, 2002, 12:51 PM
Post Re: [Jagerman] Delete user error in 1.1.8 FR
Jag 15056 Nov 30, 2002, 5:42 AM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
Franco 15065 Dec 2, 2002, 6:06 PM
Thread Re: [Franco] Delete user error in 1.1.8 FR
Jagerman 15123 Dec 2, 2002, 6:25 PM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
Franco 15040 Dec 2, 2002, 6:38 PM
Thread Re: [Franco] Delete user error in 1.1.8 FR
Jagerman 15077 Dec 2, 2002, 7:04 PM
Post Re: [Jagerman] Delete user error in 1.1.8 FR
ellipsiiis 14738 Jan 31, 2004, 3:58 PM
Post Re: [Jagerman] Delete user error in 1.1.8 FR
jaltuve 3295 Mar 1, 2005, 4:26 AM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
hoefti 14907 Oct 11, 2003, 3:28 AM
Post Re: [hoefti] Delete user error in 1.1.8 FR
hoefti 14872 Nov 2, 2003, 12:06 AM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
fmp 3254 Mar 3, 2006, 6:02 AM
Post Re: [fmp] Delete user error in 1.1.8 FR
MrMoon 3240 Mar 7, 2006, 1:53 AM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
Franco 15142 Nov 25, 2002, 8:57 PM
Thread Re: [Franco] Delete user error in 1.1.8 FR
Jagerman 15167 Nov 26, 2002, 11:39 AM
Thread Re: [Jagerman] Delete user error in 1.1.8 FR
Jag 15091 Nov 26, 2002, 12:59 PM
Post Re: [Jag] Delete user error in 1.1.8 FR
brewt 15115 Nov 26, 2002, 1:31 PM