Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Problem w/ Subjects Mod  Bottom

  • Whenever I view a page using this mod (i.e. the subjects_user_viewpage func) I get that annoying headers already sent warning

    Warning: Cannot modify header information - headers already sent by (output started at C:\GuitarDreamsNew\public_html\modules\subjects\pnuser.php:1952) in C:\GuitarDreamsNew\public_html\includes\pnHTML.php on line 334


    Does anyone know why on earth this is happening? It is so annoying - I can't activate this mod on my live site because users will see that damn warning every time!

    -brian
  • Most errors of the "Cannot add header information..." type can be fixed by removing surplus whitespace, normally at the end of the first mentioned file. See if your modules\subjects\pnuser.php file looks like this at the end:

    1952 ?>
    1953
    1954

    Remove extra lines. Save.
  • I wish that was the case, but there are no extra lines. I think it has something to do with the fact that in one function, there is a call like this

    $output = new pnHTML();
    $output->SetInputMode(_PNH_VERBATIMINPUT);

    Then before that functions ends, it calls a function that also starts with those two lines. And after looking at pnHTML, there is so header related stuff going on in there. But it is beyond me at this point.

    -brian
  • 0 users

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