Closed st-alex-rep closed 2 years ago
Please provide the requested log output.
Specifically, entries from files/_log/php-errors.log
and files/_log/sql-errors.log
from around the time you experienced the issue.
For this, you should also check if there are any warnings or errors logged in the browser's console (F12 key -> console tab).
I could not recreate the issue on the latest 10.0 fixes branch.
@cconard96 , hello. php-errors.log :
[2022-06-19 12:59:16] glpiphplog.NOTICE: *** PHP Notice (8): Undefined property: DOMDocument::$documentElement in /var/www/glpi/vendor/symfony/dom-crawler/Crawler.php at line 266
Backtrace :
vendor/symfony/dom-crawler/Crawler.php:199 Symfony\Component\DomCrawler\Crawler->addDocument()
vendor/symfony/dom-crawler/Crawler.php:182 Symfony\Component\DomCrawler\Crawler->addHtmlContent()
vendor/symfony/dom-crawler/Crawler.php:143 Symfony\Component\DomCrawler\Crawler->addContent()
vendor/symfony/dom-crawler/Crawler.php:91 Symfony\Component\DomCrawler\Crawler->add()
src/Dashboard/Widget.php:1791 Symfony\Component\DomCrawler\Crawler->__construct()
: Glpi\Dashboard\Widget::searchShowList()
src/Dashboard/Grid.php:978 call_user_func()
ajax/dashboard.php:128 Glpi\Dashboard\Grid->getCardHtml()
[2022-06-19 12:59:16] glpiphplog.CRITICAL: *** Uncaught Exception InvalidArgumentException: The current node list is empty. in /var/www/glpi/vendor/symfony/dom-crawler/Crawler.php at line 677
Backtrace :
src/Dashboard/Widget.php:1792 Symfony\Component\DomCrawler\Crawler->outerHtml()
: Glpi\Dashboard\Widget::searchShowList()
src/Dashboard/Grid.php:978 call_user_func()
ajax/dashboard.php:128 Glpi\Dashboard\Grid->getCardHtml()
[2022-06-19 12:59:44] glpiphplog.NOTICE: *** PHP Notice (8): Undefined property: DOMDocument::$documentElement in /var/www/glpi/vendor/symfony/dom-crawler/Crawler.php at line 266
Backtrace :
vendor/symfony/dom-crawler/Crawler.php:199 Symfony\Component\DomCrawler\Crawler->addDocument()
vendor/symfony/dom-crawler/Crawler.php:182 Symfony\Component\DomCrawler\Crawler->addHtmlContent()
vendor/symfony/dom-crawler/Crawler.php:143 Symfony\Component\DomCrawler\Crawler->addContent()
vendor/symfony/dom-crawler/Crawler.php:91 Symfony\Component\DomCrawler\Crawler->add()
src/Dashboard/Widget.php:1791 Symfony\Component\DomCrawler\Crawler->__construct()
: Glpi\Dashboard\Widget::searchShowList()
src/Dashboard/Grid.php:978 call_user_func()
ajax/dashboard.php:128 Glpi\Dashboard\Grid->getCardHtml()
[2022-06-19 12:59:44] glpiphplog.CRITICAL: *** Uncaught Exception InvalidArgumentException: The current node list is empty. in /var/www/glpi/vendor/symfony/dom-crawler/Crawler.php at line 677
Backtrace :
src/Dashboard/Widget.php:1792 Symfony\Component\DomCrawler\Crawler->outerHtml()
: Glpi\Dashboard\Widget::searchShowList()
src/Dashboard/Grid.php:978 call_user_func()
ajax/dashboard.php:128 Glpi\Dashboard\Grid->getCardHtml()
There are no errors at this time in sql-errors.log: Thank you for your help P.s. we have already updated glpi to the latest version
There has been no activity on this issue for some time and therefore it is considered stale and will be closed automatically in 10 days.
If this issue is related to a bug, please try to reproduce on latest release. If the problem persist, feel free to add a comment to revive this issue. If it is related to a new feature, please open a topic to discuss with community about this enhancement on suggestion website.
You may also consider taking a subscription to get professionnal support or contact GLPI editor team directly.
Code of Conduct
Is there an existing issue for this?
Version
10.0.0
Bug description
It is not possible to add a card to the dashboard if it contains List content. For example, I choose Assistance -> Dashboard -> Toggle Edit Mode -> Add card -> List of late tickets. In any case, card does not work if the data type is a list.
Relevant log output
No response
Page URL
/front/dashboard_helpdesk.php
Steps To reproduce
No response
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response