[X] I agree to follow this project's Code of Conduct
Is there an existing issue for this?
[X] I have searched the existing issues
Version
10.0.8
Bug description
Error when running the command below:
glpi:/var/www/html/glpi.10# php bin/console migration:timestamps
Uncaught Exception Error: Call to undefined function session_status() in /var/www/html/glpi.10/src/Session.php at line 228
Relevant log output
No response
Page URL
No response
Steps To reproduce
docker exec -ti glpi /bin/bash
cd /var/www/html/glpi.10
php bin/console migration:timestamps
Your GLPI setup information
Instruções de instalação e configuração
GLPI 10.0.8 ( => /var/www/html/glpi.10)
Installation mode: TARBALL
Current language:pt_BR
Server
Operating system: Linux glpi 5.15.49-linuxkit-pr #1 SMP Thu May 25 07:17:40 UTC 2023 x86_64
PHP 8.2.8 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bcmath, bz2, calendar,
ctype, curl, date, dba, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, igbinary, imap, intl, json, ldap, libxml,
mbstring, msgpack, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, random, redis, session, snmp, soap, sockets,
sodium, standard, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="30" memory_limit="128M" post_max_size="8M" safe_mode="" session.save_handler="files"
upload_max_filesize="2M"
Software: Apache ()
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36 Edg/114.0.1823.67
Server Software: mariadb.org binary distribution
Server Version: 11.0.2-MariaDB-1:11.0.2+maria~ubu2204-log
Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Parameters: glpi@mariadb/glpi10
Host info: mariadb via TCP/IP
PHP version (8.2.8) is supported.
Sessions configuration is OK.
Allocated memory is sufficient.
mysqli extension is installed.
Following extensions are installed: dom, fileinfo, filter, libxml, json, simplexml, xmlreader, xmlwriter.
curl extension is installed.
gd extension is installed.
intl extension is installed.
zlib extension is installed.
The constant SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
Database engine version (11.0.2) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to /var/lib/glpi/_cache has been validated.
Write access to /etc/glpi 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/_dumps 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.
Web server root directory configuration seems safe.
Sessions configuration is secured.
OS and PHP are relying on 64 bits integers.
exif extension is installed.
ldap extension is installed.
openssl extension is installed.
Following extensions are installed: bz2, Phar, zip.
Zend OPcache extension is installed.
Following extensions are installed: ctype, iconv, mbstring, sodium.
Write access to /var/www/html/glpi.10/marketplace has been validated.
Timezones seems loaded in database.
htmlawed/htmlawed version 1.2.14 in (/var/www/html/glpi.10/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.8.0 in (/var/www/html/glpi.10/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/var/www/html/glpi.10/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.4.4 in (/var/www/html/glpi.10/plugins/pdf/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/var/www/html/glpi.10/vendor/michelf/php-markdown/Michelf)
true/punycode in (/var/www/html/glpi.10/vendor/true/punycode/src)
iamcal/lib_autolink in (/var/www/html/glpi.10/vendor/iamcal/lib_autolink)
sabre/dav in (/var/www/html/glpi.10/vendor/sabre/dav/lib/DAV)
sabre/http in (/var/www/html/glpi.10/vendor/sabre/http/lib)
sabre/uri in (/var/www/html/glpi.10/vendor/sabre/uri/lib)
sabre/vobject in (/var/www/html/glpi.10/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/var/www/html/glpi.10/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/var/www/html/glpi.10/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/var/www/html/glpi.10/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/var/www/html/glpi.10/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/var/www/html/glpi.10/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/var/www/html/glpi.10/vendor/elvanto/litemoji/src)
symfony/console in (/var/www/html/glpi.10/vendor/symfony/console)
scssphp/scssphp in (/var/www/html/glpi.10/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/var/www/html/glpi.10/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/var/www/html/glpi.10/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/var/www/html/glpi.10/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/var/www/html/glpi.10/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/var/www/html/glpi.10/vendor/ramsey/uuid/src)
psr/log in (/var/www/html/glpi.10/vendor/psr/log/Psr/Log)
psr/simple-cache in (/var/www/html/glpi.10/vendor/psr/simple-cache/src)
psr/cache in (/var/www/html/glpi.10/vendor/psr/cache/src)
league/csv in (/var/www/html/glpi.10/vendor/league/csv/src)
mexitek/phpcolors in (/var/www/html/glpi.10/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/var/www/html/glpi.10/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/var/www/html/glpi.10/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/var/www/html/glpi.10/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/var/www/html/glpi.10/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/var/www/html/glpi.10/vendor/paragonie/sodium_compat/src)
symfony/cache in (/var/www/html/glpi.10/vendor/symfony/cache)
html2text/html2text in (/var/www/html/glpi.10/vendor/html2text/html2text/src)
symfony/css-selector in (/var/www/html/glpi.10/vendor/symfony/css-selector)
symfony/dom-crawler in (/var/www/html/glpi.10/vendor/symfony/dom-crawler)
twig/twig in (/var/www/html/glpi.10/vendor/twig/twig/src)
twig/string-extra in (/var/www/html/glpi.10/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/glpi.10/vendor/symfony/polyfill-php82)
league/oauth2-client in (/var/www/html/glpi.10/vendor/league/oauth2-client/src/Provider)
league/oauth2-google in (/var/www/html/glpi.10/vendor/league/oauth2-google/src/Provider)
thenetworg/oauth2-azure in (/var/www/html/glpi.10/vendor/thenetworg/oauth2-azure/src/Provider)
Code of Conduct
Is there an existing issue for this?
Version
10.0.8
Bug description
Error when running the command below:
glpi:/var/www/html/glpi.10# php bin/console migration:timestamps Uncaught Exception Error: Call to undefined function session_status() in /var/www/html/glpi.10/src/Session.php at line 228
Relevant log output
No response
Page URL
No response
Steps To reproduce
Your GLPI setup information
Instruções de instalação e configuração
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
GLPi and MariaDB are using different images. Reason: MariaDB has other databases for other applications.
BEGIN: mariadb (docker-compose.yaml)
version: "3"
services: mariadb: image: mariadb container_name: mariadb hostname: mariadb restart: "no" command: [ '--log-bin=mysqld-bin', # Logging '--slow-query_log_file=/var/lib/mysql/mariadb-slow.log', '--slow_query_log=1', '--long_query_time=1', '--innodb_buffer_pool_size=1024M', '--innodb_read_io_threads=4', '--innodb_flush_log_at_trx_commit=2', '--innodb_flush_method=O_DIRECT', '--transaction-isolation=READ-COMMITTED', '--binlog-format=ROW' ] environment: MYSQL_USER: root MYSQL_PASSWORD: XXXX MYSQL_ROOT_PASSWORD: XXXX TZ: America/Sao_Paulo ports:
volumes: data_mariadb: external: true
networks: default: name: hammers external: true
BEGIN: glpi (Dockerfile)
FROM alpine:3.18.2
ENV HTTPD_HOME=/etc/apache2 \ HTTPD_CONF=/etc/apache2/httpd.conf \ HTTPD_HTML=/var/www/html \ HTTPD_CGI=/var/www/cgi-bin \ HTTPD_FCGI=/var/www/fcgi-bin \ GLPI_ETC=/etc/glpi \ GLPI_HOME=/var/www/html/glpi.10 \ GLPI_LIB=/var/lib/glpi \ GLPI_LOG=/var/log/glpi \ GLPI_SSL=/etc/ssl \ PHP_INI=/etc/php82/php.ini \ GLPI_POSTFIX=/etc/postfix/main.cf
RUN apk update && \ apk upgrade && \ apk add --no-cache \ apache2-proxy \ apache2-ssl \ apache2-utils \ bash \ build-base \ bzip2 \ cronie \ cronie-openrc \ ca-certificates \ composer \ composer-bash-completion \ curl \ fcgi \ gzip \ logrotate \ openrc \ openssl \ postfix \ rsyslog \ rsyslog-http \ tzdata \ unzip \ zip \ php82 \ php82-apache2 \ php82-bcmath \ php82-bz2 \ php82-calendar \ php82-cgi \ php82-cli \ php82-common \ php82-ctype \ php82-curl \ php82-dba \ php82-dbg \ php82-dom \ php82-embed \ php82-exif \ php82-fileinfo \ php82-fpm \ php82-ftp \ php82-gd \ php82-gettext \ php82-iconv \ php82-imap \ php82-intl \ php82-json \ php82-ldap \ php82-mbstring \ php82-mysqli \ php82-opcache \ php82-openssl \ php82-pdo \ php82-pdo_mysql \ php82-pdo_sqlite \ php82-pecl-redis \ php82-phar \ php82-posix \ php82-session \ php82-simplexml \ php82-snmp \ php82-soap \ php82-sodium \ php82-tokenizer \ php82-xml \ php82-xmlreader \ php82-xmlwriter \ php82-xsl \ php82-zip \ php82-zlib
RUN cd /tmp && \ cd /etc/apache2 && \ ln -sf /usr/lib/apache2 modules && \ mkdir -p ${HTTPD_HOME}/logs && \ mkdir -p ${GLPI_LOG}/_cache && \ mkdir -p ${GLPI_LOG}/_cron && \ mkdir -p ${GLPI_LOG}/_dumps && \ mkdir -p ${GLPI_LOG}/_graphs && \ mkdir -p ${GLPI_LOG}/_lock && \ mkdir -p ${GLPI_LOG}/_log && \ mkdir -p ${GLPI_LOG}/_pictures && \ mkdir -p ${GLPI_LOG}/_plugins && \ mkdir -p ${GLPI_LOG}/_rss && \ mkdir -p ${GLPI_LOG}/_sessions && \ mkdir -p ${GLPI_LOG}/_tmp && \ mkdir -p ${GLPI_LOG}/_uploads && \ mkdir -p ${GLPI_LIB}/_cache && \ mkdir -p ${GLPI_LIB}/_cron && \ mkdir -p ${GLPI_LIB}/_dumps && \ mkdir -p ${GLPI_LIB}/_graphs && \ mkdir -p ${GLPI_LIB}/_locales && \ mkdir -p ${GLPI_LIB}/_lock && \ mkdir -p ${GLPI_LIB}/_log && \ mkdir -p ${GLPI_LIB}/_pictures && \ mkdir -p ${GLPI_LIB}/_plugins && \ mkdir -p ${GLPI_LIB}/_rss && \ mkdir -p ${GLPI_LIB}/_sessions && \ mkdir -p ${GLPI_LIB}/_tmp && \ mkdir -p ${GLPI_LIB}/_uploads && \ mkdir -p ${HTTPD_HTML} && \ mkdir -p ${HTTPD_CGI} && \ mkdir -p ${HTTPD_FCGI} && \ mkdir -p ${GLPI_ETC} && \ chown -R apache: ${GLPI_LIB} && \ chown -R apache: ${GLPI_LOG} && \ chown -R apache: ${GLPI_ETC} && \ echo "America/Sao_Paulo" > /etc/timezone && \ cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime && \ rm -rf /var/cache/apk/*
COPY .docker/glpi10.tar.bz2 /tmp COPY .docker/glpi.crt ${GLPI_SSL}/apache2 COPY .docker/glpi.csr ${GLPI_SSL}/apache2 COPY .docker/glpi.key ${GLPI_SSL}/private COPY .docker/config_db.php ${GLPI_ETC} COPY .docker/glpicrypt.key ${GLPI_ETC} COPY .docker/httpd.conf ${HTTPD_HOME} COPY .docker/status.conf ${HTTPD_HOME}/conf.d COPY .docker/glpi.vhost.conf ${HTTPD_HOME}/conf.d COPY .docker/.bashrc /root COPY .docker/.bash_profile /root COPY .docker/.my.cnf /root COPY .docker/glpi-start.sh /opt
RUN cd ${HTTPD_HTML} && \ tar xjvf /tmp/glpi10.tar.bz2 && \ rm -f /tmp/glpi10.tar.bz2 && \ chown -R apache: ${GLPI_HOME} && \ chmod 000 ${GLPI_HOME}/install && \ chmod +x /opt/glpi-start.sh
COPY .docker/favicon.ico ${GLPI_HOME}/pics COPY .docker/.htaccess.install ${GLPI_HOME}/install/ COPY .docker/local_define.php ${GLPI_HOME}/config
# Enable modules RUN sed -i 's/\;(session.cookie_secure =)/\1 on/g' ${PHP_INI} && \ sed -i 's/(session.cookie_httponly =)/\1 on/g' ${PHP_INI} && \ sed -i 's/^(ServerTokens) OS/\1 Prod/g' ${HTTPD_CONF} && \ sed -i '221 a ServerName localhost:80' ${HTTPD_CONF} && \ sed -i 's/(ServerSignature) On/\1 Off/g' ${HTTPD_CONF} && \ sed -i 's/(Require host) .example.com/\1 .localdomain/g' ${HTTPD_HOME}/conf.d/info.conf && \ sed -i '138 a inet_interfaces = all' ${GLPI_POSTFIX} && \ sed -i '186 a mydestination = \$myhostname, localhost.\$mydomain, localhost' ${GLPI_POSTFIX} && \ sed -i '412 a alias_maps = hash:/etc/aliases' ${GLPI_POSTFIX} && \ sed -i '422 a alias_database = hash:/etc/aliases' ${GLPI_POSTFIX} && \ sed -i 's,#(LoadModule access_compat_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule alias_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule allowmethods_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule auth_basic_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule auth_digest_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authn_anon_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authn_core_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authn_dbd_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authn_dbm_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authn_file_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authn_socache_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_core_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_dbd_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_dbm_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_groupfile_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_host_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_owner_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule authz_user_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule autoindex_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule cache_disk_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule cache_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule cache_socache_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule data_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule dbd_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule deflate_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule dir_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule dumpio_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule echo_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule env_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule expires_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule ext_filter_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule filter_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule headers_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule include_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule info_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule log_config_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule logio_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule macro_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule mime_magic_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule mime_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule remoteip_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule reqtimeout_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule request_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule rewrite_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule setenvif_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule slotmem_plain_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule socache_dbm_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule socache_memcache_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule status_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule substitute_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule suexec_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule unique_id_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule unixd_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule userdir_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule version_module),\1,g' ${HTTPD_CONF} && \ sed -i 's,#(LoadModule vhost_alias_module),\1,g' ${HTTPD_CONF}
ENTRYPOINT [ "/opt/glpi-start.sh" ]
EXPOSE 80 443
BEGIN: glpi (docker-compose.yaml)
version: "3"
services: glpi: image: glpi container_name: glpi hostname: glpi restart: "no" ports:
volumes: data_glpi_etc: external: true data_glpi_log: external: true data_glpi_lib: external: true data_glpi_apache2: external: true data_glpi_postfix: external: true
networks: default: name: hammers external: true