Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning: session_start(): Cannot send session cache limiter - headers already sent #13

Closed
unfulvio opened this issue May 25, 2016 · 3 comments
Assignees
Labels
Milestone

Comments

@unfulvio
Copy link
Owner

this seems an error that creeped out again

PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent (output started at /...path.../wp-includes/functions.php:3549) in /...path.../wp-content/plugins/wp-php-console/vendor/php-console/php-console/src/PhpConsole/Storage/Session.php on line 25

does not inhibit plugin functionalities and error is suppressed in Chrome console... but will show up and pollute logs

@unfulvio unfulvio added the bug label May 25, 2016
@unfulvio
Copy link
Owner Author

sigh, reopening this...

this problem seems to creep because

  1. WordPress hijacks the PHP Session 👀 and it's too late for PHP Console, this happens in the very moment one requires PhpConsole library with use PhpConsole at the beginning of WP_PHP_Console main class; manually requiring PhpConsole later on doesn't help...
  2. WordPress lacks of dependency management and I can't seem to require PHP Console much earlier in order to avoid this error (will try hooking as mu-plugin maybe?)

@unfulvio unfulvio reopened this May 30, 2016
@unfulvio unfulvio self-assigned this May 30, 2016
@unfulvio unfulvio added this to the 1.5.0 milestone May 30, 2016
@unfulvio
Copy link
Owner Author

@Polfo how are you doing? are you still using this plugin :) I hope you do... I would like to address this problem once and for all, but I couldn't find a sane solution yet -- any ideas? cheers!

unfulvio added a commit that referenced this issue May 30, 2016
@unfulvio
Copy link
Owner Author

unfulvio commented May 30, 2016

Perhaps I've nailed it! session_start()

http://silvermapleweb.com/using-the-php-session-in-wordpress/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant