Fatal error session_start () in PHP

Source: Internet
Author: User

Fatal error session_start () in PHP

Error message:

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. Modify the Server Configuration:

1. Check the error. log (Apache2.2 \ logs) file to check whether an error report exists. Not found.

2. Check whether the value of session. save_handler in php. ini is files.

3. Check whether the session. save_path in the php. ini file has been commented out. If yes, remove the preceding ";".

4. Change the path after save_path to an existing path, for example, "D: \ php \ temp"

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

6. Restart the APACHE server. OK

II. Change the session storage path in the php Program

Copy codeThe Code is as follows:
$ SessSavePath = dirname (_ FILE _). "/../cache/sessions /";
If (is_writeable ($ sessSavePath) & is_readable ($ sessSavePath ))
{
Session_save_path ($ sessSavePath); // key change session storage path
}


Fatal error: main () in PHP [<a href = 'functionmain'> functionmain </a>]: The script tried to execute

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 explain a method or attribute of the object. Make sure that the "Car" is defined before "loaded_before_unserialize ()" is called in the class you want to operate ", or provide a _ autoload () method to load class definition, In line 15 of D: \ TsbGameWebSystem \ back_car.php

This means that you didn't define the property or method of Car before calling it!


PHP Fatal error

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

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.