The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Cockroach-sized bug? - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: General Discussion (https://forums.formtools.org/forumdisplay.php?fid=5) +--- Thread: Cockroach-sized bug? (/showthread.php?tid=136) |
Cockroach-sized bug? - stevenheidel - May 2nd, 2009 This only occurred after I updated formtools to the latest version. My formtools is located at http://mysite.ca/database/ I know that in formtools after being logged in, if you leave and then come back it returns to the page where you were at. However, say I was at http://mysite.ca/database/admin/forms, I close the window, and then browse to http://mysite.ca/database/ again it goes to http://mysite.ca/admin/forms. (Without the database!) If I empty my cache it works fine again. Help? RE: Cockroach-sized bug? - Ben - May 6th, 2009 Ah - actually this is on purpose! I added it the last version. The thing was, whenever you'd return to the login page (http://mysite.ca/database/) after having already logged in, you'd see the login panel again. This was kind of weird. So instead, it now automatically redirects to the user account's login page, by default the form list page. Would you prefer it to work the same way as before? I must admit, myself I rather like this. I found the login panel re-appearing rather weird... I didn't have any reason to want to return to the original login page, so this solution made sense to me. But feel free to disagree! ![]() RE: Cockroach-sized bug? - stevenheidel - May 6th, 2009 (May 6th, 2009, 6:04 PM)Ben Wrote: Ah - actually this is on purpose! I added it the last version. The thing was, whenever you'd return to the login page (http://mysite.ca/database/) after having already logged in, you'd see the login panel again. This was kind of weird. That's all fine and dandy, but the problem is it strips the subfolder from the user account's login page. I would love it if I returned and found myself still logged in, but what I don't love is how I get a page not found error because of the subfolder not being included. RE: Cockroach-sized bug? - Ben - May 9th, 2009 Ohhh, I see. Rats, let me look at the code. RE: Cockroach-sized bug? - Ben - May 9th, 2009 Yup, this is a bug. It's a simple fix; I'll include it in the next release (today or tomorrow). If you don't want to wait, just edit line 12 of index.php (found in your Form Tools root folder) from this: PHP Code: header("location: {$g_pages[$login_page]}"); to this: PHP Code: header("location: {$g_root_url}{$g_pages[$login_page]}"); Thanks for reporting this. - Ben |