Previous Thread
Next Thread
Print Thread
Hop To
#128874 05/12/2006 1:21 PM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
OK, I am new to the board and to the Admin/server side of the software. Recently I took on learning how to run the site that I was a moderator at. For the longest time our users that use firfox and a few other browsers other than IE all receive the same error message while trying to editing there profile. Error saying all fields not entered in proper format. Many people prefer using firfox over IE and I hate telling them in order to update your profile you need to do it in IE. I have search this forum and found many with the same issue. I have emailed them asking how they fixed it and they say, I don't remember. All of the post here end up saying its fixed, with no details on how it was done. Recently I downloaded the beta of IE 7 to see if it would have the same effects as the errors received when using firefox, and sure enough it did. Not only did I get the error were I can not edit my profile, but when I toggle a topic as a favorite, it says it's added when it brings me to my home page. When I leave my home page and come back that topic is no longer in my favorite topic list anymore. If someone could point me in the right direction I would greatly appreciate it. Like I said I am new to this all, I am learning from the person who has been running the site for a couple of years, and we can not seem to figure out what the problem is. I know it has been a problem for a while by looking at the dates of some of the post with similar problems. Is this something that was addressed with version 7 coming out?

Thank you in advance for any advice/help,
Eddie

#128875 05/12/2006 1:44 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Yes, I had similar error with my firefox. I was making up a name for anonymous user when I tried to submit it I got an error saying that I had disallowed characters, and I shoud use [a-z][0-9] But this is exactly what I had. So after several tries I cleared the field and retyped exactly the same name and it went through. Weird. Also it says use _ instead of space, I put space and it went trough, I wonder if this is a bug?

#128876 05/12/2006 1:49 PM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
I think on one of the last updates, alt letters and spaces were no longer supported or they could be turned off in user names. I don't remember exactly. I know I was told something along those lines.

#128877 05/12/2006 1:53 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
I use 6.5.2

#128878 05/13/2006 10:30 PM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
Nobody know <img src="https://www.ubbcentral.com/boards/images/graemlins/confused.gif" alt="" />

#128879 05/13/2006 11:16 PM
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
what version are you running?


- Allen
- ThreadsDev | PraiseCafe
#128880 05/13/2006 11:19 PM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
We just upgraded today to 6.5.4 we were running 6.5.2 when I made this post. But still have the problem

#128881 05/14/2006 9:35 AM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
What browsers are they?

#128882 05/14/2006 11:04 AM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
firefox, IE 7 and I believe one more that I will have to try and find.

#128883 05/14/2006 11:34 AM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
which of them work and which don't?

#128884 05/14/2006 11:36 AM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
both dont work. More so firefox as IE 7 is a beta and can't be trusted 100% yet

#128885 05/14/2006 11:51 AM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
What's the address, let me try.

#128886 05/14/2006 11:54 AM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
It only happens when trying to edit your profile. You would have to join

#128887 05/14/2006 2:02 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Two things.

1. If you click back on the broweser after the error and then submit again it goes through.

2. I dont know if this is relevant but it looks like your server's default Content-type is

text/html; charset=UTF-8

Mine and the one over here is

text/html

Also your pages are all configured for

text/html; charset=iso-8859-1

but if you go to the index page, your server actually overrides it with UTF-8. I wonder if this happens when you submit the form. Basically the form has 'profilehash' hidden field it gets verified against the one in the database and if they do not match you get bad form error. But there is no reason for them to not match other than if the form gets mangled on the way to the script, or the scripts were tempered with <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" /> Different browsers could send the data differently, so the old IE ([censored]) could have ignored some standards but new IE7 may well follow them (natural evolution) hence the same problem. Well, it could all be wrong, what I just said...

#128888 05/14/2006 2:52 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
well, didn't do anything to me adding UTF-8. Anyway you can try removing it and see if it helps

in .htaccess file add this directive

AddDefaultCharset Off

also examine this file for some other interesting directives that may interfere

#128889 05/15/2006 2:21 AM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
Thank yo for your input, will look into what you suggesteted to see if anything is found.

#128890 05/17/2006 4:59 AM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
Thank you for the idea's. We went in and check it and apache and all is set up right. Anyone else have an idea, or remember how this was solved before. Thank you again for your help and ideas!!

#128891 05/17/2006 5:40 AM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Ok its time to get nasty <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

Edit changebasic.php temporary.

Add this:

echo $profilehash.'<br />';
echo $user['U_ProfileHash'].'<br />';
echo ($profilehash == $user['U_ProfileHash']);
exit;

right before

if ($profilehash != $user['U_ProfileHash']) {
$html -> not_right($ubbt_lang['PHASH'],$Cat);
}


Go and submit the form you will get blank page with the form value of the 'profilehash' above the database value. They have to be 100% identical!

something like this:

ca54e68ea0b4016b19c5ef35389a6499
ca54e68ea0b4016b19c5ef35389a6499
true

don't forget to remove the insert after you're done <img src="https://www.ubbcentral.com/boards/images/graemlins/wink.gif" alt="" />

Last edited by fatalpapercut; 05/17/2006 5:45 AM.
#128892 05/17/2006 2:14 PM
Joined: Apr 2006
Posts: 44
T
newbie
newbie
T Offline
Joined: Apr 2006
Posts: 44
Pardon me for butting in on the thread, but...

What if the profilehash values match? Then what? I'm having the same issue with a user using IE 7 beta, and I don't know how to help him.

Tracy

#128893 05/17/2006 4:54 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Basically this bit of code in 'changebasic.php':

if ($profilehash != $user['U_ProfileHash']) {
$html -> not_right($ubbt_lang['PHASH'],$Cat);
}

sends people to the 'Bad Form Blah Blah Blah' screen. It could only happen if for some reason the value of the variable 'profilehash' passed from the form ($profilehash) is not equal (!=) to the value of profile hash in the database ($user['U_ProfileHash'])

edit changebasic.php as per above and see if you get 'true'. If you get 'false' that's where the problem is (use IE7 of course)

Last edited by fatalpapercut; 05/17/2006 4:59 PM.
#128894 05/17/2006 5:47 PM
Joined: May 2006
Posts: 16
G
stranger
stranger
G Offline
Joined: May 2006
Posts: 16
Ok, what you said would happen did. In firefox the hash comes back with 2 different codes and in IE 6 it does not, What would be your thoughts on what we would need to change in order to correct it. As always thank you for your help and sticking with me on this

#128895 05/17/2006 6:31 PM
Joined: Apr 2006
Posts: 116
F
member
member
F Offline
Joined: Apr 2006
Posts: 116
Are they very different?

Ok before submitting the form write down (or copy/paste to notepad) the value of the form's profilehash value (for this you would need to view the page source)

Then without leaving the form go and check the value of the profile hash in the database. It should be in the Users table, I think it is the last column, you'll see it anyway. Make a note of it and see if it matches the form's profilehash value. Then submit the form (and make a note of the values that script receives (you will need to add the modification again)

Post it here and we'll see what is going on. You can post it here safely I think because the hash changes everytime you load the form.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
0 members (), 919 guests, and 149 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)