Skip to content
This repository has been archived by the owner on Jan 17, 2022. It is now read-only.

Support for Symfony/PHP sessions #6

Closed
Gemorroj opened this issue Sep 27, 2018 · 3 comments
Closed

Support for Symfony/PHP sessions #6

Gemorroj opened this issue Sep 27, 2018 · 3 comments

Comments

@Gemorroj
Copy link



 [OK] Swoole HTTP Server started on http://localhost:9501


 ----------------- -------------------------
  Configuration     Values
 ----------------- -------------------------
  env               dev
  debug             true
  worker_count      4
  memory_limit      512 MiB
  trusted_hosts     127.0.0.1, localhost
  trusted_proxies   *
  public_dir        /var/www/wapinet/public
 ----------------- -------------------------

22:50:53 CRITICAL  [request] Uncaught PHP Exception RuntimeException: "Failed to start the session because headers have already been sent by "" at line 0." at /var/www/wapinet/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 138 ["exception" => RuntimeException { …}] []
22:50:53 CRITICAL  [request] Uncaught PHP Exception RuntimeException: "Failed to start the session because headers have already been sent by "" at line 0." at /var/www/wapinet/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php line 138 ["exception" => RuntimeException { …}] []
22:51:18 CRITICAL  [request] Uncaught PHP Exception Twig_Error_Runtime: "An exception has been thrown during the rendering of a template ("Failed to start the session because headers have already been sent by "" at line 0.")." at /var/www/wapinet/vendor/symfony/web-profiler-bundle/Resources/views/Profiler/layout.html.twig line 107 ["exception" => Twig_Error_Runtime { …}] []
@k911
Copy link
Owner

k911 commented Sep 27, 2018

I think it is swoole related issue.
I've fixed it by using this configuration:

framework:
   session:
        storage_id: session.storage.php_bridge

@k911 k911 added the kind/bug/possible Something probably isn't working label Sep 27, 2018
@Gemorroj
Copy link
Author

swoole/swoole-src#1828

@k911 k911 added the help wanted Extra attention is needed label Sep 29, 2018
@k911 k911 added area/symfony-bundle area/http-server kind/bug/confirmed Something isn't working priority/important and removed kind/bug/possible Something probably isn't working labels Feb 22, 2019
@k911 k911 mentioned this issue Mar 22, 2019
19 tasks
@k911 k911 changed the title can't start session Support for Symfony/PHP sessions Apr 6, 2019
@k911 k911 added kind/feature New feature or request and removed kind/bug/confirmed Something isn't working help wanted Extra attention is needed labels Oct 16, 2019
@k911
Copy link
Owner

k911 commented Oct 31, 2019

Fixed by #73

@k911 k911 closed this as completed Oct 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants