Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   ERROR
onesite
CZ Newbie
onesite has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 06, 2004
0.00 posts per day
Posts: 18
Points: 2,069
   
I have PHP-Nuke 7.4
I did not alter anything but when you click on a link, it'll work fine. The next time or couple of times you click it it wont work. It displays this message:

Fatal error: Call to undefined function: message_die() in /home/onesite/public_html/phpnuke/db/db.php on line 88

Does anyone know how to fix this, only it does it on the admin panel as well.
This is the page code on the db.php page:

<?php
/***************************************************************************
*                                 db.php
*                            -------------------
*   begin                : Saturday, Feb 13, 2001
*   copyright            : (C) 2001 The phpBB Group
*   email                : [ Register or login to view links on this board. ]
*
*   $Id: db.php,v 1.10 2002/03/18 13:35:22 psotfx Exp $
*
*
***************************************************************************/

/***************************************************************************
*   This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
*   by Tom Nitzschner (tom@toms-home.com)
*   http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
*
*   As always, make a backup before messing with anything. All code
*   release by me is considered sample code only. It may be fully
*   functual, but you use it at your own risk, if you break it,
*   you get to fix it too. No waranty is given or implied.
*
*   Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
*   then on my site. All original header code and copyright messages will be maintained
*   to give credit where credit is due. If you modify this, the only requirement is
*   that you also maintain all original copyright messages. All my work is released
*   under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
*
***************************************************************************/

/***************************************************************************
*
*   This program is free software; you can redistribute it and/or modify
*   it under the terms of the GNU General Public License as published by
*   the Free Software Foundation; either version 2 of the License, or
*   (at your option) any later version.
*
***************************************************************************/

global $forum_admin;
if ($forum_admin == 1) {
    $the_include = "../../../db";
} elseif ($inside_mod == 1) {
    $the_include = "../../db";
} else {
    $the_include = "db";
}

switch($dbtype) {

   case 'MySQL':
      include("".$the_include."/mysql.php");
      break;

   case 'mysql4':
      include("".$the_include."/mysql4.php");
      break;

   case 'postgres':
      include("".$the_include."/postgres7.php");
      break;

   case 'mssql':
      include("".$the_include."/mssql.php");
      break;

   case 'oracle':
      include("".$the_include."/oracle.php");
      break;

   case 'msaccess':
      include("".$the_include."/msaccess.php");
      break;

   case 'mssql-odbc':
      include("".$the_include."/mssql-odbc.php");
      break;
   
   case 'db2':
      include("".$the_include."/db2.php");
      break;

}

$db = new sql_db($dbhost, $dbuname, $dbpass, $dbname, false);
if(!$db->db_connect_id) {
    message_die(CRITICAL_ERROR, "Could not connect to the database");
}

?>



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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
You cannot attach files in this forum
You cannot download files in this forum