1tallpaul
Pressing the Save Changes button on the Edit Profile page throws up an alert CH: unable to validate form.
This happens even if you open the page and press the button without making changes.
This happens even if you open the page and press the button without making changes.
2kristilabrie
Are you still seeing this issue? I'm guessing this may have been temporary while changes were being made, but I want to be sure. I just tested my own profile settings at https://www.librarything.com/settings/profile and was able to make and save changes.
If you're still seeing trouble, let me know exactly which settings page you're working from? Also, what operating system and web browser are you working on? I can test further if needed.
If you're still seeing trouble, let me know exactly which settings page you're working from? Also, what operating system and web browser are you working on? I can test further if needed.
3tallpaul
Now I am on a desktop I had a look with the Inspector.
Rather than use a POST request, the validation uses a GET request with the form contents included as url encoded query parameters. This results in a URL that is 24KB in size.
Per this stack overflow answer* most web servers have an 8KB and the maximum browser size is also 8KB, though many are smaller. Exceeding this will lead to truncation and likely a silent errors from the client or server, and potentially at any of an indeterminate hops in between.
A POST request will not encounter the same restriction (at least under 2GB).
*https://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request
Rather than use a POST request, the validation uses a GET request with the form contents included as url encoded query parameters. This results in a URL that is 24KB in size.
Per this stack overflow answer* most web servers have an 8KB and the maximum browser size is also 8KB, though many are smaller. Exceeding this will lead to truncation and likely a silent errors from the client or server, and potentially at any of an indeterminate hops in between.
A POST request will not encounter the same restriction (at least under 2GB).
*https://stackoverflow.com/questions/2659952/maximum-length-of-http-get-request
4tallpaul
I posted the last reply before I saw yours, but I have tested in on multiple browsers and OS.
5tallpaul
>2 kristilabrie: the size of the get request will vary depending on size of the profile, so this won't be consistent. It was still failing at the time of my other reply.
6kristilabrie
>5 tallpaul: >3 tallpaul: is perfect, good de-bugging. I'll test this out momentarily.
7kristilabrie
To reproduce:
1. Log into @tallpaul and go to /settings/profile
2. Click "Save Changes" button (you don't need to make any changes to reproduce)
Bug: Get lightbox error: "CH: unable to validate the form", with this error in dev console at https://image.librarything.com/js/jquery-3.5.1.min.js?v=2:
devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@d537ec02474b5afe23684e7963d538896c63ac77/&can_dock=true&panel=elements&dockSide=undocked#:~: text=GET%20https%3A//www.librarything.com/settings_page_profile_validator.php%3Fform_about%E2%80%A6e% 3Dvalue%26visitedvenuesprivate%3Dvalue%26form_type%3Dprofile%26favoritesarevisited%3D0%20net%3A%3A ERR_CONNECTION_CLOSED
(The full copy-paste text includes the entire form, so I'm excluding it here. I also added some spaces in the link above to keep the text within the post.)
1. Log into @tallpaul and go to /settings/profile
2. Click "Save Changes" button (you don't need to make any changes to reproduce)
Bug: Get lightbox error: "CH: unable to validate the form", with this error in dev console at https://image.librarything.com/js/jquery-3.5.1.min.js?v=2:
devtools://devtools/bundled/devtools_app.html?remoteBase=https://chrome-devtools-frontend.appspot.com/serve_file/@d537ec02474b5afe23684e7963d538896c63ac77/&can_dock=true&panel=elements&dockSide=undocked#:~: text=GET%20https%3A//www.librarything.com/settings_page_profile_validator.php%3Fform_about%E2%80%A6e% 3Dvalue%26visitedvenuesprivate%3Dvalue%26form_type%3Dprofile%26favoritesarevisited%3D0%20net%3A%3A ERR_CONNECTION_CLOSED
(The full copy-paste text includes the entire form, so I'm excluding it here. I also added some spaces in the link above to keep the text within the post.)
8Gypsy_Boy
I honestly don't understand all of the above, but thought I would note that I have had this same issue now for several days. I try to save one or two extra lines of text on my profile (for books I am currently reading) and I have this same error now on four different browsers and two different computers.
9conceptDawg
This should be fixed.
10tallpaul
I'm still seeing this across all browsers and OS (Chrome & Firefox on OS X, Firefox on Android) (Checked in private/incognito window)
11DeltaQueen50
I am also experiencing problems with editing my Profile Page.
When I try to edit the various sections, I get a message - CH: There was an error validating the form.
When I try to edit the various sections, I get a message - CH: There was an error validating the form.
12conceptDawg
Thanks. I'll take another look.
13conceptDawg
>10 tallpaul: and >11 DeltaQueen50:
I have copied out various pieces of each of your profile description fields and pasted them (in multiples) into my profile sections. So each one is 4-5x the size of your profile information. I have yet to see any errors when saving.
We did post an update earlier. Are you still having problems now?
I have copied out various pieces of each of your profile description fields and pasted them (in multiples) into my profile sections. So each one is 4-5x the size of your profile information. I have yet to see any errors when saving.
We did post an update earlier. Are you still having problems now?
14DeltaQueen50
>13 conceptDawg: Yes! It's now working - thank you.
15tallpaul
It's working now, where it wasn't last night. There may have been a delay in distributing new JS? closing.

