PHP中Fatal error session_start()錯誤解決步驟,fatalsession_start
錯誤資訊:
Fatal error: session_start() [function.session-start]: Failed to initialize storage module: files (path: ) in C:\usr\phpMyAdmin\libraries\session.inc.php on line 75
I.更改伺服器配置:
1、檢查error.log(Apache2.2\logs)檔案,查看是否有錯誤報表。未發現。
2、檢查php.ini中的session.save_handler的值是否為files,如果不是改為files
3、檢查php.ini檔案中session.save_path是否被注釋了,如果有,則去掉前面的”;”。
4、將save_path後面的路徑改成已有的路徑,比如”D:\php\temp”
5、檢查temp檔案夾的屬性是否可讀可寫。
6、重啟APACHE伺服器。OK
II.php 程式中 改變session儲存路徑
複製代碼 代碼如下:
$sessSavePath = dirname(__FILE__).”/../cache/sessions/”;
if(is_writeable($sessSavePath) && is_readable($sessSavePath))
{
session_save_path($sessSavePath);//重點 改變session儲存路徑
}
PHP中Fatal error: main() [functionmain</a>]: The script tried to execute a
The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Car" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in D:\TsbGameWebSystem\back_car.php on line 15
程式嘗試去解釋一個對像的方法或屬性,請確認你要操作的類裡在調用"loaded_before_unserialize()"之前已定義”Car”,或提供一個__autoload()的方法載入類的定義,在D:\TsbGameWebSystem\back_car.php 的行15
意思就是說你調用Car這個屬性或方法之前沒有對他進行定義!
PHP Fatal error問題
你的php檔案是不是用zend加密了?你把代碼重新加密一下再試試
http://www.bkjia.com/PHPjc/858750.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/858750.htmlTechArticlePHP中Fatal error session_start()錯誤解決步驟,fatalsession_start 錯誤資訊: Fatal error: session_start() [function.session-start]: Failed to initialize storage module:...