The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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! Smile


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.

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! Smile

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