You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 52 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Can't access forums [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Wed Apr 18, 2007 6:01 pm Reply with quoteBack to top

I am running phpnuke 7.9, when I try to access the forums from nuke admin, I get this message:
------------------------------------------------------
phpBB : Critical Error

Could not query config information

DEBUG MODE

SQL Error : 1146 Table 'bosbccej_nuke1.config' doesn't exist

SELECT * FROM config

Line : 228
File : common.php
-----------------------------------------------------------

I believe the path should look like this 'bosbccej_nuke1.nuke_config'
HELP!?! My site went online yesterday, can't afford these problems!
Find all posts by treetrollView user's profileSend private message
Evaders99
Site Admin
Site Admin


Joined: Aug 17, 2003
Posts: 12364


PostPosted: Wed Apr 18, 2007 11:11 pm Reply with quoteBack to top

For some reason, its not listing the proper prefix.
Do you have this $prefix set in config.php ?

Is this phpNuke 7.9 unpatched or Patched? Any BBToNuke upgrades? And addons?

_________________
Helping those that help themselves
Read FIRST or DIE!

"Fighting is terrible, but not as terrible as losing the will to fight."
Star Wars Rebellion Network - Need Help? Evaders Squadron Coding
Find all posts by Evaders99View user's profileSend private messageVisit poster's websiteAIM Address
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Wed Apr 18, 2007 11:26 pm Reply with quoteBack to top

Main file config lists the prefix:

$dbhost = "localhost";
$dbuname = "bosbccej_nuke1";

$dbname = "bosbccej_nuke1";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SwSDsyrrVImDS9UcHpL2Df/%(-0394·$%/";
$gfx_chk = 0;
$subscription_url = "";
$admin_file = "admin";
$tipath = "images/topics/";
$nuke_editor = 1;
$display_errors = false;



Forums config looks like this:

<?php

if(defined('INSIDE_MOD')) {
@include_once("mainfile.php");
} else {
@include_once("../../mainfile.php");
}
define('PHPBB_INSTALLED', true);

?>


I am running 7.9 unpatched, no upgrades


Last edited by treetroll on Thu Apr 19, 2007 12:48 am; edited 1 time in total
Find all posts by treetrollView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Thu Apr 19, 2007 12:38 am Reply with quoteBack to top

Hide your dbpass...

$prefix must be ok or the entire site would lock.
This happens only while admin module access?
It really seems that you modded something...

It's kinda weird, but admin/common.php calls for config_table, witch should be _bbconfig and not _config...

Is
Code:
$sql = "SELECT *
   FROM " . CONFIG_TABLE;
if( !($result = $db->sql_query($sql)) )
{
   message_die(CRITICAL_ERROR, "Could not query config information", "", __LINE__, __FILE__, $sql);
}
this the line in your file?

And isn't
Code:
define('CONFIG_TABLE', $prefix.'_bbconfig');
this in your constants.php ?
Find all posts by eXistenZeView user's profileSend private message
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Thu Apr 19, 2007 1:03 am Reply with quoteBack to top

The code was in common.php, constants.php looks like:

define('CONFIG_TABLE', $table_prefix.'config');

I added _bb, didn't help.

I do get the same error message when trying to access forum from the website.
Find all posts by treetrollView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Thu Apr 19, 2007 2:49 am Reply with quoteBack to top

Put the line exactly has a gave it...
If it doesn't work Just change $table_prefix to $prefix
Find all posts by eXistenZeView user's profileSend private message
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Thu Apr 19, 2007 3:17 am Reply with quoteBack to top

public_html/includes/constants.php-
changed line to - define('CONFIG_TABLE', $prefix.'_bbconfig');

Now get this message - "message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?"
Find all posts by treetrollView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Thu Apr 19, 2007 3:28 am Reply with quoteBack to top

Well... That was my best shot...
Can you place your entire Table names from constants.php here?

One thing I am sure: that constants.php file you have is NOT the default 7.9 build nor the patched one... Are you sure of your nuke build?
Find all posts by eXistenZeView user's profileSend private message
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Thu Apr 19, 2007 3:48 am Reply with quoteBack to top

7.9 installed from cPanel. I have a copy of 7.9 that I downloaded from phpnuke.org, should I try replacing the constants file?


// Table names
define('CONFIRM_TABLE', $table_prefix.'confirm');
define('AUTH_ACCESS_TABLE', $table_prefix.'auth_access');
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CATEGORIES_TABLE', $table_prefix.'categories');
define('CONFIG_TABLE', $table_prefix.'_bbconfig');
define('DISALLOW_TABLE', $table_prefix.'disallow');
define('FORUMS_TABLE', $table_prefix.'forums');
define('GROUPS_TABLE', $table_prefix.'groups');
define('POSTS_TABLE', $table_prefix.'posts');
define('POSTS_TEXT_TABLE', $table_prefix.'posts_text');
define('PRIVMSGS_TABLE', $table_prefix.'privmsgs');
define('PRIVMSGS_TEXT_TABLE', $table_prefix.'privmsgs_text');
define('PRIVMSGS_IGNORE_TABLE', $table_prefix.'privmsgs_ignore');
define('PRUNE_TABLE', $table_prefix.'forum_prune');
define('RANKS_TABLE', $table_prefix.'ranks');
define('SEARCH_TABLE', $table_prefix.'search_results');
define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SESSIONS_KEYS_TABLE', $table_prefix.'sessions_keys');
define('SMILIES_TABLE', $table_prefix.'smilies');
define('THEMES_TABLE', $table_prefix.'themes');
define('THEMES_NAME_TABLE', $table_prefix.'themes_name');
define('TOPICS_TABLE', $table_prefix.'topics');
define('TOPICS_WATCH_TABLE', $table_prefix.'topics_watch');
define('USER_GROUP_TABLE', $table_prefix.'user_group');
define('USERS_TABLE', $table_prefix.'users');
define('WORDS_TABLE', $table_prefix.'words');
define('VOTE_DESC_TABLE', $table_prefix.'vote_desc');
define('VOTE_RESULTS_TABLE', $table_prefix.'vote_results');
define('VOTE_USERS_TABLE', $table_prefix.'vote_voters');
Find all posts by treetrollView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Thu Apr 19, 2007 4:46 am Reply with quoteBack to top

If you have no contents to save, just delete that crap and install either raven 7.6 build or 7.9 patched.

It's pretty hard to guess what structure your cpanel nuke has...
Find all posts by eXistenZeView user's profileSend private message
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Thu Apr 19, 2007 4:48 am Reply with quoteBack to top

I replaced the constants file. I can access from the website. It appears that I have a faulty forum template. In forum admin, all I see is the phpbb logo and these 4 sentences:

Welcome to phpBB
Forum Statistics
Version Information
Who is Online

Nothing that I can click to change the theme. Is there a way to change the theme from db?
Find all posts by treetrollView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Thu Apr 19, 2007 8:02 am Reply with quoteBack to top

Why try to fix this here and there when you have no idea of what will come in a few days? The builds I suggested you are very secure and above all are known to us. If a problem happens, there will be someone here able to help you.

That build from your cpanel seems to be buggy... I have no idea of what was the last version using $table_prefix (if there even was one).
Find all posts by eXistenZeView user's profileSend private message
treetroll
Nuke Cadet
Nuke Cadet


Joined: Apr 06, 2007
Posts: 8


PostPosted: Thu Apr 19, 2007 1:53 pm Reply with quoteBack to top

Can I save my registered member login info, I don't want to upset my brand new members. Site has only been live a couple days.

I really appreciate all of your help!!!
Find all posts by treetrollView user's profileSend private message
eXistenZe
Sergeant
Sergeant


Joined: Mar 03, 2007
Posts: 127


PostPosted: Fri Apr 20, 2007 3:52 am Reply with quoteBack to top

It would be easier for you to create a new db for your new build.
Then you can check if your nuke_users tables are equivalent (structure).

If they are, just export-import'em. The fields must be in the exact name and order...

If they are different, you can manually add your (few) users and copy each field to it's rightful place...
Find all posts by eXistenZeView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.415 Seconds - 299 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::