Login form is shifted to the left on login page when no alert is active (v1.15.0)

Abierto
#247 3 comentarios 2 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
58/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
php
Área
frontend

Línea de trabajo

Start at the News plugin code that alters the GLPI login page layout and check how it handles the case when no alert is active or configured for that page. Reproduce with the plugin enabled and no active alerts, then compare with the plugin disabled; done means the login form is centered when there is no alert to display.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Code of Conduct
  • I agree to follow this project's Code of Conduct
Is there an existing issue for this?
  • I have searched the existing issues
GLPI Version

12.0.1

Plugin version

1.15.0

Bug description

Since upgrading to version 1.15.0 of the News plugin, the login form on the GLPI login page is no longer centered.

The login block (Login / Password / Login source / Sign in) is shifted to the left side of the login card, and the right half of the card stays empty, as if space was reserved for an alert.

There is no active alert at all (no alert configured, or all alerts expired/disabled, and none set to display on the login page).

Expected behavior: when there is no alert to display, the login form should be centered as in standard GLPI, with no space reserved for alerts.

Actual behavior: the layout of the login page is changed even though there is nothing to display.

Disabling the plugin brings back the normal centered layout.

Relevant log output
No related error found in files/_log/*-error.log.
Page URL

/index.php (login page)

Steps To reproduce

Install and enable the News plugin version 1.15.0 on GLPI 12.0.x
Make sure no alert is active (none configured, or all expired/disabled)
Log out and go to the GLPI login page (/index.php)
See that the login form is shifted to the left and the right part of the login card is empty
Disable the News plugin and reload the login page: the form is centered again

Image
Your GLPI setup information
GLPI information
GLPI: 12.0.1 ( => /var/www/glpi)
Installation mode: TARBALL
Current language: fr_FR
Source Integrity: 12 files changed
  A: inc/downstream.php
  D: install/install.php
Server
Operating system: Linux SRV-TICKETING 6.12.113+deb13-amd64 #​1 SMP PREEMPT_DYNAMIC Debian 6.12.113-1 (2026-10-15) x86_64

PHP: 8.5.12 fpm-fcgi

PHP extensions: Core, date, lexbor, openssl, pcre, zlib, filter, hash, json, uri, Zend OPcache, random, Reflection, SPL, session, standard, sodium, libxml, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, iconv, igbinary, imap, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, redis

Setup: disable_functions="" max_execution_time="60" max_input_vars="5000" memory_limit="512M" post_max_size="25M" session.cookie_secure="1" session.cookie_httponly="1" session.cookie_samesite="Lax" session.save_handler="redis" upload_max_filesize="20M"

Web server: nginx/1.26.3 ()

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36 Edg/155.0.0.0

Database:

Server Software: -- Please help get to 10k stars at https://github.com/MariaDB/Server

Server Version: 11.8.6-MariaDB-0+deb13u1 from Debian

Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Parameters: use_glpi@localhost/db_glpi

Host info: Localhost via UNIX socket

Requirements:
PHP version (8.5.12) is supported.
OS and PHP are relying on 64 bits integers.
Sessions configuration is OK.
Allocated memory is sufficient.
Following extensions are installed: dom, fileinfo, filter, libxml, simplexml, tokenizer, xmlreader, xmlwriter.
mysqli extension is installed
curl extension is installed
gd extension is installed
intl extension is installed
mbstring extension is installed
zlib extension is installed
bcmath extension is installed
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
openssl extension is installed
Database engine version (11.8.6) is supported.
Write access to log files has been validated.
Write access to /var/lib/glpi/_cache has been validated.
Write access to /var/lib/glpi/_cron has been validated.
Write access to /var/lib/glpi has been validated.
Write access to /var/lib/glpi/_graphs has been validated.
Write access to /var/lib/glpi/_lock has been validated.
Write access to /var/lib/glpi/_pictures has been validated.
Write access to /var/lib/glpi/_plugins has been validated.
Write access to /var/lib/glpi/_rss has been validated.
Write access to /var/lib/glpi/_sessions has been validated.
Write access to /var/lib/glpi/_tmp has been validated.
Write access to /var/lib/glpi/_uploads has been validated.
Security key files are accessibles.

Sessions configuration is secured.
exif extension is installed
ldap extension is installed
Following extensions are installed: bz2, Phar, zip.
Zend OPcache extension is installed
Following extensions are installed: ctype, iconv, sodium.
Write access to /var/www/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants

GLPI_ROOT: "/var/www/glpi"
GLPI_VERSION: "12.0.1"
GLPI_SCHEMA_VERSION: "12.0.1@5768fcc43eb6712d0bc124e36b6be3f1e5e506fb"
GLPI_FILES_VERSION: "12.0.1-68e82a64"
GLPI_MIN_PHP: "8.3"
GLPI_MAX_PHP: "8.5"
GLPI_YEAR: "2026"
GLPI_I18N_DIR: "/var/www/glpi/locales"
GLPI_CONFIG_DIR: "/etc/glpi/"
GLPI_VAR_DIR: "/var/lib/glpi"
GLPI_DOC_DIR: "/var/lib/glpi"
GLPI_CACHE_DIR: "/var/lib/glpi/_cache"
GLPI_CRON_DIR: "/var/lib/glpi/_cron"
GLPI_GRAPH_DIR: "/var/lib/glpi/_graphs"
GLPI_LOCAL_I18N_DIR: "/var/lib/glpi/_locales"
GLPI_LOCK_DIR: "/var/lib/glpi/_lock"
GLPI_PICTURE_DIR: "/var/lib/glpi/_pictures"
GLPI_PLUGIN_DOC_DIR: "/var/lib/glpi/_plugins"
GLPI_RSS_DIR: "/var/lib/glpi/_rss"
GLPI_SESSION_DIR: "/var/lib/glpi/_sessions"
GLPI_TMP_DIR: "/var/lib/glpi/_tmp"
GLPI_UPLOAD_DIR: "/var/lib/glpi/_uploads"
GLPI_INVENTORY_DIR: "/var/lib/glpi/_inventories"
GLPI_THEMES_DIR: "/var/lib/glpi/_themes"
GLPI_LOG_DIR: "/var/log/glpi"
GLPI_ENVIRONMENT_TYPE: "production"
GLPI_MARKETPLACE_DIR: "/var/www/glpi/marketplace"
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: false
GLPI_SERVERSIDE_URL_ALLOWED_PRIVATE_NETWORKS_CONTEXTS: ["Agent","Auth"]
GLPI_DISALLOWED_UPLOADS_PATTERN: "/\.(php\d*|phar)$/i"
GLPI_TRUSTED_REVERSE_PROXIES: []
GLPI_REVERSE_PROXY_HEADERS: ["X-Forwarded-For"]
GLPI_TELEMETRY_URI: "https://telemetry.glpi-project.org"
GLPI_INSTALL_MODE: "TARBALL"
GLPI_NETWORK_MAIL: "[email protected]"
GLPI_NETWORK_SERVICES: "https://services.glpi-network.com"
GLPI_MARKETPLACE_ENABLE: 3
GLPI_MARKETPLACE_PRERELEASES: false
GLPI_MARKETPLACE_ALLOW_OVERRIDE: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
GLPI_USER_AGENT_EXTRA_COMMENTS: ""
GLPI_DOCUMENTATION_ROOT_URL: "https://links.glpi-project.org"
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1"
GLPI_DISABLE_REAUTH: false
GLPI_LOG_LVL: "warning"
GLPI_SKIP_UPDATES: false
GLPI_STRICT_ENV: false
GLPI_AJAX_DASHBOARD: "1"
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_CENTRAL_WARNINGS: "1"
GLPI_SYSTEM_CRON: false
GLPI_TEXT_MAXSIZE: "4000"
GLPI_WEBHOOK_ALLOW_RESPONSE_SAVING: "0"
GLPI_WEBHOOK_CRA_MANDATORY: false
GLPI_ALTCHA_MODE: "interactive"
GLPI_ALTCHA_COST: 5000
GLPI_ALTCHA_EXPIRATION_INTERVAL: "PT20M"
GLPI_PLUGINS_DIRECTORIES: ["/var/www/glpi/marketplace","/var/www/glpi/plugins"]
GLPI_NETWORK_API_URL: "https://services.glpi-network.com/api"
GLPI_NETWORK_REGISTRATION_API_URL: "https://services.glpi-network.com/api/registration/"
GLPI_MARKETPLACE_PLUGINS_API_URI: "https://services.glpi-network.com/api/marketplace/"
LDAP directories

Server: 'ldaps://ldaps.ote.corp',
Port: '636',
BaseDN: 'dc=ote,dc=corp',
Connection filter: '(&(objectCategory=person)(objectClass=user)(mail=*)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))',
RootDN: '[email protected]',
Use TLS: none
SQL replicas

Not active
Notifications

Way of sending emails: SMTP(smtp://smtp.ote.corp:25?verify_peer=0&local_domain=srv-ticketing)
Plugins list

fields Name: Additional fields Version: 1.25.0 State: Enabled Install Method: Manual
datainjection Name: Data injection Version: 2.16.0 State: Enabled Install Method: Manual
loginbyemail Name: Login By E-mail Version: 1.0.0 State: Enabled Install Method: Manual
pdf Name: Print to pdf Version: 4.2.0 State: Enabled Install Method: Manual
news Name: Alerts Version: 1.15.0 State: Installed / not activated Install Method: Manual

Anything else?

No response

Lenguaje dominante
PHP
Estrellas
32
Forks
25
Merge medio
2 h 10 min
PR fusionados (30 d)
10

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de pluginsGLPI/news

Todos los issues de pluginsGLPI/news

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.