PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
kaelafrost
New Member
New Member


Joined: Dec 11, 2006
Posts: 2

PostPosted: Tue Dec 12, 2006 3:06 pm Reply with quote Back to top

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
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Tue Dec 12, 2006 4:05 pm Reply with quote Back to top

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.
View user's profile Send private message
kaelafrost
New Member
New Member


Joined: Dec 11, 2006
Posts: 2

PostPosted: Tue Dec 12, 2006 4:08 pm Reply with quote Back to top

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
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Dec 12, 2006 4:39 pm Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Tue Dec 12, 2006 5:02 pm Reply with quote Back to top

Not bad, thats only 300 bugs so far
View user's profile Send private message Send e-mail Visit poster's website
utalice
New Member
New Member


Joined: Jan 07, 2008
Posts: 11

PostPosted: Mon Jan 07, 2008 9:55 pm Reply with quote Back to top

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!
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Tue Jan 08, 2008 1:02 am Reply with quote Back to top

Why not switch to RavenNuke then?
At least it has an official support team unlike phpNuke Smile

Sorry I cannot help with the nuke 8.0 question. Like many, I won't touch it because it is so bug ridden.
View user's profile Send private message Send e-mail Visit poster's website
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue Jan 08, 2008 2:02 pm Reply with quote Back to top

They were moved into modules/Forums/includes (which probably screws up some more things with more code changes in 8.0)
View user's profile Send private message Visit poster's website
utalice
New Member
New Member


Joined: Jan 07, 2008
Posts: 11

PostPosted: Fri Jan 11, 2008 12:47 pm Reply with quote Back to top

Guardian2003 wrote:
Why not switch to RavenNuke then?
At least it has an official support team unlike phpNuke Smile

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
View user's profile Send private message
warren-the-ape
Worker
Worker


Joined: Nov 19, 2007
Posts: 196
Location: Netherlands

PostPosted: Fri Jan 11, 2008 1:01 pm Reply with quote Back to top

Did you install a new bb2nuke (phpbb) update (2.0.20)?

According to a few sites you need to install those bb2nuke sequentually.
f.e.; from 2.0.17, first to 2.0.18 then 2.0.19 and finally 2.0.20
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
utalice
New Member
New Member


Joined: Jan 07, 2008
Posts: 11

PostPosted: Fri Jan 11, 2008 1:16 pm Reply with quote Back to top

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);
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Fri Jan 11, 2008 3:18 pm Reply with quote Back to top

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
View user's profile Send private message Send e-mail Visit poster's website
utalice
New Member
New Member


Joined: Jan 07, 2008
Posts: 11

PostPosted: Sun Jan 13, 2008 5:38 pm Reply with quote Back to top

By "ripping it out", do I just delete all of the PhPNuke folders?

thanks
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

PostPosted: Mon Jan 14, 2008 3:46 am Reply with quote Back to top

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).
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum