PostNuke: A Flexible Open Source Content Management System
home | forum | international support | contact us

Support Forum

Start ::  Developers Corner ::  Module Development ::  pnRedirect failing

Moderated by: Support Team

Goto page : Previous Page 1 | 2
Bottom
pnRedirect failing

  • Link to this postingPosted: 08.08.2006, 21:34
    Profile
    excloudis
    rank:
    Registered User Registered User
    registered:
     July 2006
    Status:
    offline
    last visit:
    08.08.06
    Posts:
    1
    PaustianHammerhead,

    ...

    This pointed to my pnTables.php file. I had some extra return characters after the closing ?> at the end of the file. Elimination of these fixed the problem.

    Thanks to everyone who helped on this. BTW, Andreas and I are almost finished with a major upgrade of the Exams module.


    Your RIGHT!!!! that points in my case to a blank line after the ?> tag in a language file, I delete ti and now its working smoth... thanks a lot icon_razz
  • Link to this postingPosted: 08.08.2006, 21:43
    Profile
    Paustian
    rank:
    pnHelper pnHelper
    registered:
     May 2005
    Status:
    offline
    last visit:
    23.04.08
    Posts:
    105
    excloudis,

    You're welcome. Looks like the search function is doing its job. I hope this thread saved you some time, as it took me a while to work this out.

    Tim.
  • Link to this postingPosted: 16.02.2008, 08:41
    Profile
    daliri_ha
    rank:
    pnFreshman pnFreshman
    registered:
     April 2007
    Status:
    offline
    last visit:
    17.02.08
    Posts:
    33
    PaustianHammerhead,
    Thanks. I had already seen that thread, but none of the suggestions helped. Anyhow, I was alble to solve the problem by reading up a bit on headers_sent(). It turns out there are two optional parameters that are very useful for tracking down this sort of problem. Here is the code I used
    Code
    function Exams_admin_test()
    {
        if (headers_sent($filename, $linename)) {
                echo "headers are already sent in $filename at $linename";
        } else {
                pnRedirect(pnModURL('Exams', 'admin', 'viewitems'));
                return true;
        }
    }

    This pointed to my pnTables.php file. I had some extra return characters after the closing ?> at the end of the file. Elimination of these fixed the problem.
    Thanks to everyone who helped on this. BTW, Andreas and I are almost finished with a major upgrade of the Exams module.


    thanks you . the answer was on 2006 and my problem is on 2008 . it solved my today problem . alway the history is useful!
    icon_cool
  • Link to this postingPosted: 17.02.2008, 15:08
    Profile
    Topiatic
    rank:
    pnProfessional pnProfessional
    registered:
     November 2003
    Status:
    online
    Posts:
    1531
    An attribute to the upgrade consistency of using the pnAPI.

    -----
    viewTopiaryWorks($twWorks, $twRosterMaster)
Goto page : Previous Page 1 | 2

Start ::  Developers Corner ::  Module Development ::  pnRedirect failing

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to PostNuke