|
Joined: Aug 2006
Posts: 583
old hand
|
old hand
Joined: Aug 2006
Posts: 583 |
I have two groups that I want to delete, but when I try to delete either one I get this error (note I modified the path name):
Script: .../xxx/public_html/xxx/admin/dogroupmanage.php
Line#: 81
SQL Error: Unknown column 'uid' in 'where clause'
SQL Error #: 1054
Query: select USER_ID as uid from ubbt_USER_GROUPS where GROUP_ID = 7 and USER_ID = (select distinct USER_ID from ubbt_USER_GROUPS where GROUP_ID <> 7 and USER_ID = uid)
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
confirmed. Just made a bogus group and tried to delete with no members in group. Same error. Looks to me like the query is way off base.
Last edited by Ruben; 03/03/2009 8:32 PM.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
also that's not a valid query for the older version of mysql that we still 'support' double whammy 
|
|
|
|
Joined: Aug 2006
Posts: 583
old hand
|
old hand
Joined: Aug 2006
Posts: 583 |
This one needs a fix me thinks.
|
|
|
|
Joined: Mar 2008
Posts: 327
Enthusiast
|
Enthusiast
Joined: Mar 2008
Posts: 327 |
Fix... In admin/dogroupmanage.php find: Change to:
|
|
|
|
Joined: Aug 2006
Posts: 583
old hand
|
old hand
Joined: Aug 2006
Posts: 583 |
Fix... In admin/dogroupmanage.php find: Change to: Yep! That did it! Thanks!
|
|
|
|
Joined: Mar 2008
Posts: 327
Enthusiast
|
Enthusiast
Joined: Mar 2008
Posts: 327 |
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
I think for 8.0 we're going to have to require MySQL 4.1. The change to the query to make it work actually defeats the purpose of the query  Basically we check to make sure no users belong to that group that do not belong to any other group (otherwise they end up orphaned). There's no simple way to do this without a subselect other than grabbing every user in that group and checking each individual one to see if they are not in another group. That would be very bad if the group had many users.
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
Only 4.1? :sad panda:... I wonder when we start requiring modern webhosts lol...
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
I guess I don't understand the response from Rick. For me using MYSQL 4.1.22 I get the same error as Basil without DL's Mod.
Last edited by Ruben; 03/04/2009 6:22 PM. Reason: corrected version number
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 464 Likes: 1
Addict
|
Addict
Joined: Jun 2006
Posts: 464 Likes: 1 |
I am using MySQL 5.0.67 and php 5.2.8 you should get out of the 4's of anything 
Happy Customer !!!
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
I am using MySQL 5.0.67 and php 5.2.8 you should get out of the 4's of anything  So just take all existing customers and throw them under the bus?
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Feb 2007
Posts: 1,294 Likes: 2
Veteran
|
Veteran
Joined: Feb 2007
Posts: 1,294 Likes: 2 |
Yeah, everyone should run out and update every time a new release of something comes out regardless of if you can, have time, or just have nothing better to do.
Most everything, including UBB, always has lots of bugs in it and most people do not feel like upgrading many things as they just do not wish to have the hassle of fixing bugs or spending tons of time waiting for fixes.
Why "upgrade" if it works? Yes I know I will be opening a can of worms here on this one.
Oh yeah, lets all upgrade from XP to vista. Good luck on finding drivers for most everything you have if your going to 64 bit.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
lmao, when php.net says: Support for PHP 4 has been discontinued since 2007-12-31. Please consider upgrading to PHP 5.2. The release below is the last PHP 4 release. i see no reason to not be in the 5s for php.. and mysql 5x has been official since 2003 ? and apache 2x is also mature, it would be a one time thing to using better versions of each.. so 'every time' is really a one shot dealio, imo.. now, it might be debateable as to 'time' or 'if you can' -- i'll give you that.. but 'every time' is a stretch..
|
|
|
|
Joined: Dec 2003
Posts: 6,633 Likes: 85
|
Joined: Dec 2003
Posts: 6,633 Likes: 85 |
I agree SD. My comment is based on existing ubb customers like myself on a hosting plan that does not give you much control over what versions you can use. At lunar I am using php 5 and MySQL 5 but not Apache 2. I can elect to change to Apache2 if needed.
My old windows host is still on version 4 as of today.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
yes, i can understand that peeps are limited by their hosting plans as to upgrades..
but if there is any control over it that you can exert, it would be to get (one time shot) into php5, mysql5, apache2
imho
|
|
|
|
Joined: Sep 2007
Posts: 73 Likes: 1
Journeyman
|
Journeyman
Joined: Sep 2007
Posts: 73 Likes: 1 |
I have: MySQL client version: 4.1.22
Trying to get imotionhosting.com to upgrade is like pulling teeth sometimes.
|
|
|
|
Joined: Jun 2006
Posts: 16,378 Likes: 129
|
Joined: Jun 2006
Posts: 16,378 Likes: 129 |
At least they're 4.1... I see a lot that are still running 4.0...
PHP5/MySQL5 would be a requirement for me if I was looking for a host...
|
|
|
1 members (Gizmo),
103
guests, and
103
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|