PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  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
kenshell
New Member
New Member


Joined: May 11, 2005
Posts: 10

PostPosted: Thu May 12, 2005 6:32 pm Reply with quote Back to top

7.6 was working fine.
I ran 3.0 patch and got this.
I can ruin a wetdream Sad


phpBB : Critical Error

Error creating new session

DEBUG MODE

SQL Error : 1054 Unknown column 'session_admin' in 'field list'

INSERT INTO nuke_bbsessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in, session_admin) VALUES ('08e9c7b6ecd2812ce98abfb07dfcdd42', '1', '1115944229', '1115944229', '458ecf9f', '0', '0', '0')

Line : 203
File : sessions.php
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14925
Location: Kansas

PostPosted: Thu May 12, 2005 8:03 pm Reply with quote Back to top

Did you run the upgradedb.php file? If not, then run it. That should fix it. Here is the latest copy
Code:
<?php

require_once("mainfile.php");
include("header.php");
title("Correcting username length and session_admin field in db tables");
OpenTable();

$result = $db->sql_query("alter table ".$prefix."_stories change informant informant varchar(25) not null default ''");
if (!$result) { echo "Modification one to ".$prefix."_stories failed<br />\n"; } else { echo "Modification one to ".$prefix."_stories performed<br />\n"; }
$result = $db->sql_query("alter table ".$prefix."_stories change aid aid varchar(25) not null default ''");
if (!$result) { echo "Modification two to ".$prefix."_stories failed<br />\n"; } else { echo "Modification two to ".$prefix."_stories performed<br />\n"; }
$result = $db->sql_query("alter table ".$prefix."_autonews change informant informant varchar(25) not null default ''");
if (!$result) { echo "Modification one to ".$prefix."_autonews failed<br />\n"; } else { echo "Modification one to ".$prefix."_autonews performed<br />\n"; }
$result = $db->sql_query("alter table ".$prefix."_autonews change aid aid varchar(25) not null default ''");
if (!$result) { echo "Modification two to ".$prefix."_autonews failed<br />\n"; } else { echo "Modification two to ".$prefix."_autonews performed<br />\n"; }
$result = $db->sql_query("alter table ".$prefix."_reviews change reviewer reviewer varchar(25) default NULL");
if (!$result) { echo "Modification to ".$prefix."_reviews failed<br />\n"; } else { echo "Modification to ".$prefix."_reviews performed<br />\n"; }
$result = $db->sql_query("alter table ".$prefix."_reviews_add change reviewer reviewer varchar(25) not null default ''");
if (!$result) { echo "Modification to ".$prefix."_reviews_add failed<br><br />\n"; } else { echo "Modification to ".$prefix."_reviews_add performed<br><br />\n"; }
$result = $db->sql_query("ALTER TABLE ".$prefix."_bbsessions ADD COLUMN session_admin tinyint(2) DEFAULT '0' NOT NULL");
if (!$result) { echo "Modification to ".$prefix."_bbsessions failed<br><br />\n"; } else { echo "Modification to ".$prefix."_bbsessions performed<br><br />\n"; }
$result = $db->sql_query("UPDATE ".$prefix."_bbconfig SET config_value='.0.15' where config_name='version'");
if (!$result) { echo "Modification to ".$prefix."_bbconfig failed<br><br />\n"; } else { echo "Modification to ".$prefix."_bbconfig performed<br><br />\n"; }

echo "Correction finished, <b>Delete this file now!</b><br><br />\n";
echo "Back to <a href=\"index.php\">website</a>\n";
CloseTable();
include("footer.php");
 
?>
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14925
Location: Kansas

PostPosted: Thu May 12, 2005 8:05 pm Reply with quote Back to top

Or, just use phpMyAdmin and run this query
Code:
ALTER TABLE nuke_bbsessions ADD COLUMN session_admin tinyint(2) DEFAULT '0' NOT NULL
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
kenshell
New Member
New Member


Joined: May 11, 2005
Posts: 10

PostPosted: Fri May 13, 2005 3:37 am Reply with quote Back to top

thanks raven.
that did it.

lemme back it up now Wink

Raven wrote:
Or, just use phpMyAdmin and run this query
Code:
ALTER TABLE nuke_bbsessions ADD COLUMN session_admin tinyint(2) DEFAULT '0' NOT NULL
View user's profile Send private message
manunkind
Client


Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Sun May 15, 2005 9:34 am Reply with quote Back to top

I had this problem too. Running the file does not update the DB. I had to do it manually.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14925
Location: Kansas

PostPosted: Sun May 15, 2005 10:32 am Reply with quote Back to top

The file that ships with 7.7 does not have that code in it. Chat added it in his 3.0 fixes. That's why I posted the correct one up above and not the one that ships with 7.7
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Defcon
Regular
Regular


Joined: Mar 10, 2005
Posts: 85

PostPosted: Fri Jul 29, 2005 1:09 am Reply with quote Back to top

I also get this problem too. Raven, did u have a complete patch 7.6 where you already did a correction such this error?
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 4553
Location: Poland

PostPosted: Fri Jul 29, 2005 3:23 am Reply with quote Back to top

The upgrade file is shipped with Chatserv's patched 2.9 and 3.0 series for that version of nuke - see the front page of this site for the download link.
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-2008 by Raven
Proud to be listed at Lobo Links Web Directory

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 Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

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

zerosum