Fatal error Session_Start () Troubleshooting steps in PHP, fatalsession_start_php tutorial

Source: Internet
Author: User

Fatal error Session_Start () Troubleshooting steps in PHP, Fatalsession_start


Error message:

Fatal Error:session_start () [Function.session-start]: Failed to initialize Storage module:files (path:) in C:\usr\phpMy Admin\libraries\session.inc.php on line 75

I. Change the server configuration:

1. Check the Error.log (apache2.2\logs) file to see if there are any error reports. Not found.

2, check whether the value of Session.save_handler in php.ini is files, if it is not changed to files

3, check whether the Session.save_path in php.ini file is commented, if there is, then remove the front ";".

4. Change the path behind Save_path to an existing path, such as "D:\php\temp"

5. Check that the Temp folder's properties are readable and writable.

6. Restart the Apache server. Ok

Change session storage path in ii.php program

Copy the Code code as follows:
$sessSavePath = DirName (__file__). " /.. /cache/sessions/";
if (is_writeable ($sessSavePath) && is_readable ($sessSavePath))
{
Session_save_path ($sessSavePath);//Focus Change Session storage path
}


PHP fatal Error:main () [Functionmain</a>]: The script tried to execute a

The script tried to execute a method or access a property of a incomplete object. Please ensure that the class definition "Car" of the "object" is trying to operate on is loaded _before_ unserialize () Gets called or provide a __autoload () function to load the class definition in D:\TsbGameWebSystem\back_car.php on line 1 5

The program attempts to interpret a method or property of a pair of images, make sure that you have defined "car" in the class you want to manipulate before calling "Loaded_before_unserialize ()", or provide a method for __autoload () to load the definition of the class, in D:\ Line 15 of tsbgamewebsystem\back_car.php

It means that you did not define the property or method of the car before calling it!


PHP Fatal Error problem

Is your PHP file encrypted with Zend? You re-encrypt the code and try again.

http://www.bkjia.com/PHPjc/858750.html www.bkjia.com true http://www.bkjia.com/PHPjc/858750.html techarticle PHP Fatal Error session_start () Error resolution step, fatalsession_start error message: Fatal Error:session_start () [ Function.session-start]: Failed to initialize storage module: ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    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.