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: MOD Implementation
 Active Users Prob: Can't update members profile
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 16 January 2003 :  18:50:23  Show Profile  Visit tomasalsbro's Homepage
Hi,

I recieve this message trying to update members profile:
===============
Microsoft JET Database Engine error '80040e57'

The field is too small to accept the amount of data you attempted to add. Try inserting or pasting less data.

/forum/pop_profile.asp, line 1553
===============

What can have gone wrong

Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se

Edited by - ruirib on 17 January 2003 11:44:57

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 16 January 2003 :  19:35:20  Show Profile  Send ruirib a Yahoo! Message
What long piece of info are you trying to add?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  03:25:34  Show Profile  Visit tomasalsbro's Homepage
Non,

just change the first letter in the usernamne bert to Bert.

So I'm very confused

Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se

Edited by - tomasalsbro on 17 January 2003 04:22:54
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 17 January 2003 :  03:33:48  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message

What field?
Did that field contain only that word?

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  03:38:39  Show Profile  Visit tomasalsbro's Homepage
Yes Sir,

It's a members UserName.

Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se

Edited by - tomasalsbro on 17 January 2003 04:22:20
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 January 2003 :  04:49:33  Show Profile  Send ruirib a Yahoo! Message
That's very weird. The message indicates that you're trying to add a field that is bigger than the space the corresponding database column can handle. I'd say look at all the user data you're trying to add.
Also did you make any changes to the database?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  05:02:40  Show Profile  Visit tomasalsbro's Homepage
Nop,

I have not chenged the database.

The only thing I have done latest is implemented Active Users vs. 4.0.17

The message appers even though no chenges have been done, just pushing the send buttom in the "Modify Users Profile" menu.

This is the path: http://www.whiplash.pp.se/forum/pop_profile.asp?mode=goModify

Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 January 2003 :  05:08:01  Show Profile  Send ruirib a Yahoo! Message
I would say check the changes due to the Active Users mod, since it seems likely to me that you changed the order of a field in a UPDATE statement or similar, so that data that was correct until those changes, surely is now being inserted in other field.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  06:42:45  Show Profile  Visit tomasalsbro's Homepage
You could have right there, but after resetting the pop_profile.asp to its original, the problem still persits.

I guess the changes in the database made by the Active Users Mod must be the reason to this problems. This is the the changes by the mod:
========
Active Users 4.0 for Snitz 3.4 compatable

[DROP]
ONLINE
[END]
[DROP]
ACTIVE_USERS
[END]
[CREATE]
ACTIVE_USERS

MEMBER_ID#int#NULL#
AU_IP#varchar(40)#NULL#
AU_LOGINTIME#varchar(100)#NULL#
AU_LASTACTIVETIME#varchar(100)#NULL#
AU_LASTPAGE#varchar(250)#NULL#
AU_QUERYSTRING#text#NULL#
AU_USER_AGENT#text#NULL#
[END]
[ALTER]
MEMBERS
ADD#M_AUHIDE#varchar(1)#NULL#
ALTER#M_AUHIDE#varchar(1)#NULL#
[END]
[ALTER]
MEMBERS_PENDING
ADD#M_AUHIDE#varchar(1)#NULL#
[END]
[INSERT]
CONFIG_NEW
(C_VARIABLE,C_VALUE)#('STRAUANON','1')
(C_VARIABLE,C_VALUE)#('STRAUANONOVERRIDE','2')
(C_VARIABLE,C_VALUE)#('STRAUPALLOW','4')
(C_VARIABLE,C_VALUE)#('STRAUPCOLLAPSE','1')
(C_VARIABLE,C_VALUE)#('STRAUALLOW','3')
(C_VARIABLE,C_VALUE)#('STRAUREFRESH','0')
(C_VARIABLE,C_VALUE)#('STRAUIP','1')
(C_VARIABLE,C_VALUE)#('STRAUUA','2')
(C_VARIABLE,C_VALUE)#('STRAULOCAL','3')
(C_VARIABLE,C_VALUE)#('STRAUTIMEOUT','7')
(C_VARIABLE,C_VALUE)#('STRAUADMINCOLOR','orangered')
(C_VARIABLE,C_VALUE)#('STRAUMODCOLOR','forestgreen')
(C_VARIABLE,C_VALUE)#('STRAUADMINCOLOR','orangered')
(C_VARIABLE,C_VALUE)#('STRAUMODCOLOR','forestgreen')
(C_VARIABLE,C_VALUE)#('intAURecord','0')
(C_VARIABLE,C_VALUE)#('strAURecordDate','11111111111111')
[END]
========

Whats your opinions?

Perhaps any authorized should move this topic to "Help - Mod implementation"?

Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se

Edited by - tomasalsbro on 17 January 2003 06:48:07
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 17 January 2003 :  08:06:26  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
I noticed that this field, M_AUHIDE, was added to the members table. Check your changes to pop_profile.asp and ensure that the SQL statement for the update is correct. My guess is the changes to the update did not get done correctly and one of the fields is being updated with the value from a wrong field. I would suggest doing a response.write of the sql statement and ensure that it's being done correctly.

Just because you only updated the value for the membername doesn't mean it's the only field being updated in the SQL. All the fields on the members table are updated in the SQL (albeit with the same values as before.)

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  08:53:23  Show Profile  Visit tomasalsbro's Homepage
This is the changes made to POP_PROFILE.ASP:

=========
There are BOTH instances of this line on pop_profile.asp (about lines 820 and 952)
strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_SIG"
Paste this underneath both instances of the above line.
Select All
strSql = strSql & ", " & strMemberTablePrefix & "MEMBERS.M_AUHIDE"

Find BOTH instances of this: (about line 1211 and 1482)
if strBio = "1" then
strSql = strSql & ", M_BIO = '" & chkString(Request.Form("Bio"),"message") & "'"
end if
Paste this beneath both of them:
if strAUAnon = "1" then
strSql = strSql & ", M_AUHIDE = '" & ChkString(Request.Form("AUHide"),"") & "'"
end if

===========

I'm not competent enough to decide if this changes are correct or not.

Cheers / Tomas


!-Keep distance in traffic-!
www.whiplashinfo.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 January 2003 :  11:46:54  Show Profile  Send ruirib a Yahoo! Message
Use a Response.Write to show the SQL statement causing the problem.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  18:06:53  Show Profile  Visit tomasalsbro's Homepage
quote:
Originally posted by ruirib

Use a Response.Write to show the SQL statement causing the problem.



I can't, because I don't now how to do that.

Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 January 2003 :  19:02:37  Show Profile  Send ruirib a Yahoo! Message
Just before line# 1553, where you get the error, add this:

Response.Write strSql
Response.End

Make it look just like this, two statements, two lines, just before the line where you have the error.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

tomasalsbro
Average Member

Sweden
818 Posts

Posted - 17 January 2003 :  19:56:39  Show Profile  Visit tomasalsbro's Homepage
OK ruirib,

I followed your instruction and voila! This is the result:

==============
UPDATE FORUM_MEMBERS SET M_NAME = 'Bert', M_NEWEMAIL = 'xxxxx@xxxxxx.net', M_KEY = ' ', M_RECEIVE_EMAIL = 1 , M_TITLE = ' ', M_POSTS = 2 , M_COUNTRY = ' ', M_ICQ = ' ', M_MSN = ' ', M_HOMEPAGE = ' ', M_SIG = ' ', M_LEVEL = 1, M_FIRSTNAME = 'Bert', M_LASTNAME = ' ', M_CITY = ' ', M_PHOTO_URL = ' ', M_LINK1 = ' ', M_LINK2 = ' ', M_AGE = ' ', M_MARSTATUS = ' ', M_SEX = ' ', M_OCCUPATION = ' ', M_HOBBIES = ' ', M_QUOTE = ' ', M_LNEWS = ' ', M_BIO = ' ', M_AUHIDE = '1, 1' WHERE MEMBER_ID = 1000
==============

Cheers / Tomas

!-Keep distance in traffic-!
www.whiplashinfo.se

Edited by - tomasalsbro on 17 January 2003 19:57:50
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 17 January 2003 :  20:04:29  Show Profile  Send ruirib a Yahoo! Message
Ok, your problem lies where shown in red.
==============
UPDATE FORUM_MEMBERS SET M_NAME = 'Bert', M_NEWEMAIL = 'xxxxx@xxxxxx.net', M_KEY = ' ', M_RECEIVE_EMAIL = 1 , M_TITLE = ' ', M_POSTS = 2 , M_COUNTRY = ' ', M_ICQ = ' ', M_MSN = ' ', M_HOMEPAGE = ' ', M_SIG = ' ', M_LEVEL = 1, M_FIRSTNAME = 'Bert', M_LASTNAME = ' ', M_CITY = ' ', M_PHOTO_URL = ' ', M_LINK1 = ' ', M_LINK2 = ' ', M_AGE = ' ', M_MARSTATUS = ' ', M_SEX = ' ', M_OCCUPATION = ' ', M_HOBBIES = ' ', M_QUOTE = ' ', M_LNEWS = ' ', M_BIO = ' ', M_AUHIDE = '1, 1' WHERE MEMBER_ID = 1000
==============

It should be:

M_AUHIDE = '1'

Check the mods instructions on the line you added to add this value, cause it's wrong now.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07