Author |
Topic |
|
Old Ager
New Member
Italy
59 Posts |
Posted - 11 June 2001 : 17:42:30
|
I have installed the Avatar Mod and everything appears to work fine except one thing, when ever I open my profile, make a change, and submit the form the "Profile Updated" screen appears as it should, but then the following message appears:
There Was A Problem With Your Details
You must choose a UserName You must choose a Password You Must give an email address You Must enter a valid email address
Go Back To Enter Data
Any ideas why this might be happening? This is the last bug to fix before I go public with my forums, so I'd kinda like to get this sorted out.
Here's the URL to my forum:
http://www.old-ager.com/forum/default.asp
Thanks in advance.
Old Ager |
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 11 June 2001 : 19:25:15
|
It's a problem with your META Refresh tag.
This is what it looks like when you do a view source of the result page after you submit your changes:
<meta http-equiv="Refresh" content="2; URL=">
So it's just refreshing the edit profile page but the form values aren't there so you are getting those errors.
What did you use to edit the pop_profile.asp page? If you used Frontpage, then that may be your problem. Frontpage has a habit of modifying the META Refresh tags and moving them around.
There is nothing in the Avatar MOD that would have affected this tag though. |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 12 June 2001 : 00:36:01
|
Richard,
Thanks for the help. I use NoteTab for all my editing needs, so I don't know how this could have happened.
Thanks again.
Old Ager |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 12 June 2001 : 04:02:11
|
Richard,
OK, this might not be a problem with the mod, but I have compared my pop_profile.asp to the "out-of-the-box" version, and the META tags are identical. Nothing has been moved around or changed. Any ideas why I might have this problem? Could it be a form name issue?
Here's the code from my pop_profile.asp file:
First Occurence:
<p align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize >">Profile Updated.</font></p>
<% if (strUseExtendedProfile) then %> <meta http-equiv="Refresh" content="2; URL=<% if InStr(1,Request.Form ("Refer"),"register.asp",1) > 0 then Response.Write("default.asp") else Response.Write (Request.Form("Refer")) end if %>">
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize % >"><a href="<% if InStr(1,Request.Form("Refer"),"register.asp",1) > 0 then Response.Write ("default.asp") else Response.Write(Request.Form("Refer")) end if %>">Back To
Forum</a></font></p>
<% end if else %>
Second Occurence:
%> <p align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">Profile Updated.</font></p>
<% if (strUseExtendedProfile) then %> <meta http-equiv="Refresh" content="2; URL=<% if InStr(1,Request.Form("Refer"),"register.asp",1) > 0 then Response.Write("default.asp") else Response.Write(Request.Form("Refer")) end if %>">
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="<% if InStr(1,Request.Form("Refer"),"register.asp",1) > 0 then Response.Write("default.asp") else Response.Write(Request.Form("Refer")) end if %>">Back To Forum</a></font></p> <% end if else
Old Ager |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 12 June 2001 : 04:41:04
|
Can you e-mail me your pop_profile.asp file?
When you edit files, do you have word wrap on? Wrapping lines of code is not good... |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 12 June 2001 : 05:09:23
|
Richard,
I emailed the file to you.
My editor does have wordwrap on. I'll turn it off and reload the file.
Thanks again.
EDIT:
Tried it with the "un-wrapped" version and still have the same problem.
Old Ager
Edited by - Old Ager on 12 June 2001 05:17:22 |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 14 June 2001 : 14:49:27
|
Richard,
I just noticed something in your instructions for this mod. In the readme file, you say:
quote: ******************************* In the file: POP_PROFILE.ASP * *******************************
Below this line: (you will need to do this for both occurences of this line) (around line #616 & #722) ----------------
strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_PHOTO_URL"
Add this line: --------------
strsql = strsql & ", " & strMemberTablePrefix & "MEMBERS.M_AVATAR_URL"
I have noticed, however, that I have three occurences of that line in my pop_profile.asp at lines 101, 745 and 866. The line numbers are different because of other mods, but neither of the occurences are within a mod addition.
Is this a typo and I should add the avatar line after all three occurences, or should I add the line after the last two only?
Here's a link to a text copy of my pop_profile: pop_profile.txt
Thanks for the help
Old Ager |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 14 June 2001 : 15:42:30
|
The occurance that you see at line #101 is for pulling the data to show when someone else views your profile. Since the Avatar is not shown when viewing someone else's profile, you don't need to make that change there. Although adding it in all 3 places won't cause any errors. Make sure you at least add it to the bottom 2 occurances. |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 14 June 2001 : 15:56:34
|
Thanks Richard.
BTW, I have had no luck trying to fix the above mentioned problem. I have edited, and re-edited a fresh pop_profile.asp, and the error message keeps showing up. I'm getting ready to eat my computer just so I can have the pleasure of crapping it out and flushing it down the toilet.
I know it's probably a very simple fix, but I'm cross-eyed from staring at the code trying to find it.
Old Ager |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 14 June 2001 : 16:30:56
|
do you get the error with a fresh copy of pop_profile.asp ? |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 15 June 2001 : 16:09:04
|
Richard,
I took a clean copy out of the zip, with no mods, and it does the same thing. Could I have a problem with the form that is called for in this code:
<meta http-equiv="Refresh" content="2; URL=<% if InStr(1,Request.Form("refer"), "register.asp",1) > 0 then Response.Write("default.asp") else Response.Write (Request.Form("refer")) end if %>">
I really wish I knew something about VB and ASP so I could ask better questions, but this is a "learn as I go" thing. Sorry.
Old Ager |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 15 June 2001 : 20:03:39
|
What you might do is go into your Admin Options and then goto Server Information. See what the value it gives for HTTP_REFERER is. |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 16 June 2001 : 04:15:27
|
Richard,
My admin_home.asp is showing as the HTTP_REFERER value.
Old Ager |
|
|
RichardKinser
Snitz Forums Admin
USA
16655 Posts |
Posted - 16 June 2001 : 21:52:52
|
Well, it's working then. Thought it might not be. I have no idea why this isn't working on your forum. |
|
|
Old Ager
New Member
Italy
59 Posts |
Posted - 17 June 2001 : 01:05:12
|
Richard,
Could it be a problem with the string that's being called in the if-then just prior to the META tag? Could something be missing from that string?
if (strUseExtendedProfile) then %> <meta blah, blah, blah...
Thanks again for all your help.
Old Ager |
|
|
|
Topic |
|