PHP Web Host - Quality Web Hosting For All PHP Applications Clan Themes! We make clans look good!!
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 11:49 am Reply with quote Back to top

I've upgraded from 7.5 to 7.7, and had a few problems with certain functions/modules not working. I did a lot of research, took a day off work, and have mostly everything working again, with exception to the Administration page in the forums module.

The error returned is:
Code:
Parse error: parse error, unexpected $ in /home/craka/public_html/modules/Forums/admin/index.php on line 1261


As far as I see, line 1261 is the last line of the php file. I have also included the
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF']))
    {
       die ("You can't access this file directly...");
, at the beginning of the file.

As far as line 1261:
Code:
?>
is what's there

Any ideas?
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


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

PostPosted: Wed May 11, 2005 1:44 pm Reply with quote Back to top

That means there's an error elsewhere (up higher), a syntax error. The interpreter found a '$' where it wasn't expecting one.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 2:40 pm Reply with quote Back to top

I've copied the code from the file into a text file that can be found
Only registered users can see links on this board!
Get registered or login to the forums!


Could you please advise? I am an unseasoned newb. Thanks!
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


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

PostPosted: Wed May 11, 2005 3:04 pm Reply with quote Back to top

Try replacing your file with the original 7.7 file.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 3:14 pm Reply with quote Back to top

I thought it was? Heh, thanks. I'll post if it doesn't work Embarassed
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 3:41 pm Reply with quote Back to top

Okay, once I've put the original 7.7 file back into the admin folder in the forums module, I now get this error when trying to access forum administration...

Code:
Warning: main(includes/constants.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 190

Warning: main(includes/constants.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 190

Warning: main(): Failed opening 'includes/constants.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 190

Warning: main(includes/template.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 191

Warning: main(includes/template.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 191

Warning: main(): Failed opening 'includes/template.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 191

Warning: main(includes/sessions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 192

Warning: main(includes/sessions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 192

Warning: main(): Failed opening 'includes/sessions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 192

Warning: main(includes/auth.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 193

Warning: main(includes/auth.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 193

Warning: main(): Failed opening 'includes/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 193

Warning: main(includes/functions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 194

Warning: main(includes/functions.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 194

Warning: main(): Failed opening 'includes/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 194

Warning: main(db/db.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 195

Warning: main(db/db.php): failed to open stream: No such file or directory in /home/craka/public_html/modules/Forums/common.php on line 195

Warning: main(): Failed opening 'db/db.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/craka/public_html/modules/Forums/common.php on line 195

Fatal error: Call to undefined function: encode_ip() in /home/craka/public_html/modules/Forums/common.php on line 207


It seems to have messed it up more. Is there any way to just remove everything and start over with a fresh install, without losing/corrupting the database?
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


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

PostPosted: Wed May 11, 2005 3:43 pm Reply with quote Back to top

Rename that file so it doesn't find it and see if it fixes it.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 3:53 pm Reply with quote Back to top

Renamed index.php to index.old in modules/forums/admin/

404 File not found.

EDIT: That was noobish, I should have asked if you meant by renaming the common.php file or the index.php file. I'll wait until you respond.

BTW Thanks for the support, it's greatly appreciated.
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner


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

PostPosted: Wed May 11, 2005 3:57 pm Reply with quote Back to top

rename the common.php file Smile
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 4:00 pm Reply with quote Back to top

Okay, I removed the common.php file from the directory, (I have a copy on temp directory) and now all I get is "file can't be accessed directly"
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 4:09 pm Reply with quote Back to top

One more thing I've noticed now, is that when posting a comment, it doesn't match the theme any longer. It's now a white text box with the formatting options at the bottom (which don't work), and emoticons cannot be added.
View user's profile Send private message Send e-mail
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Wed May 11, 2005 6:07 pm Reply with quote Back to top

The index file you saved as text has one error near the start, it should not have the following:
Code:
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");


The file should be:
Code:
<?php
/***************************************************************************
 *                             (admin) index.php
 *                            -------------------
 *   begin                : Saturday, Feb 13, 2001
 *   copyright            : (C) 2001 The phpBB Group
 *   email                :
Only registered users can see links on this board!
Get registered or login to the forums!

 *
 *   $Id: index.php,v 1.40.2.5 2003/08/03 11:50:51 acydburn Exp $
 *
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   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.
 *
 ***************************************************************************/

define('IN_PHPBB', 1);

//
// Load default header
//
$no_page_header = TRUE;
$phpbb_root_path = "./../";
require('./../extension.inc');
require('./pagestart.' . $phpEx);

// ---------------
// Begin functions
//
function inarray($needle, $haystack)
{
        for($i = 0; $i < sizeof($haystack); $i++ )
        {
                if( $haystack[$i] == $needle )
                {
                        return true;
                }
        }
        return false;
}
//
// End functions
// -------------

//
// Generate relevant output
//
if( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'left' )
{
        $dir = @opendir(".");

        $setmodules = 1;
        while( $file = @readdir($dir) )
        {
                if( preg_match("/^admin_.*?\." . $phpEx . "$/", $file) )
                {
                        include($file);
                }
        }

        @closedir($dir);

        unset($setmodules);

        include('./page_header_admin.'.$phpEx);

        $template->set_filenames(array(
                "body" => "admin/index_navigate.tpl")
        );

        $template->assign_vars(array(
                "U_FORUM_INDEX" => append_sid("index.$phpEx"),
                "U_FORUM_PREINDEX" => append_sid("modules.$phpEx?name=Forums&file=index"),
                "U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"),

                "L_FORUM_INDEX" => $lang['Main_index'],
                "L_ADMIN_INDEX" => $lang['Admin_Index'],
                "L_PREVIEW_FORUM" => $lang['Preview_forum'])
        );

        ksort($module);

        while( list($cat, $action_array) = each($module) )
        {
                $cat = ( !empty($lang[$cat]) ) ? $lang[$cat] : preg_replace("/_/", " ", $cat);

                $template->assign_block_vars("catrow", array(
                        "ADMIN_CATEGORY" => $cat)
                );

                ksort($action_array);

                $row_count = 0;
                while( list($action, $file)        = each($action_array) )
                {
                        $row_color = ( !($row_count%2) ) ? $theme['td_color1'] : $theme['td_color2'];
                        $row_class = ( !($row_count%2) ) ? $theme['td_class1'] : $theme['td_class2'];

                        $action = ( !empty($lang[$action]) ) ? $lang[$action] : preg_replace("/_/", " ", $action);

                        $template->assign_block_vars("catrow.modulerow", array(
                                "ROW_COLOR" => "#" . $row_color,
                                "ROW_CLASS" => $row_class,

                                "ADMIN_MODULE" => $action,
                                "U_ADMIN_MODULE" => append_sid($file))
                        );
                        $row_count++;
                }
        }

        $template->pparse("body");

        include('./page_footer_admin.'.$phpEx);
}
elseif( isset($HTTP_GET_VARS['pane']) && $HTTP_GET_VARS['pane'] == 'right' )
{

        include('./page_header_admin.'.$phpEx);

        $template->set_filenames(array(
                "body" => "admin/index_body.tpl")
        );

        $template->assign_vars(array(
                "L_WELCOME" => $lang['Welcome_phpBB'],
                "L_ADMIN_INTRO" => $lang['Admin_intro'],
                "L_FORUM_STATS" => $lang['Forum_stats'],
                "L_WHO_IS_ONLINE" => $lang['Who_is_Online'],
                "L_USERNAME" => $lang['Username'],
                "L_LOCATION" => $lang['Location'],
                "L_LAST_UPDATE" => $lang['Last_updated'],
                "L_IP_ADDRESS" => $lang['IP_Address'],
                "L_STATISTIC" => $lang['Statistic'],
                "L_VALUE" => $lang['Value'],
                "L_NUMBER_POSTS" => $lang['Number_posts'],
                "L_POSTS_PER_DAY" => $lang['Posts_per_day'],
                "L_NUMBER_TOPICS" => $lang['Number_topics'],
                "L_TOPICS_PER_DAY" => $lang['Topics_per_day'],
                "L_NUMBER_USERS" => $lang['Number_users'],
                "L_USERS_PER_DAY" => $lang['Users_per_day'],
                "L_BOARD_STARTED" => $lang['Board_started'],
                "L_AVATAR_DIR_SIZE" => $lang['Avatar_dir_size'],
                "L_DB_SIZE" => $lang['Database_size'],
                "L_FORUM_LOCATION" => $lang['Forum_Location'],
                "L_STARTED" => $lang['Login'],
                "L_GZIP_COMPRESSION" => $lang['Gzip_compression'])
        );

        //
        // Get forum statistics
        //
        $total_posts = get_db_stat('postcount');
        $total_users = get_db_stat('usercount');
        $total_topics = get_db_stat('topiccount');

        $start_date = create_date($board_config['default_dateformat'], $board_config['board_startdate'], $board_config['board_timezone']);

        $boarddays = ( time() - $board_config['board_startdate'] ) / 86400;

        $posts_per_day = sprintf("%.2f", $total_posts / $boarddays);
        $topics_per_day = sprintf("%.2f", $total_topics / $boarddays);
        $users_per_day = sprintf("%.2f", $total_users / $boarddays);

        $avatar_dir_size = 0;

        if ($avatar_dir = @opendir($phpbb_root_path . $board_config['avatar_path']))
        {
                while( $file = @readdir($avatar_dir) )
                {
                        if( $file != "." && $file != ".." )
                        {
                                $avatar_dir_size += @filesize($phpbb_root_path . $board_config['avatar_path'] . "/" . $file);
                        }
                }
                @closedir($avatar_dir);

                //
                // This bit of code translates the avatar directory size into human readable format
                // Borrowed the code from the PHP.net annoted manual, origanally written by:
                // Jesse (jesse@jess.on.ca)
                //
                if($avatar_dir_size >= 1048576)
                {
                        $avatar_dir_size = round($avatar_dir_size / 1048576 * 100) / 100 . " MB";
                }
                else if($avatar_dir_size >= 1024)
                {
                        $avatar_dir_size = round($avatar_dir_size / 1024 * 100) / 100 . " KB";
                }
                else
                {
                        $avatar_dir_size = $avatar_dir_size . " Bytes";
                }

        }
        else
        {
                // Couldn't open Avatar dir.
                $avatar_dir_size = $lang['Not_available'];
        }

        if($posts_per_day > $total_posts)
        {
                $posts_per_day = $total_posts;
        }

        if($topics_per_day > $total_topics)
        {
                $topics_per_day = $total_topics;
        }

        if($users_per_day > $total_users)
        {
                $users_per_day = $total_users;
        }

        //
        // DB size ... MySQL only
        //
        // This code is heavily influenced by a similar routine
        // in phpMyAdmin 2.2.0
        //
        if( preg_match("/^mysql/", SQL_LAYER) )
        {
                $sql = "SELECT VERSION() AS mysql_version";
                if($result = $db->sql_query($sql))
                {
                        $row = $db->sql_fetchrow($result);
                        $version = $row['mysql_version'];

                        if( preg_match("/^(3\.23|4\.)/", $version) )
                        {
                                $db_name = ( preg_match("/^(3\.23\.[6-9])|(3\.23\.[1-9][1-9])|(4\.)/", $version) ) ? "`$dbname`" : $dbname;

                                $sql = "SHOW TABLE STATUS
                                        FROM " . $db_name;
                                if($result = $db->sql_query($sql))
                                {
                                        $tabledata_ary = $db->sql_fetchrowset($result);

                                        $dbsize = 0;
                                        for($i = 0; $i < count($tabledata_ary); $i++)
                                        {
                                                if( $tabledata_ary[$i]['Type'] != "MRG_MyISAM" )
                                                {
                                                        if( $table_prefix != "" )
                                                        {
                                                                if( strstr($tabledata_ary[$i]['Name'], $table_prefix) )
                                                                {
                                                                        $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length'];
                                                                }
                                                        }
                                                        else
                                                        {
                                                                $dbsize += $tabledata_ary[$i]['Data_length'] + $tabledata_ary[$i]['Index_length'];
                                                        }
                                                }
                                        }
                                } // Else we couldn't get the table status.
                        }
                        else
                        {
                                $dbsize = $lang['Not_available'];
                        }
                }
                else
                {
                        $dbsize = $lang['Not_available'];
                }
        }
        else if( preg_match("/^mssql/", SQL_LAYER) )
        {
                $sql = "SELECT ((SUM(size) * 8.0) * 1024.0) as dbsize
                        FROM sysfiles";
                if( $result = $db->sql_query($sql) )
                {
                        $dbsize = ( $row = $db->sql_fetchrow($result) ) ? intval($row['dbsize']) : $lang['Not_available'];
                }
                else
                {
                        $dbsize = $lang['Not_available'];
                }
        }
        else
        {
                $dbsize = $lang['Not_available'];
        }

        if ( is_integer($dbsize) )
        {
                if( $dbsize >= 1048576 )
                {
                        $dbsize = sprintf("%.2f MB", ( $dbsize / 1048576 ));
                }
                else if( $dbsize >= 1024 )
                {
                        $dbsize = sprintf("%.2f KB", ( $dbsize / 1024 ));
                }
                else
                {
                        $dbsize = sprintf("%.2f Bytes", $dbsize);
                }
        }

        $template->assign_vars(array(
                "NUMBER_OF_POSTS" => $total_posts,
                "NUMBER_OF_TOPICS" => $total_topics,
                "NUMBER_OF_USERS" => $total_users,
                "START_DATE" => $start_date,
                "POSTS_PER_DAY" => $posts_per_day,
                "TOPICS_PER_DAY" => $topics_per_day,
                "USERS_PER_DAY" => $users_per_day,
                "AVATAR_DIR_SIZE" => $avatar_dir_size,
                "DB_SIZE" => $dbsize,
                "GZIP_COMPRESSION" => ( $board_config['gzip_compress'] ) ? $lang['ON'] : $lang['OFF'])
        );
        //
        // End forum statistics
        //

        //
        // Get users online information.
        //
        $sql = "SELECT u.user_id, u.username, u.user_session_time, u.user_session_page, s.session_logged_in, s.session_ip, s.session_start
                FROM " . USERS_TABLE . " u, " . SESSIONS_TABLE . " s
                WHERE s.session_logged_in = " . TRUE . "
                        AND u.user_id = s.session_user_id
                        AND u.user_id <> " . ANONYMOUS . "
                        AND s.session_time >= " . ( time() - 300 ) . "
                ORDER BY u.user_session_time DESC";
        if(!$result = $db->sql_query($sql))
        {
                message_die(GENERAL_ERROR, "Couldn't obtain regd user/online information.", "", __LINE__, __FILE__, $sql);
        }
        $onlinerow_reg = $db->sql_fetchrowset($result);

        $sql = "SELECT session_page, session_logged_in, session_time, session_ip, session_start
                FROM " . SESSIONS_TABLE . "
                WHERE session_logged_in = 0
                        AND session_time >= " . ( time() - 300 ) . "
                ORDER BY session_time DESC";
        if(!$result = $db->sql_query($sql))
        {
                message_die(GENERAL_ERROR, "Couldn't obtain guest user/online information.", "", __LINE__, __FILE__, $sql);
        }
        $onlinerow_guest = $db->sql_fetchrowset($result);

        $sql = "SELECT forum_name, forum_id
                FROM " . FORUMS_TABLE;
        if($forums_result = $db->sql_query($sql))
        {
                while($forumsrow = $db->sql_fetchrow($forums_result))
                {
                        $forum_data[$forumsrow['forum_id']] = $forumsrow['forum_name'];
                }
        }
        else
        {
                message_die(GENERAL_ERROR, "Couldn't obtain user/online forums information.", "", __LINE__, __FILE__, $sql);
        }

        $reg_userid_ary = array();

        if( count($onlinerow_reg) )
        {
                $registered_users = 0;

                for($i = 0; $i < count($onlinerow_reg); $i++)
                {
                        if( !inarray($onlinerow_reg[$i]['user_id'], $reg_userid_ary) )
                        {
                                $reg_userid_ary[] = $onlinerow_reg[$i]['user_id'];

                                $username = $onlinerow_reg[$i]['username'];

                                if( $onlinerow_reg[$i]['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
                                {
                                        $registered_users++;
                                        $hidden = FALSE;
                                }
                                else
                                {
                                        $hidden_users++;
                                        $hidden = TRUE;
                                }

                                if( $onlinerow_reg[$i]['user_session_page'] < 1 )
                                {
                                        switch($onlinerow_reg[$i]['user_session_page'])
                                        {
                                                case PAGE_INDEX:
                                                        $location = $lang['Forum_index'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_POSTING:
                                                        $location = $lang['Posting_message'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_LOGIN:
                                                        $location = $lang['Logging_on'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_SEARCH:
                                                        $location = $lang['Searching_forums'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_PROFILE:
                                                        $location = $lang['Viewing_profile'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_VIEWONLINE:
                                                        $location = $lang['Viewing_online'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_VIEWMEMBERS:
                                                        $location = $lang['Viewing_member_list'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_PRIVMSGS:
                                                        $location = $lang['Viewing_priv_msgs'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                case PAGE_FAQ:
                                                        $location = $lang['Viewing_FAQ'];
                                                        $location_url = "index.$phpEx?pane=right";
                                                        break;
                                                default:
                                                        $location = $lang['Forum_index'];
                                                        $location_url = "index.$phpEx?pane=right";
                                        }
                                }
                                else
                                {
                                        $location_url = append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=" . $onlinerow_reg[$i]['user_session_page']);
                                        $location = $forum_data[$onlinerow_reg[$i]['user_session_page']];
                                }

                                $row_color = ( $registered_users % 2 ) ? $theme['td_color1'] : $theme['td_color2'];
                                $row_class = ( $registered_users % 2 ) ? $theme['td_class1'] : $theme['td_class2'];

                                $reg_ip = decode_ip($onlinerow_reg[$i]['session_ip']);

                                $template->assign_block_vars("reg_user_row", array(
                                        "ROW_COLOR" => "#" . $row_color,
                                        "ROW_CLASS" => $row_class,
                                        "USERNAME" => $username,
                                        "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['session_start'], $board_config['board_timezone']),
                                        "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_reg[$i]['user_session_time'], $board_config['board_timezone']),
                                        "FORUM_LOCATION" => $location,
                                        "IP_ADDRESS" => $reg_ip,

                                        "U_WHOIS_IP" => "http://www.geektools.com/cgi-bin/proxy.cgi?query=$reg_ip&targetnic=auto",
                                        "U_USER_PROFILE" => append_sid("admin_users.$phpEx?mode=edit&amp;" . POST_USERS_URL . "=" . $onlinerow_reg[$i]['user_id']),
                                        "U_FORUM_LOCATION" => append_sid($location_url))
                                );
                        }
                }

        }
        else
        {
                $template->assign_vars(array(
                        "L_NO_REGISTERED_USERS_BROWSING" => $lang['No_users_browsing'])
                );
        }

        //
        // Guest users
        //
        if( count($onlinerow_guest) )
        {
                $guest_users = 0;

                for($i = 0; $i < count($onlinerow_guest); $i++)
                {
                        $guest_userip_ary[] = $onlinerow_guest[$i]['session_ip'];
                        $guest_users++;

                        if( $onlinerow_guest[$i]['session_page'] < 1 )
                        {
                                switch( $onlinerow_guest[$i]['session_page'] )
                                {
                                        case PAGE_INDEX:
                                                $location = $lang['Forum_index'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_POSTING:
                                                $location = $lang['Posting_message'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_LOGIN:
                                                $location = $lang['Logging_on'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_SEARCH:
                                                $location = $lang['Searching_forums'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_PROFILE:
                                                $location = $lang['Viewing_profile'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_VIEWONLINE:
                                                $location = $lang['Viewing_online'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_VIEWMEMBERS:
                                                $location = $lang['Viewing_member_list'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_PRIVMSGS:
                                                $location = $lang['Viewing_priv_msgs'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        case PAGE_FAQ:
                                                $location = $lang['Viewing_FAQ'];
                                                $location_url = "index.$phpEx?pane=right";
                                                break;
                                        default:
                                                $location = $lang['Forum_index'];
                                                $location_url = "index.$phpEx?pane=right";
                                }
                        }
                        else
                        {
                                $location_url = append_sid("admin_forums.$phpEx?mode=editforum&amp;" . POST_FORUM_URL . "=" . $onlinerow_guest[$i]['session_page']);
                                $location = $forum_data[$onlinerow_guest[$i]['session_page']];
                        }

                        $row_color = ( $guest_users % 2 ) ? $theme['td_color1'] : $theme['td_color2'];
                        $row_class = ( $guest_users % 2 ) ? $theme['td_class1'] : $theme['td_class2'];

                        $guest_ip = decode_ip($onlinerow_guest[$i]['session_ip']);

                        $template->assign_block_vars("guest_user_row", array(
                                "ROW_COLOR" => "#" . $row_color,
                                "ROW_CLASS" => $row_class,
                                "USERNAME" => $lang['Guest'],
                                "STARTED" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_start'], $board_config['board_timezone']),
                                "LASTUPDATE" => create_date($board_config['default_dateformat'], $onlinerow_guest[$i]['session_time'], $board_config['board_timezone']),
                                "FORUM_LOCATION" => $location,
                                "IP_ADDRESS" => $guest_ip,

                                "U_WHOIS_IP" => "http://www.geektools.com/cgi-bin/proxy.cgi?query=$guest_ip&targetnic=auto",
                                "U_FORUM_LOCATION" => append_sid($location_url))
                        );
                }

        }
        else
        {
                $template->assign_vars(array(
                        "L_NO_GUESTS_BROWSING" => $lang['No_users_browsing'])
                );
        }



        $template->pparse("body");

        include('./page_footer_admin.'.$phpEx);

}
else
{
        //
        // Generate frameset
        //
        $template->set_filenames(array(
                "body" => "admin/index_frameset.tpl")
        );

        $template->assign_vars(array(
                "S_FRAME_NAV" => append_sid("index.$phpEx?pane=left"),
                "S_FRAME_MAIN" => append_sid("index.$phpEx?pane=right"))
        );

        header ("Expires: " . gmdate("D, d M Y H:i:s", time()) . " GMT");
        header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

        $template->pparse("body");

        $db->sql_close();
        exit;

}

?>
View user's profile Send private message Visit poster's website
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 8:19 pm Reply with quote Back to top

DoH! I had placed the wrong php file there. Okay, now with the php file you posted, and the common.php file removed from modules/forums/common.php, I get the following error...

Quote:
Fatal error: Call to undefined function: message_die() in /home/craka/public_html/modules/Forums/admin/pagestart.php on line 55


If I leave the common.php file there, it gives many errors again as listed above.

Thanks
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Wed May 11, 2005 8:27 pm Reply with quote Back to top

Do you think there could be something wrong with the database?
View user's profile Send private message Send e-mail
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Wed May 11, 2005 9:17 pm Reply with quote Back to top

The file you had to remove was modules/forums/admin/common.php not modules/forums/common.php
View user's profile Send private message Visit poster's website
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Thu May 12, 2005 5:21 am Reply with quote Back to top

Right. I'm sorry, typo. That is the file that I removed, and then I'm given the pagestart error.
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Thu May 12, 2005 9:42 am Reply with quote Back to top

bump Dance-Stick
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Thu May 12, 2005 2:22 pm Reply with quote Back to top

Any ideas as of yet? I'm really wondering if I should just trash the whole thing, and start fresh 7.6, and just import my sql database.
View user's profile Send private message Send e-mail
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

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

If the rest of the site works check the constants.php file, near the bottom you will see the forum's db tables listed, they should all use $prefix and not $user_prefix except for the user db tables, also check your nuke config.php to make sure $prefix and $user_prefix both have the same value.
View user's profile Send private message Visit poster's website
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Thu May 12, 2005 4:06 pm Reply with quote Back to top

All looks as should be, chatserv.
View user's profile Send private message Send e-mail
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Thu May 12, 2005 4:11 pm Reply with quote Back to top

Also, I just noticed, that there are two different icons in the admin panel for the website, both for forums. One in module administration, and the other in administration menu?! I don't recall there being two different icons to access the same area. If you select either, they both point to the same location, HOWEVER, one gives me the above 10~15 lines of error code, while the other gives me File 404

Very odd....
View user's profile Send private message Send e-mail
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Thu May 12, 2005 9:49 pm Reply with quote Back to top

remove the forum admin files from nuke's admin/case, admin/link and admin/modules folders, if after this you still have problems pm me the site url a superuser account login data and ftp login data.
View user's profile Send private message Visit poster's website
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri May 13, 2005 6:40 am Reply with quote Back to top

Thanks, Chatserv. I'll get that started as soon as I get home from work.

I do have one more question. I have a feeling that the forums didn't upgrade to 2.0.15 once the rest of the site was upgraded to 7.7.

I have downloaded a full version of 2.0.15, and was wondering, first of all, how I would tell if the forums were in fact version 2.0.15 or not, being that I cannot access the administration panel in the forums.

If I wipe out the forums currently on the site, and just install the fresh copy of 2.0.15, how many tables will be incorrect that I'll need to change?

Thanks again for the support!
View user's profile Send private message Send e-mail
chatserv
The Mouse Is Extension Of Arm


Joined: May 02, 2003
Posts: 1396
Location: Puerto Rico

PostPosted: Fri May 13, 2005 6:58 am Reply with quote Back to top

Nuke 7.7 comes with bbtonuke 2.0.14
View user's profile Send private message Visit poster's website
TeKKiE
Hangin' Around


Joined: May 11, 2005
Posts: 48

PostPosted: Fri May 13, 2005 8:03 am Reply with quote Back to top

So then should I upgrade to 2.0.15? (This is only an option if your recommendations in your last post do not resolve the errors.)
View user's profile Send private message Send e-mail
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

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