But the installation process failed...
- Code: Select all
Critical Error
FIND FAILED: In file [includes/functions_admin.php] could not find:
$sql = "SELECT forum_id, forum_name
FROM " . FORUMS_TABLE . "
MOD script line #371 :: FAQ :: Report
here is the log...
- Code: Select all
COPY #131
copy extra_perm_db_update.php to extra_perm_db_update.php
OPEN #149
index.php
FIND #154
// End session management
//
AFTERADD #160
// Start add - Extra permission PM MOD
//
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_READ, PAGE_INDEX_PERMISSION, $userdata);
if( !$is_auth['auth_read'] )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=index.$phpEx", true));
exit;
}
$message = sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
// End add - Extra permission PM MOD
OPEN #186
memberlist.php
FIND #191
// End session management
//
AFTERADD #197
// Start add - Extra permission PM MOD
//
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_ALL, PAGE_VIEWMEMBERS, $userdata);
if( !$is_auth['auth_read'] )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=memberlist.$phpEx", true));
exit;
}
$message = ( !$is_auth['auth_view'] ) ? $lang['Not_Authorised'] : sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
// End add - Extra permission PM MOD
OPEN #224
admin/admin_forumauth.php
FIND #229
if(!empty($forum_id))
REPLACE #234
// Start replacement - Extra permission PM MOD
if(isset($forum_id))
// End replacement - Extra permission PM MOD
FIND #242
$sql = "UPDATE
IN-LINE FIND #247
$forum_id
IN-LINE REPLACE #252
'$forum_id'
FIND #257
$sql = "UPDATE
IN-LINE FIND #265
$forum_id
IN-LINE REPLACE #270
'$forum_id'
FIND #275
// no id was specified or just the requsted if it
// was
//
AFTERADD #282
// Start add - Extra permission PM MOD
$sql = "SELECT f.*
FROM " . FORUMS_TABLE . " f
WHERE f.cat_id=0
$forum_sql
ORDER BY f.forum_name ASC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't obtain special pages list", "", __LINE__, __FILE__, $sql);
}
$forum_rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
// End add - Extra permission PM MOD
FIND #300
$forum_rows = $db->sql_fetchrowset($result);
REPLACE #305
// Start replacement - Extra permission PM MOD
$forum_rows = array_merge($forum_rows,$db->sql_fetchrowset($result));
// End replacement - Extra permission PM MOD
OPEN #313
includes/auth.php
FIND #318
$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "WHERE a.forum_id = $forum_id" : '';
IN-LINE FIND #323
= $forum_id
IN-LINE REPLACE #328
= '$forum_id'
FIND #333
$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "AND a.forum_id = $forum_id"
IN-LINE FIND #338
= $forum_id
IN-LINE REPLACE #343
= '$forum_id'
OPEN #348
includes/constants.php
FIND #353
define('PAGE_TOPIC_OFFSET', 5000);
BEFOREADD #358
// Start add - Extra permission PM MOD
define('PAGE_INDEX_PERMISSION', -99);
// End add - Extra permission PM MOD
OPEN #366
includes/functions_admin.php
Is there any way to complete the installation? I am not an experienced user and i don't know how to do this... The readme file isn't very detailed...
I use phpbb 2.0.18


