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

[BUG]: Uncaught Phalcon\Tag\Exception with Phalcon\Debug and Phalcon\Session\Bag #15381

Closed
diplopito opened this issue Apr 8, 2021 · 1 comment · Fixed by #15786
Closed
Assignees
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report status: low Low

Comments

@diplopito
Copy link
Contributor

Describe the bug
Using \Phalcon\Session\Bag without DI container generates an uncaught error by Phalcon\Debug

To Reproduce
Steps to reproduce the behavior:

(new \Phalcon\Debug())->listen();

$path = new \Phalcon\Session\Bag("path");

Output:

Fatal error: Uncaught Phalcon\Tag\Exception: A dependency injection container is required to access the 'url' service in phalcon/Tag.zep:469 
Stack trace: #0 [internal function]: Phalcon\Tag::getUrlService() 
#1 [internal function]: Phalcon\Tag::linkTo() 
#2 [internal function]: Phalcon\Debug->getVersion() 
#3 [internal function]: Phalcon\Debug->renderHtml() 
#4 [internal function]: Phalcon\Debug->onUncaughtException() 
#5 {main} thrown in phalcon/Tag.zep on line 469

Expected behavior
Phalcon Debug results interface

Details

  • Phalcon version: 4.0 and 4.1
  • PHP Version: 7.2 and 7.4
  • Operating System: Ubuntu 20.04 and Windows 10
  • Installation type: installing via package manager
  • Server: Apache
@diplopito diplopito added bug A bug report status: unverified Unverified labels Apr 8, 2021
@niden niden self-assigned this Nov 16, 2021
@niden niden added 5.0 The issues we want to solve in the 5.0 release status: low Low and removed status: unverified Unverified labels Nov 16, 2021
@niden niden changed the title [BUG]: Uncought Phalcon\Tag\Exception with Phalcon\Debug and Phalcon\Session\Bag [BUG]: Uncaught Phalcon\Tag\Exception with Phalcon\Debug and Phalcon\Session\Bag Nov 16, 2021
@niden niden mentioned this issue Nov 16, 2021
5 tasks
@niden niden linked a pull request Nov 16, 2021 that will close this issue
5 tasks
@niden
Copy link
Member

niden commented Nov 16, 2021

Resolved in #15786

@niden niden closed this as completed Nov 16, 2021
@niden niden moved this to Released in Phalcon v5 Aug 25, 2022
@niden niden added this to Phalcon v5 Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5.0 The issues we want to solve in the 5.0 release bug A bug report status: low Low
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants