glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.36k stars 1.3k forks source link

Dashboard not rendered properly in "All" tab #13010

Closed rafaelse closed 2 years ago

rafaelse commented 2 years ago

Code of Conduct

Is there an existing issue for this?

Version

10.0.3

Bug description

The dashboard is not rendered properly in the All tab, on the home page. It is somewhat mixed up with other components, and for that reason, it ends up being displayed in a messy way. See the picture below:

Dashboard Issue 1

It happens just after you login to GLPI, and then click on the All tab. If one goes back to the Dashboard tab afterwards, it gets buggy as well, displaying only a blank area:

image.

However, if one reloads the page while being on the All, it displays normally as expected:

image

I don't know, but it seems to be an issue related to cache or lazy loading.

Relevant log output

No response

Page URL

front/central.php

Steps To reproduce

No response

Your GLPI setup information

Information about system installation & configuration
GLPI 10.0.3 ( => /var/www/html)
Installation mode: TARBALL
Current language:en_US

Server
 
Operating system: Linux production-84d7df7f8c-mhpxh 5.4.156-83.273.amzn2.x86_64 #1 SMP Sat Oct 30 12:59:07 UTC 2021 x86_64
PHP 8.1.11 fpm-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, bz2, cgi-fcgi, ctype, curl, date, dom,
    elastic_apm, exif, fileinfo, filter, ftp, gd, hash, iconv, imap, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl,
    pcre, pdo_sqlite, posix, readline, redis, session, soap, sodium, sqlite3, standard, tokenizer, xml, xmlreader, xmlrpc,
    xmlwriter, zip, zlib)
Setup: max_execution_time="300" memory_limit="768M" post_max_size="20M" safe_mode="" session.save_handler="files"
    upload_max_filesize="20M" 
Software: nginx
    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Server Software: Source distribution
    Server Version: 5.7.39-log
    Server SQL Mode: NO_ENGINE_SUBSTITUTION

PHP version (8.1.11) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, json, simplexml.
curl extension is installed.
gd extension is installed.
intl extension is installed.
libxml extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (5.7.39) is supported.
The log file has been created successfully.
Write access to /glpidata/files/_cache has been validated.
Write access to /glpidata/config has been validated.
Write access to /glpidata/files/_cron has been validated.
Write access to /glpidata/files has been validated.
Write access to /glpidata/files/_dumps has been validated.
Write access to /glpidata/files/_graphs has been validated.
Write access to /glpidata/files/_lock has been validated.
Write access to /glpidata/files/_pictures has been validated.
Write access to /glpidata/files/_plugins has been validated.
Write access to /glpidata/files/_rss has been validated.
Write access to /glpidata/files/_sessions has been validated.
Write access to /glpidata/files/_tmp has been validated.
Write access to /glpidata/files/_uploads has been validated.
Sessions configuration is secured.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
zip extension is installed.
bz2 extension is installed.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: /var/www/html
GLPI_CONFIG_DIR: /glpidata/config
GLPI_VAR_DIR: /glpidata/files
GLPI_LOG_DIR: /glpidata/logs
GLPI_MARKETPLACE_DIR: /var/www/html/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_USE_IDOR_CHECK: 1
GLPI_IDOR_EXPIRES: 7200
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: 
GLPI_SERVERSIDE_URL_ALLOWLIST: Array
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: glpi@teclib.com
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: 1
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_CENTRAL_WARNINGS: 1
GLPI_DOC_DIR: /glpidata/files
GLPI_CACHE_DIR: /glpidata/files/_cache
GLPI_CRON_DIR: /glpidata/files/_cron
GLPI_DUMP_DIR: /glpidata/files/_dumps
GLPI_GRAPH_DIR: /glpidata/files/_graphs
GLPI_LOCAL_I18N_DIR: /glpidata/files/_locales
GLPI_LOCK_DIR: /glpidata/files/_lock
GLPI_PICTURE_DIR: /glpidata/files/_pictures
GLPI_PLUGIN_DOC_DIR: /glpidata/files/_plugins
GLPI_RSS_DIR: /glpidata/files/_rss
GLPI_SESSION_DIR: /glpidata/files/_sessions
GLPI_TMP_DIR: /glpidata/files/_tmp
GLPI_UPLOAD_DIR: /glpidata/files/_uploads
GLPI_INVENTORY_DIR: /glpidata/files/_inventories
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /var/www/html/locales
GLPI_VERSION: 10.0.3
GLPI_SCHEMA_VERSION: 10.0.3@a130db99c7d9b131c2e2ea59fe0d6260fe93d831
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_MIN_PHP: 7.4.0
GLPI_MAX_PHP: 8.3.0
GLPI_YEAR: 2022

Libraries
 
htmlawed/htmlawed version 1.2.9 in (/var/www/html/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.6.0 in (/var/www/html/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.5.0 in (/var/www/html/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/html/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/html/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/vendor/psr/cache/src)
league/csv in (/var/www/html/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/vendor/symfony/cache)
html2text/html2text in (/var/www/html/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/vendor/twig/string-extra)
symfony/polyfill-ctype not found
symfony/polyfill-iconv not found
symfony/polyfill-mbstring not found
symfony/polyfill-php80 not found
symfony/polyfill-php81 not found
symfony/polyfill-php82 in (/var/www/html/vendor/symfony/polyfill-php82)
phpCas version 1.4.0 in (/usr/local/lib/php)

LDAP directories
 
Server: 'ldaps://', Port: '636', BaseDN: '', Connection filter: none, RootDN:
        '', Use TLS: none
Server: 'ldaps://', Port: '636', BaseDN: '', Connection filter: none, RootDN:
        '', Use TLS: none

SQL replicas
 
Not active

Notifications
 
Way of sending emails: SMTP+TLS ()

Plugins list
 
    news                 Name: Alertas                        Version: 1.10.5     State: Enabled                                 
        Install Method: Marketplace
    formcreator          Name: Form Creator                   Version: 2.13.1     State: Enabled                                 
        Install Method: Marketplace
    glpiinventory        Name: GLPI Inventory                 Version: 1.0.4      State: Enabled                                 
        Install Method: Marketplace
    itilcategorygroups   Name: Grupos ItilCategory            Version: 2.5.1      State: Installed / not activated               
        Install Method: Marketplace

Anything else?

The issue occurs on both Chrome and Firefox browsers.

cconard96 commented 2 years ago

Related to #12953

trasher commented 2 years ago

Duplicates #13009