Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Mail Configuration
 Email fails after upgrade w/solution
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Coda
Starting Member

USA
24 Posts

Posted - 28 October 2009 :  22:01:30  Show Profile
Hi,
I don't know if anyone might be able to use this but after I upgraded from 6 to 7 my users kept getting hard halts when trying to send emails.
As it turned out, there is a new(?) field called M_ALLOWEMAIL in the FORUM_MEMBERS table which is numeric but contains blanks unless the user updates their profile.
The code is trying to cast the value as an integer which causes the halt.
I changed the pop_mail.asp file at line 68 as follows and the problem went away:

Change this
intAllowEmail = cInt(rs("M_ALLOWEMAIL"))

to this
if isNull(rs("M_ALLOWEMAIL")) then
intAllowEmail = 0
Else
intAllowEmail = cInt(rs("M_ALLOWEMAIL"))
End If

That way, the default is to NOT send a user emails but don't blow up during the attempt.
Hope that helps someone.
Coda

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 October 2009 :  00:25:06  Show Profile
The upgrade should have set the default value for the new field to 0. Did you get any errors during the upgrade? What database are you using?

Support Snitz Forums
Go to Top of Page

Coda
Starting Member

USA
24 Posts

Posted - 29 October 2009 :  00:42:53  Show Profile
No errors at all during the upgrade. I got a success message.
It didn't set the field value to zero, it appears to have left the field empty or null, hence my problem. I am using an Access database.
I hope I didn't open a can of worms or something. I thought it was a pretty simple little thing to fix.
Coda

quote:
Originally posted by Davio

The upgrade should have set the default value for the new field to 0. Did you get any errors during the upgrade? What database are you using?

Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 29 October 2009 :  01:25:05  Show Profile  Visit HuwR's Homepage
Take a peek in the BUG forum, I'm sure someone posted a script to rectify the problem
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 29 October 2009 :  02:18:42  Show Profile
Oh, it's here: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=68482

Unless the 3.4.07 version was updated with the correct fix, I don't see why the upgrade doesn't set the default value of the new field to 0. I'll setup a 3.4.06 version and test the upgrade for the problem.

Support Snitz Forums
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 29 October 2009 :  15:30:10  Show Profile  Visit modifichicci's Homepage
yes i have posted there the fix...working well in mysql and access

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

Coda
Starting Member

USA
24 Posts

Posted - 30 October 2009 :  10:13:59  Show Profile
Do you guys think it might be something I did wrong? (I actually hope that it was me.)
I have not made any real changes to the forum code other than the one I posted.
I have renamed the database and changed the email port according to the instructions from my web host. Other than that, vanilla.
Please let me know what you find and I do apologize for triggering a test.
Have a good day.
Coda
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07