The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
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 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. Could you help, master? 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. Thank you Ben! 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. 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. All the best - Ben |