PHP Warnings: Cannot start session when headers already sent
-
Hey!
I just would like to let you know that Advanced Forms fills de debug.log with PHP Warnings:
session_start(): Cannot start session when headers already sent in /wp-content/plugins/advanced-forms/api/api-submissions.php on line 39
Here is a quick fix:
In
/wp-content/plugins/advanced-forms/api/api-submissions.php
line 39
Replace:
if( '' == session_id() ) {
With:
if( !headers_sent() && '' == session_id() ) {
PS: I’m using Advanced Forms with custom Ajax requests & submission.
Thanks in advance buddy!
Regards.
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘PHP Warnings: Cannot start session when headers already sent’ is closed to new replies.