Author |
Message |
kaelafrost
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
Joined: Dec 11, 2006
Posts: 2
|
Posted:
Tue Dec 12, 2006 3:06 pm |
|
phpBB : Critical Error
Error removing auto-login keys
DEBUG MODE
SQL Error : 1146 Table 'xxx.SESSIONS_KEYS_TABLE' doesn't exist
DELETE FROM SESSIONS_KEYS_TABLE WHERE user_id = 31
Line : 514
File : sessions.php
This is the Error I'm getting..I have been all over this forum and tried everything I could possibly find to try
This is as of LAST NIGHT this forum was working to perfection...We have not installed one mod on this forum. No Hacks or anything. I haven't even attempted to ever add one as this forum doesn't need any.
I up graded to phpnuke 8 a month ago and this is the first error...
Like I said.Last night it was perfect...tonight it is not
oh and I'm running phpnuke 8 with phpBB 2.0.20 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kguske
Site Admin
![](modules/Forums/images/avatars/41f0b40a419280935f3a0.gif)
Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Tue Dec 12, 2006 4:05 pm |
|
Welcome. First, be careful about posting public messages that contain root paths or, in this case, database names, as that could be used in attacks against your site.
Errors like this indicate a problem with the database. If it can't delete from a table, it could be that it had a problem creating it in the first place. Since it was working yesterday, I'd recommend using phpMyAdmin to analyze and repair the database. |
_________________ I search, therefore I exist...
Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
kaelafrost
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Dec 12, 2006 4:08 pm |
|
Okies....I've been looking in phpadmin all day....and well I'm not sure what or where I need to look to fix anything |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Tue Dec 12, 2006 4:39 pm |
|
One - SESSIONS_KEYS_TABLE needs to be defined in includes/constants.php
Code:
define('SESSIONS_KEYS_TABLE', $prefix.'_bbsessions_keys');
|
Two - the sessions_keys table needs to be created using the following
Code:
CREATE TABLE nuke_bbsessions_keys (key_id varchar(32) DEFAULT '0' NOT NULL, user_id mediumint(8) DEFAULT '0' NOT NULL, last_ip varchar(8) DEFAULT '0' NOT NULL, last_login int(11) DEFAULT '0' NOT NULL, PRIMARY KEY (key_id, user_id), KEY last_login (last_login))
|
Sounds like another bug from FB on 8.0 |
_________________ - Only registered users can see links on this board! Get registered or login! -
Need help? Only registered users can see links on this board! Get registered or login! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
Site Admin
![](modules/Forums/images/avatars/125904890252d880f79f312.png)
Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Tue Dec 12, 2006 5:02 pm |
|
Not bad, thats only 300 bugs so far |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utalice
New Member
![New Member New Member](modules/Forums/images/ranks/1star.gif)
![](modules/Forums/images/avatars/Animaniacs/Animaniacs_-_Hello_Nurse_2.gif)
Joined: Jan 07, 2008
Posts: 11
|
Posted:
Mon Jan 07, 2008 9:55 pm |
|
evaders99 wrote: | One - SESSIONS_KEYS_TABLE needs to be defined in includes/constants.php
Code:
define('SESSIONS_KEYS_TABLE', $prefix.'_bbsessions_keys');
|
Two - the sessions_keys table needs to be created using the following
Code:
CREATE TABLE nuke_bbsessions_keys (key_id varchar(32) DEFAULT '0' NOT NULL, user_id mediumint(8) DEFAULT '0' NOT NULL, last_ip varchar(8) DEFAULT '0' NOT NULL, last_login int(11) DEFAULT '0' NOT NULL, PRIMARY KEY (key_id, user_id), KEY last_login (last_login))
|
Sounds like another bug from FB on 8.0 |
Could someone pls point out where the constants.php file is in 8.0 or 8.1? Because I don't have one in either version in the includes directory.
=(
Seems like one headache after another. I'm a new user to phpnuke, not knowing sql or phpnuke and I must say...this is not a database for non-coders! |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 08, 2008 1:02 am |
|
Why not switch to RavenNuke then?
At least it has an official support team unlike phpNuke
Sorry I cannot help with the nuke 8.0 question. Like many, I won't touch it because it is so bug ridden. |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Jan 08, 2008 2:02 pm |
|
They were moved into modules/Forums/includes (which probably screws up some more things with more code changes in 8.0) |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utalice
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jan 11, 2008 12:47 pm |
|
Guardian2003 wrote: | Why not switch to RavenNuke then?
At least it has an official support team unlike phpNuke
Sorry I cannot help with the nuke 8.0 question. Like many, I won't touch it because it is so bug ridden. |
I'm sorry, I don't know anything about RavenNuke. Could somone point me to some info on it and give me some idea of how it runs and what the difference is in using phpnuke and RavenNuke?
Thanks so much...
A|ice |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
warren-the-ape
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/5064660247507d6711183.jpg)
Joined: Nov 19, 2007
Posts: 196
Location: Netherlands
|
Posted:
Fri Jan 11, 2008 1:01 pm |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utalice
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jan 11, 2008 1:16 pm |
|
After I changed the above mentioned in the constants.php file, I now get this when I try to log into Forums from the Administration Menu panel:
phpBB : Critical Error
Error doing DB query userdata row fetch
DEBUG MODE
SQL Error : 1054 Unknown column 's.session_id' in 'where clause'
SELECT u.*, s.* FROM nuke_bbsessions_keys s, nuke_users u WHERE s.session_id = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' AND u.user_id = s.session_user_id
Line : 317
File : sessions.php
Line 317 is:
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
From this section:
//
// Does a session exist?
//
if ( !empty($session_id) )
{
//
// session_id exists so go ahead and attempt to grab all
// data in preparation
//
$sql = "SELECT u.*, s.*
FROM " . SESSIONS_TABLE . " s, " . USERS_TABLE . " u
WHERE s.session_id = '$session_id'
AND u.user_id = s.session_user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
}
$userdata = $db->sql_fetchrow($result); |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Fri Jan 11, 2008 3:18 pm |
|
If this is a new site, I would still recommend ripping it all out in favour of installing RavenNuke.
More details about RavenNuke appear on the front page of this site |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
utalice
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Sun Jan 13, 2008 5:38 pm |
|
By "ripping it out", do I just delete all of the PhPNuke folders?
thanks |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Guardian2003
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Mon Jan 14, 2008 3:46 am |
|
Yes, remove all the phpnuke files and upload the RavenNuke one.
The RavenNuke installer will automatically re-create the database tables (but you will lose any exiting user data etc). |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|