Home  >  Article  >  Backend Development  >  Fatal error session_start() error resolution steps in PHP, fatalsession_start_PHP tutorial

Fatal error session_start() error resolution steps in PHP, fatalsession_start_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:21:241159browse

Fatal error session_start() error resolution steps in PHP, fatalsession_start

Error message:

Fatal error: session_start() [function.session-start]: Failed to initialize storage module: files (path: ) in C:usrphpMyAdminlibrariessession.inc.php on line 75

I. Change server configuration:

1. Check the error.log (Apache2.2logs) file to see if there is an error report. Not found.

2. Check whether the value of session.save_handler in php.ini is files, if not, change it to files

3. Check whether session.save_path is commented in the php.ini file. If so, remove the preceding ";".

4. Change the path after save_path to an existing path, such as "D:phptemp"

5. Check whether the attributes of the temp folder are readable and writable.

6. Restart the APACHE server. OK

Change the session storage path in the II.php program

Copy code The code is as follows:

$sessSavePath = dirname(__FILE__).”/../cache/sessions/”;
if(is_writeable($sessSavePath) && is_readable($sessSavePath))
{
session_save_path($sessSavePath);//Key point: change the session storage path
}

Fatal error in PHP: main() [functionmain]: 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

The program tries to interpret the methods or properties of an object. Please make sure that the class you want to operate is calling "loaded_before_unserialize( )" "Car" has been defined before, or provides a __autoload() method to load the class definition. In D:\TsbGameWebSystem\back_car.php, line 15

means that you call the Car attribute or Method has not been defined before!

PHP Fatal error problem

Is your php file encrypted with zend? Please re-encrypt the code and try again

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/858750.htmlTechArticleFatal error session_start() error resolution steps in PHP, fatalsession_start error message: Fatal error: session_start() [function. session-start]: Failed to initialize storage module:...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn