404.php - Cannot modify header information

Doesn't matter the theme...getting this error with only the 404 page...

Zenphoto version 1.4.3.3 [10980]

Notice: Zenphoto processed a 404 error on /index.php?p=gallery55. See the debug log for details. in /zp-core/functions.php on line 2063

Warning: Cannot modify header information - headers already sent by (output started at /zp-core/functions.php:2063) in /index.php on line 103

Warning: Cannot modify header information - headers already sent by (output started at /zp-core/functions.php:2063) in /index.php on line 104

Warning: Cannot modify header information - headers already sent by (output started at /zp-core/functions.php:2063) in /index.php on line 105

Comments

  • Please, what do the debug log details reveal? Under what circumstances do you get this? Have you tried version 1.4.3.4?

    BTW, the "cannot modify header information" is downstream results of the 404 error.
  • It's simply when the 404 pages displays. Regardless of the theme! I just add an extra character to a page name to create the error...There are no other debug errors on any other page load...only when the 404 pages loads...and I see the error I posted in my first post.

    I looked for the normal space at the end or beginning of one of the php pages that usually cause the headers error - and I found a space at the end of functions.php but that didn't solve the problem.

    Below is the entire debug error log when the 404 page is accessed.

    I did NOT try the latest version as it seems as if that was JUST released...

    {Sun, 04 Nov 2012 13:21:40 GMT} Zenphoto v1.4.3.3[10980]

    Backtrace: USER NOTICE: Zenphoto processed a 404 error on /index.php?p=pages&title=contact-us22. See the debug log for details. in /var/www/leadgtr.com/dev/zp-core/functions.php on line 2063

    trigger_error called

    from debug404 (functions.php [2063])

    from index.php [100]

    {Sun, 04 Nov 2012 13:21:40 GMT}

    404 error: album=; image=; theme=leadgtr

    {Sun, 04 Nov 2012 13:21:40 GMT}

    $_SERVERarray(28) {

    ["HTTP_HOST"]=>

    string(15) "dev.leadgtr.com"

    ["HTTP_USER_AGENT"]=>

    string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0"

    ["HTTP_ACCEPT"]=>

    string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"

    ["HTTP_ACCEPT_LANGUAGE"]=>

    string(14) "en-US,en;q=0.5"

    ["HTTP_ACCEPT_ENCODING"]=>

    string(13) "gzip, deflate"

    ["HTTP_CONNECTION"]=>

    string(10) "keep-alive"

    ["HTTP_COOKIE"]=>

    string(97) "zp_user_auth=4787a20abaa5e0f9fddeea92c143f99698808eb6; PHPSESSID=966a2733db15cc1ecda355292d54fc29"

    ["PATH"]=>

    string(28) "/usr/local/bin:/usr/bin:/bin"

    ["SERVER_SIGNATURE"]=>

    string(116) "Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.23 with Suhosin-Patch Server at dev.leadgtr.com Port 80

    "

    ["SERVER_SOFTWARE"]=>

    string(62) "Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.23 with Suhosin-Patch"

    ["SERVER_NAME"]=>

    string(15) "dev.leadgtr.com"

    ["SERVER_ADDR"]=>

    string(14) "69.164.212.234"

    ["SERVER_PORT"]=>

    string(2) "80"

    ["REMOTE_ADDR"]=>

    string(14) "71.225.216.250"

    ["DOCUMENT_ROOT"]=>

    string(24) "/var/www/leadgtr.com/dev"

    ["SERVER_ADMIN"]=>

    string(18) "[no address given]"

    ["SCRIPT_FILENAME"]=>

    string(34) "/var/www/leadgtr.com/dev/index.php"

    ["REMOTE_PORT"]=>

    string(5) "55025"

    ["GATEWAY_INTERFACE"]=>

    string(7) "CGI/1.1"

    ["SERVER_PROTOCOL"]=>

    string(8) "HTTP/1.1"

    ["REQUEST_METHOD"]=>

    string(3) "GET"

    ["QUERY_STRING"]=>

    string(26) "p=pages&title=contact-us22"

    ["REQUEST_URI"]=>

    string(37) "/index.php?p=pages&title=contact-us22"

    ["SCRIPT_NAME"]=>

    string(10) "/index.php"

    ["PHP_SELF"]=>

    string(10) "/index.php"

    ["REQUEST_TIME"]=>

    int(1352035300)

    ["argv"]=>

    array(1) {

    [0]=>

    string(26) "p=pages&title=contact-us22"

    }

    ["argc"]=>

    int(1)

    }

    {Sun, 04 Nov 2012 13:21:40 GMT}

    $_REQUESTarray(4) {

    ["p"]=>

    string(5) "pages"

    ["title"]=>

    string(12) "contact-us22"

    ["zp_user_auth"]=>

    string(40) "4787a20abaa5e0f9fddeea92c143f99698808eb6"

    ["PHPSESSID"]=>

    string(32) "966a2733db15cc1ecda355292d54fc29"

    }

    {Sun, 04 Nov 2012 13:21:40 GMT}

    {Sun, 04 Nov 2012 13:21:40 GMT}

    Backtrace: WARNING: Cannot modify header information - headers already sent by (output started at /var/www/leadgtr.com/dev/zp-core/functions.php:2063) in /var/www/leadgtr.com/dev/index.php on line 103

    header called

    from index.php [103]

    {Sun, 04 Nov 2012 13:21:40 GMT}

    Backtrace: WARNING: Cannot modify header information - headers already sent by (output started at /var/www/leadgtr.com/dev/zp-core/functions.php:2063) in /var/www/leadgtr.com/dev/index.php on line 104

    header called

    from index.php [104]

    {Sun, 04 Nov 2012 13:21:40 GMT}

    Backtrace: WARNING: Cannot modify header information - headers already sent by (output started at /var/www/leadgtr.com/dev/zp-core/functions.php:2063) in /var/www/leadgtr.com/dev/index.php on line 105

    header called

    from index.php [105]
  • Ok, I understand. This is debugging information that should not be activated in a released version of Zenphoto. But if you got your scripts from the SVN, for instance, you would get this on any 404 error.

    So it should go away with a released 1.4.3.4 set of scripts.
  • ok cool I'll just get the latest version. Thanks.
  • That worked!
Sign In or Register to comment.