PHP中Fatal error session_start()錯誤解決步驟,fatalsession_start_PHP教程

來源:互聯網
上載者:User

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:...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.