Previous Thread
Next Thread
Print Thread
Hop To
[FIXED for 7.0.1] Mass Mail fails #165264 10/08/2006 12:58 PM
Joined: Jun 2006
Posts: 15,842
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,842
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.
Need to Upgrade?
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!
Re: Mass Mail fails [Re: Gizmo] #165266 10/08/2006 1:08 PM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
At what point did it give you the error, after filling out the email you wanted to send and submitting or somewhere before that?

Re: Mass Mail fails [Re: Rick] #165268 10/08/2006 1:15 PM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
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



Re: Mass Mail fails [Re: Rick] #165269 10/08/2006 1:16 PM
Joined: Jun 2006
Posts: 15,842
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,842
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.
Need to Upgrade?
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!
Re: Mass Mail fails [Re: Gizmo] #165329 10/08/2006 6:26 PM
Joined: Jun 2006
Posts: 626
Daryl Fawcett Offline
Addict
Offline
Addict
Joined: Jun 2006
Posts: 626
Rick,

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

Re: Mass Mail fails [Re: Daryl Fawcett] #165330 10/08/2006 6:29 PM
Joined: Jun 2006
Posts: 9,243
Rick Offline
Former Developer
Offline
Former Developer
Joined: Jun 2006
Posts: 9,243
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.
Re: Mass Mail fails [Re: Rick] #165348 10/08/2006 11:31 PM
Joined: Jun 2006
Posts: 15,842
Gizmo Online Tapedshut OP
UBB.threads Developer
OP Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 15,842
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.
Need to Upgrade?
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!

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
ubb.threads 7.7.3 install error on create tables
by andrewjs18 - 09/17/2019 3:39 AM
Horizontal Image Attachment
by ECNet - 09/11/2019 12:17 PM
user profile, after I click Update nothing happens
by PianoWorld - 09/10/2019 12:38 PM
Inline Image Embeds
by ECNet - 09/03/2019 2:38 PM
Who's Online Now
3 registered members (Ruben, Gizmo, JAISP), 94 guests, and 341 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.3