Re: [phpOpenTracker-general] session_register() & Incorrect key file for table: 'pot_visitors' problem
Andreas Israel <[email protected]> Thu, 14 Jul 2005 20:18:01 +0200
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
Hello Jeroen, [email protected] schrieb: >I get this error message: >Warning: session_register(): Cannot send session cookie - headers already >sent by (output started at /srv/www/htdocs/jeroen/tracker/testlog.php:5) >in >/usr/share/php/phpOpenTracker/Container.php on line 67 > >Warning: session_register(): Cannot send session cache limiter - headers >already sent (output started at >/srv/www/htdocs/jeroen/tracker/testlog.php:5) >in /usr/share/php/phpOpenTracker/Container.php on line 67 > >phpOpenTracker Error: Incorrect key file for table: 'pot_visitors'. Try to >repair it > > The problem is that there is an errormessage -->" phpOpenTracker Error: Incorrect key file for table: 'pot_visitors'. Try to repair it" This is why the session cookie cannot send. This errormessage appears ever when there has something sent to browser, BEFORE the cookie is set. There are two steps to solve your problem: * repair the corrupt table, or build a blank new one * do not send phpOpenTacker errormessages to screen. (This is set in the config-file (see: http://phpopentracker.de/docs/en/configuration.html#configuration.config-file .)) ~~~~~~~ schnipp ~~~~~~~ * debug_level o 0 Don't output error and warning messages. o 1 (default) Output error and warning messages. o 2 Output additional debugging messages. * Note: When using phpOpenTracker in production you most likely want to set this directive to '0' whereas in an initial testing phase a value of '1' is advisable. Use '2' only for debugging purposes. * ..... * log_errors If set to 'On', this directive makes phpOpenTracker log error and warning messages to a logfile. Make sure that your webserver is allowed to write to the file: cd /path/to/phpOpenTracker touch error.log chmod 666 error.log * Note: When using phpOpenTracker in production (after an initial testing phase) you most likely want to set this directive to 'On'. * ~~~~~~~ schnapp ~~~~~~~ These two settings are relevant for your problem. HTH Andreas