I have read a lot of information about session_start () and I still cannot solve it. A major introduction is about character encoding. When this page is opened, the following error occurs: Warning: session_start () [function. session-start]: Cannotsendsessioncookie-headersalreadyse about session_start ().
I have read a lot of information about session_start () and I still cannot solve it. A major introduction is about character encoding.
When this page is opened, an error is reported:
Warning: session_start () [function. session-start]: Cannot send session cookie-headers already sent by (output started at/admin/includes/init_includes/init_file_db_names.php: 20) in/html/boseonsale/includes/functions/sessions. php on line 108
There is also an error saying that the header information Cannot be changed to Cannot modify header information-headers already sent by (output started)
Let's talk about the specific solution. This website is an open-source zencart online store.
------ Solution --------------------
Is the header used?
------ Solution --------------------
Ob_start (); before all code execution
------ Solution --------------------
Zend cart doesn't quite understand...
Help you ,,,
------ Solution --------------------
This error message indicates:
When executing session_start () at sessions. php 108th, the output is found at line 20th of init_file_db_names.php.
You should check the init_file_db_names.php 20th Line and nearby Code
From the file name init_file_db_names.php, it may be an error in file read/write.
------ Solution --------------------
Http://blog.csdn.net/cailiang517502214/archive/2009/11/27/4882038.aspx
------ Solution --------------------
Discussion
This error message indicates:
When executing session_start () at sessions. php 108th, the output is found at line 20th of init_file_db_names.php.
You should check the init_file_db_names.php 20th Line and nearby Code
From the file name init_file_db_names.php, it may be an error in file read/write.
------ Solution --------------------
Is the database moving?
------ Solution --------------------
If you use ftp to connect...
It may be
There is binary text before your session_start (), but it cannot be displayed...
It is like:
PHP code
------ Solution --------------------
Guarantee
Do not output any characters inside or outside the tag.
------ Solution --------------------
Post
The first 30 lines of init_file_db_names.php code
Is there anything you can't decide?
------ Solution --------------------
To learn
------ Solution --------------------
I really don't know what's wrong.
Not much. are you posting local copies?
If yes, go to the server to check it out.
------ Solution --------------------
Have you passed this method?
------ Solution --------------------
I used to have such a situation with you... it is also the same if you connect to the server on ftp...
Also found a lot of information... said to change php. ini... =
But I am also not interested in the method that I just said when I tried it myself... it will be okay if I got it again ..
Remember to choose another region as... select a region for the target region.
------ Solution --------------------
Upstairs normal solution ~
------ Solution --------------------
Discussion
Is the database moving?
------ Solution --------------------
La