Forums / Feature Request / [ ] 500 Server Error and simil...

[ ] 500 Server Error and similar error pages

Bloopy·10 replies

[ ] 500 Server Error and similar error pages
Bloopy
3 months ago
Jun 19, 2023 - 8:57pm
Trying to do certain things on the site results in a plain 500: Server Error page with no menu or anything:

1.) Blank searches (click into the search box and only type spaces or don't type anything before pressing enter)

2.) Clicking certain outdated links in the forum, eg.
- https://bandtoband.com/artist/andy-pietroluongo (artist was renamed - maybe this could redirect to search)
- https://bandtoband.com/album/sugarland/music (album was renamed - maybe this could redirect to bandtoband.com/band/sugarland and then if the band doesn't exist, it could redirect to a search for "sugarland")


Ideally the menu/template of the site would still be there if possible so people can keep clicking around more easily. Like it is for these links:
https://bandtoband.com/band/sugarland/music (though this could also redirect to bandtoband.com/band/sugarland)
https://bandtoband.com/forums/wiki-world/non-existent-thread-50000 (this one should probably say "Thread not found" or something like that)


Then there's old thread links such as https://bandtoband.com/forums/viewtopic.php?t=460 which give a plain "No input file specified" page. Do you have a mapping of old thread IDs to new that you could use to rescue these links and make them work with a redirect?
···
Bloopy
3 months ago
Jun 22, 2023 - 7:58pm
I had the idea that blank searches could take people to The BandToBand Band's page as a bit of an Easter egg, but if I'm the only one silly enough to try searching an empty string then maybe it's a waste of effort. :D
500
Kevin
3 months ago
Jun 26, 2023 - 10:33am
I really should make a customized error page for 500 error responses. I have a few in place already: 400, 404. What I really need to do is build an admin page for all admin functions, easter eggs, etc. Let me try doing that first then looking at custom pages deeper.


Kevin
Admin Page
Kevin
2 months ago
Jun 27, 2023 - 3:34pm
I've put up a basic admin page for users with permission to see it. It only has 3 options so far but it's a place I can continually add to over time. You can navigate there via the user dropdown menu on the top right of pages.


Kevin
Id
Kevin
2 months ago
Jun 28, 2023 - 11:28am
Added an album Id lookup to admin page.
···
bgzimmer
2 months ago
Jun 30, 2023 - 10:17am
The error page I see most often is "419 error - page expired," since I have a habit of leaving b2b open for a while and then trying to use the search box. Any way to avoid that?
419
Kevin
2 months ago
Jun 30, 2023 - 11:43am
I get that expired page as well, let me see what I can do about that and the 500.

I've just loaded an admin page for the 29 live albums missing cover images. That should be available for everyone now too.


Kevin
419 - Session time out
Kevin
2 months ago
Jun 30, 2023 - 1:18pm
The 419 is the session timeout and happens when the browser window is left open and idle for too long. I'm going to extend the session lifetime in the site's configuration. When you do normally hit the timeout (it should usually be a form submission I think)? I get it from doing a search after leaving the page open and idle for a while.


Kevin
···
bgzimmer
2 months ago
Jul 1, 2023 - 10:06am
Yeah, it's most often when I do a search after leaving b2b open for a while. But I think it happens with other actions on an idle page too? [Edit: probably just the search actually.]
Time Outs
Kevin
2 months ago
Jul 2, 2023 - 10:37am
As part of standard security measures, forms time out after a certain period of time. This is because if you're editing a form it means you're probably logged in to a website and if a user leaves a form open and walks away from their machine, someone else can step up and edit that form to some degree. Here, it's not that big of a deal because I have user logins set to never expire anyway so accessing someone's form fields isn't that big a security hole. Nonetheless these security features are different parts of the whole. I have now extended the logout period for forms from 2 hours to 3 days. That should allow pages to be left open without a short expiry but still not leave that timeout check wide open.

I should still do a custom 419 page anyway. So much to work on...


Kevin
···
Bloopy
2 months ago
Jul 17, 2023 - 4:08am
Sometimes I click a legacy link in an old forum post, eg. something like:
http://www.bandtoband.com/wiki/edit/made-up-band/fake-album

Then I do a search from that page and it results in a 419: Page Expired error straight away, even if done within mere seconds.
© BandToBand.com
Mapping the Rock 'N Roll genome since 2005