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
Page redirect - 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: Page redirect (/showthread.php?tid=1531)



Page redirect - Lina - Aug 13th, 2011

Hello Ben,

I think something is wrong with code on the index.php page:

Code:
// if this user is already logged in, redirect them to their specified login page
if (isset($_SESSION["ft"]["account"]) && isset($_SESSION["ft"]["account"]["is_logged_in"]) &&
  isset($_SESSION["ft"]["account"]["login_page"]) && $_SESSION["ft"]["account"]["is_logged_in"] == 1)
{
  $login_page = $_SESSION["ft"]["account"]["login_page"];
  header("location: {$g_root_url}{$g_pages[$login_page]}");

if login page is the main page of any module, or custom page (defined in Pages module) page doesn't redirect properly and FF displays message: "The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete."


I think the problem is $g_pages[$login_page], but I don't know how to fix it. Sad Could you help, master? Smile

Thank you,
Lina


RE: Page redirect - Ben - Aug 15th, 2011

Ooh...! Interesting! Let me look this over. I'm surprised, though... $g_pages should contain all pages, even those custom defined by modules.

I'll post you back later.

[EDIT: ack! You're right. I'll include a fix for this in today's build. Thanks for letting me know!]

- Ben


RE: Page redirect - Ben - Aug 15th, 2011

Okay, it's fixed locally. I have a lot of other little things to do today, but I will get it into today's build.

One thing I never asked: did the new date format options I added in the previous build work for you?

- Ben


RE: Page redirect - Lina - Aug 15th, 2011

(Aug 15th, 2011, 8:16 AM)Ben Wrote: Okay, it's fixed locally. I have a lot of other little things to do today, but I will get it into today's build.

One thing I never asked: did the new date format options I added in the previous build work for you?

- Ben

Thank you Ben! Smile
Fix for page redirect is only in index.php? Could I only replace old index.php with this one in new build?

The new date format works great! On my form page I use old DHTML calendar from demo registration form, so I had a little trouble with date format. Now date format in database have to be 2011-08-02 00:00:00 (date AND time). If not, it's not displayed on view/edit submission page. So I have to change it in my form ifFormat/daFormat.
I would like to implement this fancy calendar picker from FT inner pages. Smile

Thank you so much for your hard work!
Lina




RE: Page redirect - Ben - Aug 15th, 2011

Quote:Fix for page redirect is only in index.php? Could I only replace old index.php with this one in new build?

Yup! But I'd upgrade anyway. I made today's build the final 2.1.0 version. For the last couple of weeks, virtually all the bugs I've been fixing were carried over from 2.0.x (including this one), so it's time!

Of course, later today when you find more bugs, I'll have to come out with 2.1.1. Wink

All the best -

Ben