phpBB problems with mysql? [OT?]
Kevin D. Kinsey, DaleCo, S.P.
kdk at daleco.biz
Mon Feb 2 17:50:48 PST 2004
Eric F Crist wrote:
>This may be a little off-topic, if so, I apologize. I'm running phpBB2 on my
>webserver. I finally got it working, and it's been great since Friday. This
>afternoon, when I try to load the page, I get the following error:
>
>
>
Which page?
> phpBB : Critical Error
>
> Error creating new session
>
>DEBUG MODE
>
>SQL Error : 1062 Duplicate entry '-1' for key 2
>
>INSERT INTO phpbb_sessions (session_id, session_user_id, session_start,
>session_time, session_ip, session_page, session_logged_in) VALUES
>('8f431818aa903b05979098a737674ac3', -1, 1075754200, 1075754200, '3fe40ef5',
>0, 0)
>
>Line : 152
>File : /www/seccomp/htdocs/phpBB2/includes/sessions.php
>
>Does anyone have any suggestions? Thanks!
>
>
This would probably be a great one
for the folks at the phpbuilder.com
forums. Before you head there, I'd
suggest Googling for the error message,
and also checking phpbb.org to see
if this is a FAQ for PHPBB (IIRC, there
is...)
Obviously, some call is returning a
value of negative one. This seems a
tad unusual for PHP, which generally
returns 1 on success, zero on failure.
I doubt that PHPBB calls to system()
or shell_exec(), so it's a little beyond
me. On my PHPBB, line 152 is blank...
but I'm not recalling what version I
have, and I have multiple installations...
Kevin Kinsey
More information about the freebsd-questions
mailing list