localhostta hata!
localhostta hata!
Fatal error: Call to undefined function: glob() in c:\apache\htdocs\phpbb2\includes\sessions.php on line 31
bu hatayı veriyor nasıl çözülebilir.
bu hatayı veriyor nasıl çözülebilir.
php versiyonun 5.0 a eşit veya büyük olduğunu varsayıyorum. Hatanın nedeni last visit modundanki cashe problemi olsa gerek. sessions.php dosyasını aç ve aşağıdaki kodu bul
bu kodu aşağıdaki kod ile değiştir
Kod: Tümünü seç
$files = glob($phpbb_root_path."cache/last*.dat");
Kod: Tümünü seç
$files = "/var/www/html/cache/last*.dat");
denedim olmadı bu hatayı verdiAlleRGy yazdı:php versiyonun 5.0 a eşit veya büyük olduğunu varsayıyorum. Hatanın nedeni last visit modundanki cashe problemi olsa gerek. sessions.php dosyasını aç ve aşağıdaki kodu bulbu kodu aşağıdaki kod ile değiştirKod: Tümünü seç
$files = glob($phpbb_root_path."cache/last*.dat");
Kod: Tümünü seç
$files = "/var/www/html/cache/last*.dat");
Fatal error: Call to undefined function: glob() in c:\apache\htdocs\phpbb2\includes\sessions.php on line 31
aynısı
GodBeach yazdı:sen bi 25 ile 40 arasındaki satırları yollarmısın
İnşallah doğru yollamışımdır.
function session_begin($user_id, $user_ip, $page_id = 0, $auto_create = 0, $enable_autologin = 0, $admin = 0)
{
global $db, $board_config,$plus_config,$phpbb_root_path;
global $HTTP_COOKIE_VARS, $_GET, $SID;
$files = "/var/www/html/cache/last*.dat");
if ($files)
{
foreach ( $files as $filename)
{
unlink ($filename);
}
}
$cookiename = $board_config['cookie_name'];
$cookiepath = $board_config['cookie_path'];
$cookiedomain = $board_config['cookie_domain'];
$cookiesecure = $board_config['cookie_secure'];
if ( isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) || isset($HTTP_COOKIE_VARS[$cookiename . '_data']) )
{
$session_id = isset($HTTP_COOKIE_VARS[$cookiename . '_sid']) ? $HTTP_COOKIE_VARS[$cookiename . '_sid'] : '';
$sessiondata = isset($HTTP_COOKIE_VARS[$cookiename . '_data']) ? unserialize(stripslashes($HTTP_COOKIE_VARS[$cookiename . '_data'])) : array();
$sessionmethod = SESSION_METHOD_COOKIE;
}
else
{
$sessiondata = array();
$session_id = ( isset($_GET['sid']) ) ? $_GET['sid'] : '';
$sessionmethod = SESSION_METHOD_GET;
}
//
if (!preg_match('/^[A-Za-z0-9]*$/', $session_id))
{
$session_id = '';
}
$page_id = (int) $page_id;
$last_visit = 0;
$current_time = time();
//
// Are auto-logins allowed?
// If allow_autologin is not set or is true then they are
// (same behaviour as old 2.0.x session code)
//
if (isset($board_config['allow_autologin']) && !$board_config['allow_autologin'])
{
$enable_autologin = $sessiondata['autologinid'] = false;
}
//
// First off attempt to join with the autologin value if we have one
// If not, just use the user_id value
//
$userdata = array();
if ($user_id != ANONYMOUS)
{
if (isset($sessiondata['autologinid']) && (string) $sessiondata['autologinid'] != '' && $user_id)
{
$sql = 'SELECT u.*
FROM ' . USERS_TABLE . ' u, ' . SESSIONS_KEYS_TABLE . ' k
WHERE u.user_id = ' . (int) $user_id . "
AND u.user_active = 1
AND k.user_id = u.user_id
AND k.key_id = '" . md5($sessiondata['autologinid']) . "'";
if (!($result = $db->sql_query($sql)))
{
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
}
$userdata = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$enable_autologin = $login = 1;
}
else if (!$auto_create)
{
$sessiondata['autologinid'] = '';
$sessiondata['userid'] = $user_id;
$sql = 'SELECT *
FROM ' . USERS_TABLE . '
WHERE user_id = ' . (int) $user_id . '
AND user_active = 1';
if (!($result = $db->sql_query($sql)))
{
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
}
$userdata = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$login = 1;
}
}
//
// At this point either $userdata should be populated or
// one of the below is true
// * Key didn't match one in the DB
// * User does not exist
// * User is inactive
//
if (!sizeof($userdata) || !is_array($userdata) || !$userdata)
{
$sessiondata['autologinid'] = '';
$sessiondata['userid'] = $user_id = ANONYMOUS;
$enable_autologin = $login = 0;
$sql = 'SELECT *
FROM ' . USERS_TABLE . '
WHERE user_id = ' . (int) $user_id;
if (!($result = $db->sql_query($sql)))
{
message_die(CRITICAL_ERROR, 'Error doing DB query userdata row fetch', '', __LINE__, __FILE__, $sql);
}
$userdata = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
}
saçma sapan mesaj göndermemen için son uyarı...GodBeach yazdı:1-2 Saat içinde hazır ...
şu şekilde deneyin;
BUL:
Kod: Tümünü seç
$files = glob($phpbb_root_path."cache/last*.dat");
Kod: Tümünü seç
$files = "c:/apache/htdocs/phpbb2/cache/last*.dat");

phpBB Eklenti Kurulumu | Kurallar | phpBB3 İzinleri | Otel Rehberi
Kurallarımız gereği lütfen özel mesaj ile yardım istemeyiniz, cevap vermiyoruz.
Sorun Çözüldü
Sadece Localhost 'ta yap
BUL:
Kod:
$files = glob($phpbb_root_path."cache/last*.dat");
BUNUNLA DEĞİŞTİR:
Kod:
// $files = "c:/apache/htdocs/phpbb2/cache/last*.dat");
İşlem Tamam
BUL:
Kod:
$files = glob($phpbb_root_path."cache/last*.dat");
BUNUNLA DEĞİŞTİR:
Kod:
// $files = "c:/apache/htdocs/phpbb2/cache/last*.dat");
İşlem Tamam
Shurup
Kimler çevrimiçi
Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 3 misafir