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

ZFW-6: Error when working in console mode #12

Closed
sfurionix opened this issue Apr 19, 2019 · 4 comments
Closed

ZFW-6: Error when working in console mode #12

sfurionix opened this issue Apr 19, 2019 · 4 comments
Assignees
Labels

Comments

@sfurionix
Copy link

sfurionix commented Apr 19, 2019

Error when working with the zendframework/zend-mvc-console package.
Version ppito/zf3-whoops: 1.3.1
Perhaps need to add a check if $response is a Zend\Console\Response object, then do nothing.

Error: Call to undefined method Zend\Console\Response::getStatusCode() in file www\vendor\ppito\zf3-whoops\src\Module.php on line 151
Stack trace:
  1. Error->() www\vendor\ppito\zf3-whoops\src\Module.php:151
  2. WhoopsErrorHandler\Module->prepareException() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:322
  3. Zend\EventManager\EventManager->triggerListeners() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:171
  4. Zend\EventManager\EventManager->triggerEvent() www\vendor\zendframework\zend-mvc\src\DispatchListener.php:152
  5. Zend\Mvc\DispatchListener->onDispatch() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:322
  6. Zend\EventManager\EventManager->triggerListeners() www\vendor\zendframework\zend-eventmanager\src\EventManager.php:179
  7. Zend\EventManager\EventManager->triggerEventUntil() www\vendor\zendframework\zend-mvc\src\Application.php:332
  8. Zend\Mvc\Application->run() www\public\index.php:40
@Ppito Ppito added the bug label Apr 23, 2019
@Ppito Ppito self-assigned this Apr 23, 2019
@Ppito Ppito changed the title Error when working in console mode ZFW-6: Error when working in console mode Apr 23, 2019
@Ppito
Copy link
Owner

Ppito commented Apr 23, 2019

Hello,

Sorry for your problem.
I'll fix it as soon as possible.

However, since 3 months zend-console is become deprecated, so perhaps you'll need to change your library !?

@Ppito
Copy link
Owner

Ppito commented Apr 23, 2019

I merged a fix in development branch, can you test it and tell me if everything is good ?

@sfurionix
Copy link
Author

Hello, Mickael.
Thank you for responding.
I checked development branch. Everything works well.
I use zend-console for slm/queue package. It works only with zend-console.

@Ppito
Copy link
Owner

Ppito commented May 1, 2019

Hi Sfurionix,

I create a new release with the fix.

Have a nice day,

@Ppito Ppito closed this as completed May 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants