Home Learn More Purchase Knowledge Base Support Contact

Community Forums

Forum » KBPublisher General discussion

PHP errors opening admin screen

(3 posts)

  1. jrp2
    Member

    Hello,

    I just installed 3.0RC (downloaded today) and muddled my way through the install. Everything seemed OK during install (checkconfig was all green). When done I tried to go to the admin screen and got the following errors:

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/kbp/admin/config.inc.php:50) in /var/www/kbp/index.php on line 35

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/kbp/admin/config.inc.php:50) in /var/www/kbp/index.php on line 35

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/kbp/admin/config.inc.php:50) in /var/www/kbp/client/inc/KBClientController.php on line 142

    I tried restarting apache, no joy. I tried a different browser on a different PC, no joy. I tried deleting cookies, no joy. Beating my head against the wall helped just a little ;)

    Note, I get the errors regardless of whether I try to go straight to the admin screen (/kbp/admin) or try to login from the public screen (get the errors as soon as I type in the correct password).

    Unfortunately, once I get the errors on the admin side, I cannot go any further.

    KBP is running on an Ubuntu Gutsy Gibbon LAMP server:

    PHP Version 5.2.3-1ubuntu6.3
    Apache Version Apache/2.2.4 (Ubuntu) PHP/5.2.3-1ubuntu6.3

    Clients:

    Ubuntu Gutsy Gibbon with Firefox 2.0.12

    Win XP with Firefox 2.0.13 and IE 7 (*)

    (*) note, I got different line numbers with IE, but otherwise same errors)

    I might note I also get similar errors on the client screen (php debug enabled) but it seems to work (hard to say as I cannot add any articles due to the above problem).

    Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/kbp/admin/config.inc.php:50) in /var/www/kbp/index.php on line 35

    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/kbp/admin/config.inc.php:50) in /var/www/kbp/index.php on line 35

    Any guidance on what might be causing these errors, and how to get around them?

    Thanks,

    JRP2

    Posted 6 months ago #
  2. jrp2
    Member

    Never mind, fixed the problem. Odd thing, seems like a stupid PHP issue I discovered while googling around for this.

    I had an extra blank line at the end of the config.inc.php file. I must have not deleted the entire file before pasting it in and left a blank line in there.

    Posted 6 months ago #
  3. هل يوجد شخص يتحدث العربية هنا؟

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.

© 2008 Double Jade LLC | customer.service@kbpublisher.com