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
Will not login on first try - 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: Will not login on first try (/showthread.php?tid=676)



Will not login on first try - bill09 - Apr 28th, 2010

Hi Ben,

For some reason I have to login twice to get into Formtools. (admin or client)

When I enter the login information, I receive the following error:
"No user account ID was found in sessions. Please log in again below."

The second attempt, using the same credentials, always works.

I have tried using IE8 and Chrome browsers with the same result.

I looked on the forums and tried adding $g_session_type = "database"; to config, but then I could not login at all.

Have you run into this before?

Thanks,

Bill


RE: Will not login on first try - Ben - Apr 29th, 2010

Hi Bill,

This can happen if you link to http://www.yoursite.com/ or http://yoursite.com and the $g_root_url value has the other one specified (see your /global/config.php). What happens is that the script creates the login session information on one location, then redirects to a URL based on $g_root_url, which is then unable to FIND the sessions and boots you out. Second time round, the URL is the same so you can log in.

The simple fix is to link to the right URL first time round. Alternatively (and more elegantly), some hosts let you force there to be either www or not showing up for all URLs. That will fix it automatically.

Hope this helps -

- Ben


RE: Will not login on first try - bill09 - Apr 29th, 2010

Ben,

That did it! Changed it in the config file. Thanks.

One thing I noticed that was strange though, even though the logout URL was also updated with the www prefix, after logging out I am still directed to the URL without the www prefix.

It shows correctly in the settings table also.

Not sure what that is.

Take care,

Bill

(Apr 29th, 2010, 4:36 PM)Ben Wrote: Hi Bill,

This can happen if you link to http://www.yoursite.com/ or http://yoursite.com and the $g_root_url value has the other one specified (see your /global/config.php). What happens is that the script creates the login session information on one location, then redirects to a URL based on $g_root_url, which is then unable to FIND the sessions and boots you out. Second time round, the URL is the same so you can log in.

The simple fix is to link to the right URL first time round. Alternatively (and more elegantly), some hosts let you force there to be either www or not showing up for all URLs. That will fix it automatically.

Hope this helps -

- Ben



RE: Will not login on first try - Ben - May 1st, 2010

Hey Bill,

Yeah, this is a bit annoying, I admit. Whenever I move installations from one site to another this always trips me up. But I think it's largely unavoidable.

The logout URLs are configured for each account and once created are independent of the $g_root_url value. To fix it, just go to Your Account in the Form Tools menu and change the logout URL. Likewise, any client accounts will need to do the same.

- Ben


RE: Will not login on first try - bill09 - May 3rd, 2010

Thanks Ben!

(May 1st, 2010, 10:26 AM)Ben Wrote: Hey Bill,

Yeah, this is a bit annoying, I admit. Whenever I move installations from one site to another this always trips me up. But I think it's largely unavoidable.

The logout URLs are configured for each account and once created are independent of the $g_root_url value. To fix it, just go to Your Account in the Form Tools menu and change the logout URL. Likewise, any client accounts will need to do the same.

- Ben