Cara mualim memecahkan solusi
Severity: Warning
Message: mkdir(): Invalid path
Filename: drivers/Session_files_driver.php
Line Number: 136
Backtrace:
File: /home/bmajuid/public_html/insanteratai/application/controllers/awa.php
Line: 6
Function: __construct
File: /home/bmajuid/public_html/insanteratai/index.php
Line: 315
Function: require_once
Warning: Uncaught Exception: Session: Configured save path '' is not a directory, doesn't exist or cannot be created. in /home/bmajuid/public_html/insanteratai/system/libraries/Session/drivers/Session_files_driver.php:138 Stack trace: #0 [internal function]: CI_Session_files_driver->open('', 'ci_session') #1 /home/bmajuid/public_html/insanteratai/system/libraries/Session/Session.php(143): session_start() #2 /home/bmajuid/public_html/insanteratai/system/core/Loader.php(1279): CI_Session->__construct() #3 /home/bmajuid/public_html/insanteratai/system/core/Loader.php(1172): CI_Loader->_ci_init_library('Session', 'CI_', NULL, 'session') #4 /home/bmajuid/public_html/insanteratai/system/core/Loader.php(1037): CI_Loader->_ci_load_stock_library('Session', 'Session/', NULL, NULL) #5 /home/bmajuid/public_html/insanteratai/system/core/Loader.php(1083): CI_Loader->_ci_load_library('Session', NULL, NULL) #6 /home/bmajuid/public_html/insanteratai/system/core/Loader.php(218): CI_Loader->_ci_load_library('Session', NULL, NULL) #7 /ho in /home/bmajuid/public_html/insanteratai/system/libraries/Session/drivers/Session_files_driver.php on line 138
Fatal error: session_start(): Failed to initialize storage module: user (path: ) in /home/bmajuid/public_html/insanteratai/system/libraries/Session/Session.php on line 143
A PHP Error was encountered
Severity: Error
Message: session_start(): Failed to initialize storage module: user (path: )
Filename: Session/Session.php
Line Number: 143
Backtrace:
Apakah kalian pernah merasakan pengalaman ini disaat upload ke cpanel sedangkan kalo di local lancar lancar saja :
jadi begini solusinya
Cara mengatasinya :
1. Buka file config.php dalam direktori Codeigniter
2. Temukan kode berikut :
$config['sess_save_path'] = NULL;
contoh :
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
3. Ganti menjadi :
$config['sess_save_path'] = sys_get_temp_dir();
menjadi seperti di bawah ini
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = sys_get_temp_dir();
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
No comments:
Post a Comment
Terima kasih telah mampir ke Blog yang amburadul ini