Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
I've just tried to send a mail message through UBB.7 to my members, I'm greeted with:

select t2.USER_REAL_EMAIL from forums_USERS as t1, forums_USER_PROFILE as t2, forums_USER_DATA as t3 where t1.USER_ID <> '1' and t1.USER_ID = t2.USER_ID and t1.USER_ID = t3.USER_ID and t1.USER_IS_BANNED = '0' and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3) and t4.GROUP_ID IN (3)GROUP BY t1.USER_ID ORDER BY t1.USER_ID ASC

Unknown table 't4' in where clause

Last edited by Rick; 10/09/2006 10:52 AM.

I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #165266 10/08/2006 1:08 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
At what point did it give you the error, after filling out the email you wanted to send and submitting or somewhere before that?

Rick #165268 10/08/2006 1:15 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Ok, I think I found it. Line 155 of admin/dosendemail.php has a query that looks like this:

Code
select  t2.USER_REAL_EMAIL     
from    {$config['TABLE_PREFIX']}USERS as t1,
{$config['TABLE_PREFIX']}USER_PROFILE as t2,
{$config['TABLE_PREFIX']}USER_DATA as t3
where   t1.USER_ID <> '1'
and     t1.USER_ID = t2.USER_ID                    
and     t1.USER_ID = t3.USER_ID
$removed $sterms

That needs to be:

Code
select  t2.USER_REAL_EMAIL     
from    {$config['TABLE_PREFIX']}USERS as t1,
{$config['TABLE_PREFIX']}USER_PROFILE as t2,
{$config['TABLE_PREFIX']}USER_DATA as t3,
{$config['TABLE_PREFIX']}USER_GROUPS as t4
where   t1.USER_ID <> '1'
and     t1.USER_ID = t2.USER_ID                    
and     t1.USER_ID = t3.USER_ID
and     t1.USER_ID = t4.USER_ID
$removed $sterms


Rick #165269 10/08/2006 1:16 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by Rick
At what point did it give you the error, after filling out the email you wanted to send and submitting or somewhere before that?


After writing the lengthy sob and clicking send i got it lol...

I'll apply your fix and fiddle in a bit...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Gizmo #165329 10/08/2006 6:26 PM
Joined: Jun 2006
Posts: 626
Addict
Addict
Joined: Jun 2006
Posts: 626
Rick,

Do we still need to redo the code on that file you provided?

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, any bug fixes that have been posted will need to be made. At some point we'll release a 7.0.1 that will contain all of the bug fixes, but until then you'll want to make the changes.

I'm posting them when possible so people don't have to wait until the 7.0.1 release.

Last edited by Rick; 10/08/2006 6:30 PM.
Rick #165348 10/08/2006 11:31 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
fyi, this worked fine


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 744 guests, and 147 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)