Author |
Topic |
AnonJr
Moderator
United States
5768 Posts |
Posted - 16 July 2009 : 09:33:43
|
quote: Originally posted by modifichicci
I think the problem is not the inizialization I am afraid, as in a new install there is not the problem. It is in an update that the field isn't filled With a value (0 or 1) in previous members.
That is exactly the problem. New installs get set up properly, I just forgot to add to the upgrade script some code to properly set existing members. |
|
|
modifichicci
Average Member
Italy
787 Posts |
|
AnonJr
Moderator
United States
5768 Posts |
Posted - 16 July 2009 : 11:58:30
|
I've been meaning to get back to it... this is the busiest time of the year for us at work so it probably won't be for a while... sorry. |
|
|
mkelley
Junior Member
112 Posts |
Posted - 26 July 2009 : 08:56:22
|
I'm getting this even on a brand new install -- so it's definitely some kind of error in the basic forum code.
I'll try ONE of the fixes noted above, even though it's not particularly clear to me which one to use. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 26 July 2009 : 10:00:12
|
you seem to be the only instance of it affecting new installs, which would seem a bit strange. |
|
|
ZkilfinG
Starting Member
10 Posts |
Posted - 30 July 2009 : 09:49:38
|
quote: Originally posted by Carefree
In lieu of a DBS script, you could save this as "allowem.asp" and run it. That way it would remain a one-time use file.
[...]
Thanks for the fix. It didn't work for me, but I just had to change it a bit. M_ALLOWEMAIL <> 0 didn't resolve any hits, I'm not sure if they're null or empty strings for me, and what the correct code to resolve it would be (using access for the forum, but not used to working with it). Since I had no special users allowed I just removed the WHERE entirely. And since I didn't want everybody allowed I changed the value to 0 also. Ie this:
|
|
|
Gaisa
Starting Member
4 Posts |
Posted - 10 September 2009 : 12:32:57
|
Cheers! that worked a charm!
quote: Originally posted by modifichicci
|
|
|
Saltydawg88
Starting Member
USA
1 Posts |
Posted - 07 October 2009 : 10:43:06
|
Im sorry guys Maybe i'm jsut too new to this, but all of my furm was working properly and now it not. I have tried the fixes in the thread, but this is what I got:
I started out with the error:
Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'cInt'
/forum/pop_mail.asp, line 68
I then made the changes like it said:
quote: Originally posted by modifichicci
tested on an access db and working
change intAllowEmail = cInt(rs("M_ALLOWEMAIL"))
with
so if the value is null it updates field and then retrive the variable, if it is not null it charge the value.
So the routine is used only if necessary.
And now I get the error:
Microsoft VBScript compilation error '800a0409'
Unterminated string constant
/forum1/pop_mail.asp, line 72
strSql="UPDATE " & strMemberTablePrefix & "MEMBERS SET M_ALLOWEMAIL = 0 WHERE MEMBER_ID = " & MemberID" -------------------------------------------------------------------------------------------------------^
What am I missing? Im sorry, but this is all greek to me, but Im trying to learn. If you need any more info please let me know.
|
Edited by - Saltydawg88 on 07 October 2009 11:17:24 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 07 October 2009 : 11:18:11
|
you didn't copy the fix correctly, there should not be a " after MemberID |
|
|
Topic |
|