You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please review the original issue and especially its comments. Comments here on closed issues will be ignored. Thanks.
Original description
Reproduce Error:
Depending on the theme and other plugins, some output may be sent before the header. Could be something small like a white space or something else altogether. however, even after white space deleted, error still shows.
Referring to /yourls-wordpress-to-twitter/plugin.php line 67. There is a call to "session_start()" function. PHP complained:
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/example.com/index.php:1) in /var/www/example.com/wp-content/plugins/yourls-wordpress-to-twitter/plugin.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers al…
Solution:
Replace session_start()l on line 67 with below
if (!isset ($_COOKIE[ini_get('session.name')])) {
session_start();
}
This checks if session already started.
The text was updated successfully, but these errors were encountered:
This is a COPY of Issue 1044: WordPress complains that session already started, filed on Google Code before the project was moved on Github.
Please review the original issue and especially its comments. Comments here on closed issues will be ignored. Thanks.
Original description
The text was updated successfully, but these errors were encountered: