I thought it would be kinda cool, if we had a separate thread for user-identified bugs and fixes.
It'll allow everybody to stay on the same page, and current without having to 're-invent the wheel'-per-newbie.
Also bug-fixers can have a common area to analyse, compare, comment-on and discuss posted fixes, for a given bug... so that the best fix gets implemented by readers.
Please try to post all future Bug Reports and fixes on this thread.
If U have bookmarks of earlier bug-reports and fixes for the ClubSite Starter kit, kindly post the relevant links here (without reproducing the entire text)
Thanks you.
P.S. If any of U feel this thread wasn't necessary, pls. voice your concerns and offer alternate advice.
"Our truest life is when we are in dreams awake." - Henry David Thoreau
The problem is that the code checks for a difference but doesn't update the database. Here's the fix in membership_details.aspx
Protected Sub update_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim user As MembershipUser = Membership.GetUser()
Dim da As New DataSetTableAdapters.MemberInfoTableAdapter
If Email.Text <> user.Email Then
user.Email = Email.Text
Membership.UpdateUser(user)
End If
Try
da.Update(CType(user.ProviderUserKey, Guid), Addr.Text, Phone.Text, fname.Text, lname.Text, CType
(user.ProviderUserKey, Guid))
ContactStatus.Text = "Details have been updated sucessfully."
ContactStatus.ControlStyle.ForeColor = Drawing.Color.Black
Catch ex As Exception
ContactStatus.Text = "Error updating contact details: " & ex.Message
ContactStatus.ControlStyle.ForeColor = Drawing.Color.Red
End Try
End Sub
The change to membership_details.aspx did not work for me.
All I added was the line
Membership.UpdateUser(user)
Any other ideas why the data edits are not being made? All other pages seem to work.
Hey folks, if we are going to Maintain a list of Bugs and Fixes. Might I suggest we keep a Message which can be updated daily.
The main reason being it would be easy to identify if any given bug has been identified and cataloged, perhaps we could even prioritize them and address as a group.
So who will step up and take on the task of maintaining the list? as a Top Level Message in this thread.
This otherwise would use integer division and produce a slightly incorrect scale. Some of my images were coming out a bit skewed and looked funny, so debugged this.
BugSlayer
Member
246 Points
58 Posts
Identified bugs and fixes for the ClubSite Starter kit
Mar 08, 2006 02:02 PM|LINK
I thought it would be kinda cool, if we had a separate thread for user-identified bugs and fixes.
It'll allow everybody to stay on the same page, and current without having to 're-invent the wheel'-per-newbie.
Also bug-fixers can have a common area to analyse, compare, comment-on and discuss posted fixes, for a given bug... so that the best fix gets implemented by readers.
Please try to post all future Bug Reports and fixes on this thread.
If U have bookmarks of earlier bug-reports and fixes for the ClubSite Starter kit, kindly post the relevant links here (without reproducing the entire text)
Thanks you.
P.S. If any of U feel this thread wasn't necessary, pls. voice your concerns and offer alternate advice.
BugSlayer
Member
246 Points
58 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Mar 08, 2006 07:03 PM|LINK
Ok ! here goes the 1st one...(nothingmajor, but it's fresh as of today)
Bug# 1
This one needs a Starter Kit setup with no photo-albums.
Simulation:
1. Delete all existing photo Albums from your Club website (or use a fresh new Starter Kit)
2. Login in an Admin role and add a new Event
3. Select a photo for this event from your hard-drive
4. Because U have no Albums the Album combo-box is empty. Let it be so.
5. When you try to save this Event, the application errors out.
Fix # 1.1
Open Photos_FormPicker.ascx Go to Line 131
Replace CInt( AlbumList2.SelectedValue)
with CInt( "0" & AlbumList2.SelectedValue)
Save file and try to simulate again.
Note: Only code has been depicted using Blue font.
BugSlayer
Member
246 Points
58 Posts
Re: Identified bugs and fixes for the ClubSite Starter kit
Mar 08, 2006 07:08 PM|LINK
Bug #2 (linked)
Uploading Avatar photo error
Last post 03-05-2006, 5:09 PM by mhare. 0 replies. on http://forums.asp.net/1217537/ShowPost.aspx
BugSlayer
Member
246 Points
58 Posts
Unable to update Email field
Mar 22, 2006 02:33 PM|LINK
Bug #3
How to simulate...
Log-in as a member.
Click on Membership.
The members Registration details will bedisplayed.
Try updating the Email field. It doesn't throw any error but Email emains unchanged, on subsequent Refreshes.
All other details are updateable.
s3rock
Member
55 Points
11 Posts
Re: Unable to update Email field
Mar 22, 2006 08:19 PM|LINK
The problem is that the code checks for a difference but doesn't update the database. Here's the fix in membership_details.aspx
Protected Sub update_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim user As MembershipUser = Membership.GetUser()
Dim da As New DataSetTableAdapters.MemberInfoTableAdapter
If Email.Text <> user.Email Then
user.Email = Email.Text
Membership.UpdateUser(user)
End If
Try
da.Update(CType(user.ProviderUserKey, Guid), Addr.Text, Phone.Text, fname.Text, lname.Text, CType
(user.ProviderUserKey, Guid))
ContactStatus.Text = "Details have been updated sucessfully."
ContactStatus.ControlStyle.ForeColor = Drawing.Color.Black
Catch ex As Exception
ContactStatus.Text = "Error updating contact details: " & ex.Message
ContactStatus.ControlStyle.ForeColor = Drawing.Color.Red
End Try
End Sub
DatabaseMX
Member
130 Points
26 Posts
Re: Unable to update Email field
Mar 23, 2006 04:41 AM|LINK
Nice catch !!
<>
lexy
Participant
1668 Points
441 Posts
Re: Unable to update Email field
Mar 23, 2006 07:03 PM|LINK
This is a great idea.
Could a moderator make this thread sticky or how you call it?
Perhaps it could sit just below that welcome message?
Lex
chavak
Member
25 Points
5 Posts
Re: Unable to update Email field
Mar 25, 2006 07:25 PM|LINK
All I added was the line
Membership.UpdateUser(user)
Any other ideas why the data edits are not being made? All other pages seem to work.
Thanks,
Chavak
aabruzzese
Contributor
2806 Points
759 Posts
Re: Unable to update Email field
Mar 27, 2006 03:05 AM|LINK
Hey folks, if we are going to Maintain a list of Bugs and Fixes. Might I suggest we keep a Message which can be updated daily.
The main reason being it would be easy to identify if any given bug has been identified and cataloged, perhaps we could even prioritize them and address as a group.
So who will step up and take on the task of maintaining the list? as a Top Level Message in this thread.
GavinPollock
Member
20 Points
5 Posts
Image scaling algorithm incorrect
Mar 28, 2006 12:49 PM|LINK
line 125 of ImageHandling.cs
changed from :
scale = iOriginal.Width / maxwidth;
to
scale = (double)iOriginal.Width / (double)maxwidth;
This otherwise would use integer division and produce a slightly incorrect scale. Some of my images were coming out a bit skewed and looked funny, so debugged this.