Previous Thread
Next Thread
Print Thread
Hop To
[FIXED for 7.0.1] Mass Mail fails
#165264 10/08/2006 11:58 AM
Joined: Jun 2006
Posts: 15,868
Likes: 1
Gizmo Offline OP
UBB.threads Developer
OP Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,868
Likes: 1
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 9: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!
Re: Mass Mail fails
Gizmo #165266 10/08/2006 12:08 PM
Joined: Jun 2006
Posts: 9,243
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
Rick #165268 10/08/2006 12:15 PM
Joined: Jun 2006
Posts: 9,243
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
Rick #165269 10/08/2006 12:16 PM
Joined: Jun 2006
Posts: 15,868
Likes: 1
Gizmo Offline OP
UBB.threads Developer
OP Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,868
Likes: 1
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!
Re: Mass Mail fails
Gizmo #165329 10/08/2006 5:26 PM
Joined: Jun 2006
Posts: 626
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
Daryl Fawcett #165330 10/08/2006 5:29 PM
Joined: Jun 2006
Posts: 9,243
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 5:30 PM.
Re: Mass Mail fails
Rick #165348 10/08/2006 10:31 PM
Joined: Jun 2006
Posts: 15,868
Likes: 1
Gizmo Offline OP
UBB.threads Developer
OP Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,868
Likes: 1
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 Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
AWS Lightsail platform
by jjjjj - 02/20/2020 7:27 AM
Users cant register after upgrade to Version 7
by Jim0421 - 02/13/2020 11:32 PM
Looking for best site firewall and CDN service
by Ruben - 02/11/2020 3:01 PM
custom island shows when logged in?
by Ruben - 02/11/2020 1:54 PM
Who's Online Now
0 members (), 73 guests, and 54 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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.4
(Snapshot build 20200221)