pluginsGLPI / timelineticket

Plugin timelineticket for GLPI
https://github.com/pluginsGLPI/timelineticket
GNU Affero General Public License v3.0
20 stars 13 forks source link

[BUG] PHP Deprecated function GLPI v10.0.7 + Timelineticket v10.0+1.1 #32

Closed SI-AURAL closed 8 months ago

SI-AURAL commented 1 year ago

Bonjour,

En mode debug, le plugin "timelineticket" affiche l'erreur suivante : "PHP Deprecated function (8192): Function utf8_encode() is deprecated in /glpi/glpi_web/marketplace/timelineticket/vendor/szymach/c-pchart/constants.php at line 50"

Impact : Message d'erreur lors de la sélection des entités : Load error! (SyntaxError: Unexpected token '<', " Ne se produit plus lorsque le plugin est désactivé.

Dans les DevTools de Chrome : image

Semble également poser problème si les plugins "Meta-Demandes" et "My Dashboard" sont présents car un fois les 2 plugins désactivés, plus d'erreur lié au fichier "/glpi/glpi_web/js/fuzzysearch.js" de GLPI :

PHP Deprecated function (8192): Function utf8_encode() is deprecated in /glpi/glpi_web/marketplace/timelineticket/vendor/szymach/c-pchart/constants.php at line 50
var root_md_doc = "/marketplace/mydashboard";
PHP Deprecated function (8192): Function utf8_encode() is deprecated in /glpi/glpi_web/marketplace/timelineticket/vendor/szymach/c-pchart/constants.php at line 50
var root_mt_doc = "/marketplace/metademands"; Infos Système:
Informations sur le système, l'installation et la configuration
GLPI 10.0.7 ( => /glpi/glpi_web/)
Installation mode: TARBALL
Current language:fr_FR

Server
 
Operating system: Linux 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64
PHP 8.2.5 fpm-fcgi (Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apcu, bz2, calendar, cgi-fcgi, ctype, curl,
    date, dom, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imagick, imap, intl, json, ldap, libxml, mbstring,
    memcache, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, pspell, random, readline, session, shmop, snmp, soap,
    sockets, sodium, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip,
    zlib)
Setup: max_execution_time="600" memory_limit="128M" post_max_size="100M" safe_mode="" session.save_handler="files"
    upload_max_filesize="100M" 
Software: Apache/2.4.56 (Debian) (Apache/2.4.56 (Debian) Server Port 443
)
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Server Software: Debian 11
    Server Version: 10.5.18-MariaDB-0+deb11u1-log
    Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
    Parameters: glpi_prod@localhost/glpi_prod
    Host info: Localhost via UNIX socket

PHP version (8.2.5) 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 (10.5.18) is supported.
No files from previous GLPI version detected.
The log file has been created successfully.
Write access to /glpi/glpi_conf/files/_cache has been validated.
Write access to /glpi/glpi_conf/config/ has been validated.
Write access to /glpi/glpi_conf/files/_cron has been validated.
Write access to /glpi/glpi_conf/files/_docs has been validated.
Write access to /glpi/glpi_conf/files/_dumps has been validated.
Write access to /glpi/glpi_conf/files/_graphs has been validated.
Write access to /glpi/glpi_conf/files/_lock has been validated.
Write access to /glpi/glpi_conf/files/_pictures has been validated.
Write access to /glpi/glpi_conf/files/_plugins has been validated.
Write access to /glpi/glpi_conf/files/_rss has been validated.
Write access to /glpi/glpi_conf/files/_sessions has been validated.
Write access to /glpi/glpi_conf/files/_tmp has been validated.
Write access to /glpi/glpi_conf/files/_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 /glpi/glpi_web/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
 
GLPI_ROOT: "/glpi_web"
GLPI_CONFIG_DIR: "/glpi/glpi_conf/config/"
GLPI_VAR_DIR: "/glpi/glpi_conf/files"
GLPI_DOC_DIR: "/glpi/glpi_conf/files/_docs"
GLPI_CRON_DIR: "/glpi/glpi_conf/files/_cron"
GLPI_DUMP_DIR: "/glpi/glpi_conf/files/_dumps"
GLPI_GRAPH_DIR: "/glpi/glpi_conf/files/_graphs"
GLPI_LOCK_DIR: "/glpi/glpi_conf/files/_lock"
GLPI_PICTURE_DIR: "/glpi/glpi_conf/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "/glpi/glpi_conf/files/_plugins"
GLPI_RSS_DIR: "/glpi/glpi_conf/files/_rss"
GLPI_SESSION_DIR: "/glpi/glpi_conf/files/_sessions"
GLPI_TMP_DIR: "/glpi/glpi_conf/files/_tmp"
GLPI_UPLOAD_DIR: "/glpi/glpi_conf/files/_uploads"
GLPI_CACHE_DIR: "/glpi/glpi_conf/files/_cache"
GLPI_LOG_DIR: "/var/log/glpi"
GLPI_MARKETPLACE_DIR: "/glpi/glpi_conf/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: false
GLPI_SERVERSIDE_URL_ALLOWLIST: ["/^(https?|feed):\\/\\/[^@:]+(\\/.*)?$/"]
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: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
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_LOCAL_I18N_DIR: "/glpi/glpi_conf/files/_locales"
GLPI_INVENTORY_DIR: "/glpi/glpi_conf/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: "/glpi/glpi_web/locales"
GLPI_VERSION: "10.0.7"
GLPI_SCHEMA_VERSION: "10.0.7"
GLPI_MARKETPLACE_PRERELEASES: false
GLPI_MIN_PHP: "7.4.0"
GLPI_MAX_PHP: "8.3.0"
GLPI_YEAR: "2023"

Libraries
 
htmlawed/htmlawed version 1.2.9 in (/glpi/glpi_web/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.8.0 in (/glpi/glpi_web/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.8 in (/glpi/glpi_web/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.6.2 in (/glpi/glpi_web/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/glpi/glpi_web/vendor/michelf/php-markdown/Michelf)
true/punycode in (/glpi/glpi_web/vendor/true/punycode/src)
iamcal/lib_autolink in (/glpi/glpi_web/vendor/iamcal/lib_autolink)
sabre/dav in (/glpi/glpi_web/vendor/sabre/dav/lib/DAV)
sabre/http in (/glpi/glpi_web/vendor/sabre/http/lib)
sabre/uri in (/glpi/glpi_web/vendor/sabre/uri/lib)
sabre/vobject in (/glpi/glpi_web/vendor/sabre/vobject/lib)
laminas/laminas-i18n in (/glpi/glpi_web/vendor/laminas/laminas-i18n/src)
laminas/laminas-servicemanager in (/glpi/glpi_web/vendor/laminas/laminas-servicemanager/src)
monolog/monolog in (/glpi/glpi_web/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/glpi/glpi_web/vendor/sebastian/diff/src)
donatj/phpuseragentparser in (/glpi/glpi_web/vendor/donatj/phpuseragentparser/src/UserAgent)
elvanto/litemoji in (/glpi/glpi_web/vendor/elvanto/litemoji/src)
symfony/console in (/glpi/glpi_web/vendor/symfony/console)
scssphp/scssphp in (/glpi/glpi_web/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/glpi/glpi_web/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/glpi/glpi_web/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/glpi/glpi_web/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/glpi/glpi_web/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/glpi/glpi_web/vendor/ramsey/uuid/src)
psr/log in (/glpi/glpi_web/vendor/psr/log/Psr/Log)
psr/simple-cache in (/glpi/glpi_web/vendor/psr/simple-cache/src)
psr/cache in (/glpi/glpi_web/vendor/psr/cache/src)
league/csv in (/glpi/glpi_web/vendor/league/csv/src)
mexitek/phpcolors in (/glpi/glpi_web/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/glpi/glpi_web/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/glpi/glpi_web/vendor/guzzlehttp/psr7/src)
glpi-project/inventory_format in (/glpi/glpi_web/vendor/glpi-project/inventory_format/lib/php)
wapmorgan/unified-archive in (/glpi/glpi_web/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/glpi/glpi_web/vendor/paragonie/sodium_compat/src)
symfony/cache in (/glpi/glpi_web/vendor/symfony/cache)
html2text/html2text in (/glpi/glpi_web/vendor/html2text/html2text/src)
symfony/css-selector in (/glpi/glpi_web/vendor/symfony/css-selector)
symfony/dom-crawler in (/glpi/glpi_web/vendor/symfony/dom-crawler)
twig/twig in (/glpi/glpi_web/vendor/twig/twig/src)
twig/string-extra in (/glpi/glpi_web/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 (/glpi/glpi_web/vendor/symfony/polyfill-php82)
league/oauth2-client in (/glpi/glpi_web/vendor/league/oauth2-client/src/Provider)
league/oauth2-google in (/glpi/glpi_web/vendor/league/oauth2-google/src/Provider)
thenetworg/oauth2-azure in (/glpi/glpi_web/vendor/thenetworg/oauth2-azure/src/Provider)
phpCas version 1.3.8 in (/usr/share/php/CAS/source)

LDAP directories
 
Server: 'ldap://XXX', Port: '389', BaseDN: 'XXX', Connection filter:
        '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', RootDN:
        'XXX, Use TLS: none

SQL replicas
 
Not active

Notifications
 
Way of sending emails: SMTP+TLS (anonymous@XXX)

Plugins list
 
    advancedplanning     Name: advancedplanning               Version: 1.1.0      State: Enabled                                 
        Install Method: Marketplace
    news                 Name: Alertes                        Version: 1.10.6     State: Enabled                                 
        Install Method: Marketplace
    screenshot           Name: Capture d'écran                Version: 2.0.2      State: Enabled                                 
        Install Method: Marketplace
    fields               Name: Champs supplémentaires         Version: 1.20.4     State: Enabled                                 
        Install Method: Marketplace
    timelineticket       Name: Chronologie des tickets        Version: 10.0+1.1   State: Enabled                                 
        Install Method: Marketplace
    behaviors            Name: Comportements                  Version: 2.7.2      State: Enabled                                 
        Install Method: Marketplace
    uninstall            Name: Cycle de vie des matériels (un Version: 2.8.1      State: Enabled                                 
        Install Method: Marketplace
    mydashboard          Name: Dashboard                      Version: 2.1.4      State: Enabled                                 
        Install Method: Marketplace
    datainjection        Name: Data Injection                 Version: 2.13.0     State: Enabled                                 
        Install Method: Marketplace
    purchaserequest      Name: Demande d'achat                Version: 3.0.1      State: Enabled                                 
        Install Method: Marketplace
    consumables          Name: Demande de consommables        Version: 2.0.0      State: Enabled                                 
        Install Method: Marketplace
    archimap             Name: Diagrammes                     Version: 3.2.20     State: Enabled                                 
        Install Method: Marketplace
    dataflows            Name: Flux de données                Version: 3.0.1      State: Enabled                                 
        Install Method: Marketplace
    formcreator          Name: Form Creator                   Version: 2.13.5     State: Enabled                                 
        Install Method: Marketplace
    gantt                Name: gantt                          Version: 1.0.3      State: Enabled                                 
        Install Method: Marketplace
    genericobject        Name: Gestion d'objets               Version: 2.14.2     State: Enabled                                 
        Install Method: Marketplace
    order                Name: Gestion des commandes          Version: 2.10.3     State: Enabled                                 
        Install Method: Marketplace
    manufacturersimports Name: Imports fabricants             Version: 3.0.5      State: Enabled                                 
        Install Method: Marketplace
    tasklists            Name: Liste des tâches               Version: 2.0.3      State: Enabled                                 
        Install Method: Marketplace
    metademands          Name: Meta-Demandes                  Version: 3.2.19     State: Enabled                                 
        Install Method: Marketplace
    releases             Name: Mises en production            Version: 2.0.3      State: Enabled                                 
        Install Method: Marketplace
    moreticket           Name: More ticket                    Version: 1.7.1      State: Enabled                                 
        Install Method: Marketplace
    mreporting           Name: Plus de rapports               Version: 1.8.2      State: Enabled                                 
        Install Method: Marketplace
    satisfaction         Name: Plus de satisfaction           Version: 1.6.1      State: Enabled                                 
        Install Method: Marketplace
    statecheck           Name: Régles de vérification d'état  Version: 2.3.9      State: Enabled                                
         Install Method: Marketplace
    archisw              Name: Structures d'Applications      Version: 3.0.3      State: Enabled                                 
        Install Method: Marketplace

Manel-vtlab commented 9 months ago

This can be solved with this reference: https://github.com/pluginsGLPI/timelineticket/issues/31

tsmr commented 8 months ago

Fixed in last version