localhostta hata!

phpBB2 Plus kurulum ve çalıştırılmasında meydana gelen sorun ve problemler için buradan yardım alabilirsiniz.
Kilitli
Kural
Kayıtlı Kullanıcı
Mesajlar: 19
Kayıt: 23.06.2006, 19:48
İletişim:

localhostta hata!

Mesaj gönderen Kural »

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.
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

baska arkadas ta sormuştu bunu.plus 1.53 kuruosan bu sorun localhostta cıkıyor.ama normal hosta sürdüğün zaman çalışıyor.sorun yok.
Kural
Kayıtlı Kullanıcı
Mesajlar: 19
Kayıt: 23.06.2006, 19:48
İletişim:

Mesaj gönderen Kural »

AlleRGy yazdı:baska arkadas ta sormuştu bunu.plus 1.53 kuruosan bu sorun localhostta cıkıyor.ama normal hosta sürdüğün zaman çalışıyor.sorun yok.
ben sormustumda kitlendi baslık nasıl çözebilirim bu sorunu bi bilgin varmı
Kullanıcı avatarı
AlleRGy
Kayıtlı Kullanıcı
Mesajlar: 885
Kayıt: 16.05.2006, 19:14
Konum: denizli
İletişim:

Mesaj gönderen AlleRGy »

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

Kod: Tümünü seç

$files = glob($phpbb_root_path."cache/last*.dat");
bu kodu aşağıdaki kod ile değiştir

Kod: Tümünü seç

$files = "/var/www/html/cache/last*.dat");
Kural
Kayıtlı Kullanıcı
Mesajlar: 19
Kayıt: 23.06.2006, 19:48
İletişim:

Mesaj gönderen Kural »

AlleRGy 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 bul

Kod: Tümünü seç

$files = glob($phpbb_root_path."cache/last*.dat");
bu kodu aşağıdaki kod ile değiştir

Kod: Tümünü seç

$files = "/var/www/html/cache/last*.dat");
denedim olmadı bu hatayı verdi

Fatal error: Call to undefined function: glob() in c:\apache\htdocs\phpbb2\includes\sessions.php on line 31

aynısı
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

sen bi 25 ile 40 arasındaki satırları yollarmısın
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
Kural
Kayıtlı Kullanıcı
Mesajlar: 19
Kayıt: 23.06.2006, 19:48
İletişim:

Mesaj gönderen Kural »

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);
}
Kullanıcı avatarı
GodBeach
Uzaklaştırıldı
Mesajlar: 734
Kayıt: 05.05.2006, 23:12
Konum: Güngören, İSTANBUL
İletişim:

Mesaj gönderen GodBeach »

1-2 Saat içinde hazır ...
Bir php kodu
$GodBeach = "Php Script Yazılır";

print $GodBeach;

Önizleme: Php Script Yazılır
Kural
Kayıtlı Kullanıcı
Mesajlar: 19
Kayıt: 23.06.2006, 19:48
İletişim:

Mesaj gönderen Kural »

GodBeach yazdı:1-2 Saat içinde hazır ...
nezaman hazır olur.
Kullanıcı avatarı
ESQARE
Web Sitesi Yöneticisi
Web Sitesi Yöneticisi
Mesajlar: 7224
Kayıt: 18.09.2005, 20:51
İletişim:

Mesaj gönderen ESQARE »

GodBeach yazdı:1-2 Saat içinde hazır ...
saçma sapan mesaj göndermemen için son uyarı...

şu şekilde deneyin;

BUL:

Kod: Tümünü seç

$files = glob($phpbb_root_path."cache/last*.dat");
BUNUNLA DEĞİŞTİR:

Kod: Tümünü seç

$files = "c:/apache/htdocs/phpbb2/cache/last*.dat");
Resim
phpBB Eklenti Kurulumu | Kurallar | phpBB3 İzinleri | Otel Rehberi

Kurallarımız gereği lütfen özel mesaj ile yardım istemeyiniz, cevap vermiyoruz.
paylas
Kayıtlı Kullanıcı
Mesajlar: 2
Kayıt: 27.06.2006, 22:56
İletişim:

Sorun Çözüldü

Mesaj gönderen paylas »

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
Shurup
Kilitli

“phpBB2 Plus Destek” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 2 misafir