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

Invalid Superglobal - Phalcon\Flash\Session #13446

Closed
ghost opened this issue Jul 20, 2018 · 2 comments
Closed

Invalid Superglobal - Phalcon\Flash\Session #13446

ghost opened this issue Jul 20, 2018 · 2 comments
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2018

Hi! This is a duplication of #13254. I get a blank page and getting Invalid Superglobal exception when I open my index page. This issue should be fixed in phalcon 3.4 version. But it still not works to me.

Please check the screenshot with some traces:

Invalid Superglobal trace

Details

  • Phalcon version: 3.4.0
  • PHP Version: 7.2.0
  • Operating System: windows
  • Installation type: downloaded .dll from github
  • Zephir version (if any): 0.10.7
  • Server: Nginx

What additional info can I provide to help find the solution?

@ghost
Copy link
Author

ghost commented Jul 20, 2018

Tried downgrade PHP and Phalcon versions:

Phalcon 3.1.2 (Powered by Zephir - Version 0.9.7-1fae5e50ac) with PHP 7.1.12 - works perfect.
All newer versions (starting from Phalcon 3.2.0) lead to the Invalid superglobal exception, described above

@Jurigag
Copy link
Contributor

Jurigag commented Jul 20, 2018

To use flash session you need to start session service first. Service in di is not started automatically, it doesn't works perfect because in reality it doesn't works at all without session started, like variable isn't shared between sessions, it was actually a bug like it was "working" but in reality not. In later versions zephir was fixed so it produces error like this if superglobal is not initalized but it's tried to used.

See this issue for more - #12921 and this is duplicate of #12918

@Jurigag Jurigag closed this as completed Jul 20, 2018
@phalcon phalcon locked and limited conversation to collaborators Jul 20, 2018
@Jurigag Jurigag added the duplicate Duplicate issue. The duplicate issue is referenced in the comments label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate Duplicate issue. The duplicate issue is referenced in the comments
Projects
None yet
Development

No branches or pull requests

1 participant