Fork me on GitHub

pnRedirect failing  Bottom

Go to page [-1] 1 - 2:

  • Paustian

    Hammerhead,

    ...

    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
  • 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.
  • Paustian

    Hammerhead,

    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
  • An attribute to the upgrade consistency of using the pnAPI.

    --
    Under Construction!

Go to page [-1] 1 - 2:

This list is based on users active over the last 60 minutes.