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

Errors are not properly shown / Lead to further errors #5079

Closed
nilmerg opened this issue Aug 10, 2023 · 0 comments · Fixed by #5080
Closed

Errors are not properly shown / Lead to further errors #5079

nilmerg opened this issue Aug 10, 2023 · 0 comments · Fixed by #5080
Assignees
Labels
bug Something isn't working

Comments

@nilmerg
Copy link
Member

nilmerg commented Aug 10, 2023

Example

Fatal error: Uncaught ErrorException: Uncaught ErrorException: var_export does not handle circular references in /icingaweb2/library/Icinga/Util/Json.php:71 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'var_export does...', '/icingaweb2/lib...', 71) #1 /icingaweb2/library/Icinga/Util/Json.php(71): var_export(Object(TypeError), true) #2 /icingaweb2/library/Icinga/Util/Json.php(26): Icinga\Util\Json::encodeAndSanitize(Object(TypeError), 0, 512, false) #3 /icingaweb2/library/Icinga/Application/Logger.php(255): Icinga\Util\Json::encode(Object(TypeError)) #4 [internal function]: Icinga\Application\Logger::Icinga\Application\{closure}(Object(TypeError)) #5 /icingaweb2/library/Icinga/Application/Logger.php(252): array_map(Object(Closure), Array) #6 /icingaweb2/library/Icinga/Application/Logger.php(270): Icinga\Application\Logger::formatMessage(Array) #7 /icingaweb2/application/controllers/ErrorController.php(96): Icinga\Application\Logger::error('%s\n%s', Object(TypeError), '#0 /usr/share/i...') #8 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Controllers\ErrorController->errorAction() #9 /icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #10 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #11 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #12 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #13 /icingaweb2/public/index.php(4): require_once('/icingaweb2/lib...') #14 {main} Next Zend_Controller_Exception: var_export does not handle circular references#0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'var_export does...', '/icingaweb2/lib...', 71) #1 /icingaweb2/library/Icinga/Util/Json.php(71): var_export(Object(TypeError), true) #2 /icingaweb2/library/Icinga/Util/Json.php(26): Icinga\Util\Json::encodeAndSanitize(Object(TypeError), 0, 512, false) #3 /icingaweb2/library/Icinga/Application/Logger.php(255): Icinga\Util\Json::encode(Object(TypeError)) #4 [internal function]: Icinga\Application\Logger::Icinga\Application\{closure}(Object(TypeError)) #5 /icingaweb2/library/Icinga/Application/Logger.php(252): array_map(Object(Closure), Array) #6 /icingaweb2/library/Icinga/Application/Logger.php(270): Icinga\Application\Logger::formatMessage(Array) #7 /icingaweb2/application/controllers/ErrorController.php(96): Icinga\Application\Logger::error('%s\n%s', Object(TypeError), '#0 /usr/share/i...') #8 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Controllers\ErrorController->errorAction() #9 /icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #10 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #11 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #12 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #13 /icingaweb2/public/index.php(4): require_once('/icingaweb2/lib...') #14 {main} in /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Plugin/Broker.php:335 Stack trace: #0 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Icinga\Web\Request)) #1 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #2 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #3 /icingaweb2/public/index.php(4): require_once('/icingaweb2/lib...') #4 {main} thrown in /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Plugin/Broker.php:335 Stack trace: #0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}() #1 {main} Next Zend_Controller_Exception: Uncaught ErrorException: var_export does not handle circular references in /icingaweb2/library/Icinga/Util/Json.php:71 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'var_export does...', '/icingaweb2/lib...', 71) #1 /icingaweb2/library/Icinga/Util/Json.php(71): var_export(Object(TypeError), true) #2 /icingaweb2/library/Icinga/Util/Json.php(26): Icinga\Util\Json::encodeAndSanitize(Object(TypeError), 0, 512, false) #3 /icingaweb2/library/Icinga/Application/Logger.php(255): Icinga\Util\Json::encode(Object(TypeError)) #4 [internal function]: Icinga\Application\Logger::Icinga\Application\{closure}(Object(TypeError)) #5 /icingaweb2/library/Icinga/Application/Logger.php(252): array_map(Object(Closure), Array) #6 /icingaweb2/library/Icinga/Application/Logger.php(270): Icinga\Application\Logger::formatMessage(Array) #7 /icingaweb2/application/controllers/ErrorController.php(96): Icinga\Application\Logger::error('%s\n%s', Object(TypeError), '#0 /usr/share/i...') #8 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Controllers\ErrorController->errorAction() #9 /icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #10 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #11 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #12 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #13 /icingaweb2/public/index.php(4): require_once('/icingaweb2/lib...') #14 {main} Next Zend_Controller_Exception: var_export does not handle circular references#0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'var_export does...', '/icingaweb2/lib...', 71) #1 /icingaweb2/library/Icinga/Util/Json.php(71): var_export(Object(TypeError), true) #2 /icingaweb2/library/Icinga/Util/Json.php(26): Icinga\Util\Json::encodeAndSanitize(Object(TypeError), 0, 512, false) #3 /icingaweb2/library/Icinga/Application/Logger.php(255): Icinga\Util\Json::encode(Object(TypeError)) #4 [internal function]: Icinga\Application\Logger::Icinga\Application\{closure}(Object(TypeError)) #5 /icingaweb2/library/Icinga/Application/Logger.php(252): array_map(Object(Closure), Array) #6 /icingaweb2/library/Icinga/Application/Logger.php(270): Icinga\Application\Logger::formatMessage(Array) #7 /icingaweb2/application/controllers/ErrorController.php(96): Icinga\Application\Logger::error('%s\n%s', Object(TypeError), '#0 /usr/share/i...') #8 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Action.php(516): Icinga\Controllers\ErrorController->errorAction() #9 /icingaweb2/library/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #10 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(954): Icinga\Web\Controller\Dispatcher->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #11 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #12 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #13 /icingaweb2/public/index.php(4): require_once('/icingaweb2/lib...') #14 {main} in /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Plugin/Broker.php:335 Stack trace: #0 /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Front.php(965): Zend_Controller_Plugin_Broker->postDispatch(Object(Icinga\Web\Request)) #1 /icingaweb2/library/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch(Object(Icinga\Web\Request), Object(Icinga\Web\Response)) #2 /icingaweb2/library/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch() #3 /icingaweb2/public/index.php(4): require_once('/icingaweb2/lib...') #4 {main} thrown#0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}() #1 {main} in /usr/share/icinga-php/vendor/vendor/shardj/zf1-future/library/Zend/Controller/Plugin/Broker.php on line 262
@nilmerg nilmerg added the bug Something isn't working label Aug 10, 2023
@nilmerg nilmerg self-assigned this Aug 10, 2023
nilmerg added a commit that referenced this issue Aug 10, 2023
nilmerg added a commit that referenced this issue Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant