Uncaught TypeError: PDO::quote(): Argument #1 ($string) must be of type string, stdClass given in /usr/share/icingaweb2/library/vendor/Zend/Db/Adapter/Pdo/Abstract.php
Can you elaborate where you encounter the error, or when it occurs ?
Just simply posting an error message is a little bit shortsighted … this needs more background information about when and where it occurs.
Regards
David
Sorry, you are absolutely right.
I get this error on the icingaweb2 page when I click on the host that is the icinga master server.
However, in the rest of the hosts, the satellites, it shows them well.
In Overview → Hosts → Master server
Uncaught TypeError: PDO::quote(): Argument #1 ($string) must be of type string, stdClass given in /usr/share/icingaweb2/library/vendor/Zend/Db/Adapter/Pdo/Abstract.php:295
Stack trace:
#0 /usr/share/icingaweb2/library/vendor/Zend/Db/Adapter/Pdo/Abstract.php(295): PDO->quote()
#1 /usr/share/icingaweb2/library/vendor/Zend/Db/Adapter/Abstract.php(894): Zend_Db_Adapter_Pdo_Abstract->_quote()
#2 /usr/share/icingaweb2/library/vendor/Zend/Db/Adapter/Abstract.php(919): Zend_Db_Adapter_Abstract->quote()
#3 /usr/share/icingaweb2/library/vendor/Zend/Db/Select.php(1020): Zend_Db_Adapter_Abstract->quoteInto()
#4 /usr/share/icingaweb2/library/vendor/Zend/Db/Select.php(491): Zend_Db_Select->_where()
#5 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Db/CheckRelatedLookup.php(93): Zend_Db_Select->where()
#6 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/Db/CheckRelatedLookup.php(53): Icinga\Module\Vspheredb\Db\CheckRelatedLookup->findBy()
#7 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MonitoringIntegration/MonitoredObjectFinder.php(67): Icinga\Module\Vspheredb\Db\CheckRelatedLookup->findOneBy()
#8 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/MonitoringIntegration/MonitoredObjectFinder.php(43): Icinga\Module\Vspheredb\MonitoringIntegration\MonitoredObjectFinder->loadOptionalObject()
#9 /usr/share/icingaweb2/modules/vspheredb/library/Vspheredb/ProvidedHook/Monitoring/DetailviewExtension.php(32): Icinga\Module\Vspheredb\MonitoringIntegration\MonitoredObjectFinder->find()
#10 /usr/share/icingaweb2/modules/monitoring/library/Monitoring/Web/Controller/MonitoredObjectController.php(98): Icinga\Module\Vspheredb\ProvidedHook\Monitoring\DetailviewExtension->getHtmlForObject()
#11 /usr/share/icingaweb2/modules/monitoring/application/controllers/HostController.php(63): Icinga\Module\Monitoring\Web\Controller\MonitoredObjectController->showAction()
#12 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(507): Icinga\Module\Monitoring\Controllers\HostController->showAction()
#13 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch()
#14 /usr/share/icingaweb2/library/vendor/Zend/Controller/Front.php(937): Icinga\Web\Controller\Dispatcher->dispatch()
#15 /usr/share/php/Icinga/Application/Web.php(290): Zend_Controller_Front->dispatch()
#16 /usr/share/php/Icinga/Application/webrouter.php(105): Icinga\Application\Web->dispatch()
#17 /usr/share/icingaweb2/public/index.php(4): require_once('...')
#18 {main}
thrown
#0 [internal function]: Icinga\Application\Web->Icinga\Application\{closure}()
#1 {main}
Is it the latest icingaweb2 Version or which version are you using, what is the webserver(nginx/Apache) and the php version would be helpful as well as the vspheredb also shows up in the error message what version is installed of it ?
what is the underlying operating system (rhel/debian/…) ?
thanks in advance
David
Hi David,
This is the information you asked me about the versions, only the vspheredb one is missing, I can’t see which version is installed.
SO: Rocky Linux release 9.4 (Blue Onyx)
httpd 2.4.57-8.el9
nagios-plugins-http.x86_64 2.4.9-1.el9
icinga2.x86_64 2.13.7-1.el9
icingaweb2.noarch 2.11.3-2.el9
php.x86_64 8.1.31-1.el9.remi
php-fpm.x86_64 8.1.31-1.el9.remi
Many thanks to you
The information should be displayed on the about page.
https://icinga.example.com/icingaweb2/about