Redirect not working
Posted: 01 October 2008 06:33 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  97
Joined  07-13-2008

Hello,

I have a problem I’ve never encountered before. In one of my modules, I have an action that processes a form and then redirects to a different page.

At the end of this function, I have the following:

$FNS->redirect($FNS->create_url('test/results'));

As soon as my module hits this page, activity seems to halt - the browser displays ‘Loading..’ and doesn’t continue. I sit there and wait for a 408 HTTP Request Timeout.

Any ideas?

Thanks,
Mike

Profile
 
 
Posted: 03 October 2008 05:20 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1994
Joined  05-07-2007

That’s strange.  Are you sure everything above it is being processed correctly, and the redirect is what is borking?

 Signature 
Profile
MSG
 
 
Posted: 06 October 2008 05:52 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Rank
Total Posts:  97
Joined  07-13-2008

I found out that this occurs when the template hasn’t been created yet for the page that I redirect to.

Profile
 
 
   
 
 
‹‹ ANO XML Parser      Navigator and URL issues ››
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64912 Total Logged-in Users: 24
Total Topics: 81863 Total Anonymous Users: 18
Total Replies: 440100 Total Guests: 202
Total Posts: 521963    
Members ( View Memberlist )
Newest Members:  bjmohrAqua193Bios Elementmjpoteetguimogranwelshmrcfthenetmonkeybenekwhobutsb