-
Notifications
You must be signed in to change notification settings - Fork 282
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
Host/Service actions with only a label are not shown #4211
Comments
Hi, That's probably a module. Disable the modules one by one and check if it disappears after disabling a particular one. This may already allow you to track the issue down, if not, head back here. |
Hello I've tried to disable modules one by one and even all of them leaving only monitoring module active and this error is still there. |
After changing I'm getting this error |
What happens if you apply this one? diff --git library/Icinga/Exception/IcingaException.php library/Icinga/Exception/IcingaException.php
index a87ea4a8f..82793dc3d 100644
--- library/Icinga/Exception/IcingaException.php
+++ library/Icinga/Exception/IcingaException.php
@@ -52,6 +52,7 @@ class IcingaException extends Exception
*/
public static function describe(Exception $exception)
{
+ return static::getConfidentialTraceAsString($exception);
return sprintf(
'%s in %s:%d with message: %s',
get_class($exception), |
That one did a lot ;)
|
And this one? diff --git library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php
index 562ed37d6..899bf3d19 100644
--- library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php
+++ library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php
@@ -192,6 +192,7 @@ class RecursiveNavigationRenderer extends RecursiveIteratorIterator implements N
try {
return $this->render();
} catch (Exception $e) {
+ return var_export($this, true);
return IcingaException::describe($e);
}
} |
Damn! Overseen an 🐘! diff --git library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php
index 562ed37d6..9c04f69d4 100644
--- library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php
+++ library/Icinga/Web/Navigation/Renderer/RecursiveNavigationRenderer.php
@@ -192,6 +192,7 @@ class RecursiveNavigationRenderer extends RecursiveIteratorIterator implements N
try {
return $this->render();
} catch (Exception $e) {
+ return '<pre>' . htmlspecialchars(var_export($this, true), ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, 'UTF-8') . '</pre>';
return IcingaException::describe($e);
}
} |
Damn! It doesn't dump base class' members. Try this instead: diff --git modules/monitoring/application/views/scripts/show/components/actions.phtml modules/monitoring/application/views/scripts/show/components/actions.phtml
index 938ab2aff..4c5f8fb06 100644
--- modules/monitoring/application/views/scripts/show/components/actions.phtml
+++ modules/monitoring/application/views/scripts/show/components/actions.phtml
@@ -39,5 +39,6 @@ if ($navigation->isEmpty() || ! $navigation->hasRenderableItems()) {
?>
<tr>
<th><?= $this->translate('Actions'); ?></th>
+ <pre><?= htmlspecialchars(var_export($navigation, true), ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, 'UTF-8') ?></pre>
<?= $navigation->getRenderer()->setElementTag('td')->setCssClass('actions go-ahead'); ?>
</tr> |
What about C&P instead of screenshots? |
And this one? diff --git modules/monitoring/application/views/scripts/show/components/actions.phtml modules/monitoring/application/views/scripts/show/components/actions.phtml
index 938ab2aff..6d2161c4d 100644
--- modules/monitoring/application/views/scripts/show/components/actions.phtml
+++ modules/monitoring/application/views/scripts/show/components/actions.phtml
@@ -39,5 +39,6 @@ if ($navigation->isEmpty() || ! $navigation->hasRenderableItems()) {
?>
<tr>
<th><?= $this->translate('Actions'); ?></th>
+ <pre><?= htmlspecialchars(var_export($object->getActionUrls(), true), ENT_COMPAT | ENT_SUBSTITUTE | ENT_HTML5, 'UTF-8') ?></pre>
<?= $navigation->getRenderer()->setElementTag('td')->setCssClass('actions go-ahead'); ?>
</tr> |
Much better: Problem handling
But we still have this below:
|
Annotating #0's location shows @nilmerg – and I don't know how this shall actually work. |
Caused by #3830 |
Describe the bug
Hi, recently I've updated my RHEL 7.5 installation to 7.8 along with icinga2 from 2.9 to 2.11 and icingaweb2 to 2.8.1-1.
Most of the update went like a charm but I've noticed that right now I'm getting error under "Problem handling" field on each service in icinga web.
Problem handling
Icinga\Exception\ProgrammingError in /usr/share/php/Icinga/Web/Url.php:168 with message: url "" is not a string
I've tried to search for solution for many hours and ended up digging in php-fpm installation etc. but without any luck.
So any solution or workaround would be greatly appreciated.
Screenshots
Your Environment
Kind Regards
Michal
The text was updated successfully, but these errors were encountered: