You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2021-03-04 14:41:27

VincentP
Member
Registered: 2021-03-04
Posts: 4

Erreur plugin Dashboard

Bonjour à tous,

Après plusieurs jours de recherches sans succès je m'en remet à vous.

Je rencontre des erreurs au niveau du plugin Dashboard pour GLPI qui sembleraient s'apparenter à des problèmes d'accès.

Au niveau de la page d'accueil du Dashboard, sur le dernier widget qui est "Utilisateurs enregistrés" je rencontre l'erreur suivante :

file_get_contents(): Read of 8192 bytes failed with errno=13 Permission denied in D:\XAMPP\htdocs\glpi\plugins\dashboard\front\main.php on line 845.

Voici à quoi correspond la ligne 845 :

 $strings = file_get_contents( $file );

Je rencontre également des erreurs lorsque je tente d'effectuer un rapport des tickets par exemple :

Warning: Trying to access array offset on value of type null in D:\XAMPP\htdocs\glpi\plugins\dashboard\front\reports\rel_tickets.php on line 740

Warning: Trying to access array offset on value of type null in D:\XAMPP\htdocs\glpi\plugins\dashboard\front\reports\rel_tickets.php on line 741

Warning: Trying to access array offset on value of type null in D:\XAMPP\htdocs\glpi\plugins\dashboard\front\reports\rel_tickets.php on line 742

Warning: Trying to access array offset on value of type null in D:\XAMPP\htdocs\glpi\plugins\dashboard\front\reports\rel_tickets.php on line 743

et voici les lignes qui correspondes à ces erreurs :

<td style='vertical-align:middle;'> ". substr($row_user['title'],0,55) ." </td>
			<td style='vertical-align:middle; max-width:550px;'> ". html_entity_decode($row_user['content']) ." </td>
			<td style='vertical-align:middle;'> ". $row_user['name'] ." ".$row_user['sname'] ." </td>
			<td style='vertical-align:middle;'> ". $row_tec['name'] ." ".$row_tec['sname'] ." </td>

Cela semblerait vraiment être un problème d'accès cependant je n'arrive pas à déterminer d'où...
L'utilisateur pour Apache à également tous les droits sur les dossiers en question.

Au niveau de GLPI, aucun problème, ces derniers viennent vraiment du plugin...

J'ai déjà tenter de désinstaller et réinstaller le plugin cependant sans succès.

Merci d'avance si vous pouvez m'éclairer concernant ce problème.

Version du plugin (qui est la dernière en date)
dashboard            Name: Tableau de bord                Version: 1.0.2      State: Enabled


Voici ma configuration :
Windows Server 2019
XAMPP for Windows 8.0.1

Configuration de GLPI :

Operating system: Windows NT SRVW-PZ-GLPI03 10.0 build 17763 (Windows Server 2016) AMD64
PHP 8.0.1 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bcmath, bz2,
    calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml,
    mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, readline, session, sodium, standard, tokenizer, xml, xmlreader,
    xmlwriter, zip, zlib)
Setup: max_execution_time="120" memory_limit="-1" post_max_size="40M" safe_mode="" session.save_handler="files"
    upload_max_filesize="40M"
Software: Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.1 (Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/8.0.1 Server at localhost
    Port 80)
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36
Server Software: mariadb.org binary distribution
    Server Version: 10.4.17-MariaDB
    Server SQL Mode:
    Parameters: root@localhost/glpi
    Host info: localhost via TCP/IP
   
PHP version is at least 7.2.0 - Perfect!PHP version is at least 7.2.0 - Perfect!
Sessions support is available - Perfect!Sessions support is available - Perfect!
Unlimited memory - Perfect!Unlimited memory - Perfect!
mysqli extension is installedmysqli extension is installed
ctype extension is installedctype extension is installed
fileinfo extension is installedfileinfo extension is installed
json extension is installedjson extension is installed
mbstring extension is installedmbstring extension is installed
iconv extension is installediconv extension is installed
zlib extension is installedzlib extension is installed
curl extension is installedcurl extension is installed
gd extension is installedgd extension is installed
simplexml extension is installedsimplexml extension is installed
intl extension is installedintl extension is installed
ldap extension is installedldap extension is installed
apcu extension is installedapcu extension is installed
Zend OPcache extension is installedZend OPcache extension is installed
xmlrpc extension is not presentxmlrpc extension is not present
CAS extension is not presentCAS extension is not present
exif extension is installedexif extension is installed
zip extension is installedzip extension is installed
bz2 extension is installedbz2 extension is installed
sodium extension is installedsodium extension is installed
Database version seems correct (10.4.17) - Perfect!Database version seems correct (10.4.17) - Perfect!
Timezones seems not loaded, see .Timezones seems not loaded, see
The log file has been created successfully.The log file has been created successfully.
Write access to D:\XAMPP\htdocs\glpi/config has been validated.Write access to D:\XAMPP\htdocs\glpi/config has been validated.
Write access to D:\XAMPP\htdocs\glpi/files has been validated.Write access to D:\XAMPP\htdocs\glpi/files has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_dumps has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_dumps has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_sessions has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_sessions has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_cron has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_cron has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_graphs has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_graphs has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_lock has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_lock has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_plugins has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_plugins has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_tmp has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_tmp has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_cache has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_cache has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_rss has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_rss has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_uploads has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_uploads has been validated.
Write access to D:\XAMPP\htdocs\glpi/files/_pictures has been validated.Write access to D:\XAMPP\htdocs\glpi/files/_pictures has been validated.
Write access to D:\XAMPP\htdocs\glpi/marketplace has been validated.Write access to D:\XAMPP\htdocs\glpi/marketplace has been validated.
Web access to files directory is protectedWeb access to files directory is protected

GLPI constants

GLPI_ROOT: D:\XAMPP\htdocs\glpi
GLPI_CONFIG_DIR: D:\XAMPP\htdocs\glpi/config
GLPI_VAR_DIR: D:\XAMPP\htdocs\glpi/files
GLPI_MARKETPLACE_DIR: D:\XAMPP\htdocs\glpi/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_TELEMETRY_URI:
GLPI_INSTALL_MODE: TARBALL
GLPI_NETWORK_MAIL: glpi@teclib.com
GLPI_NETWORK_SERVICES:
GLPI_MARKETPLACE_PRERELEASES:
GLPI_USER_AGENT_EXTRA_COMMENTS:
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_FORCE_EMPTY_SQL_MODE: 1
GLPI_DOC_DIR: D:\XAMPP\htdocs\glpi/files
GLPI_CACHE_DIR: D:\XAMPP\htdocs\glpi/files/_cache
GLPI_CRON_DIR: D:\XAMPP\htdocs\glpi/files/_cron
GLPI_DUMP_DIR: D:\XAMPP\htdocs\glpi/files/_dumps
GLPI_GRAPH_DIR: D:\XAMPP\htdocs\glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: D:\XAMPP\htdocs\glpi/files/_locales
GLPI_LOCK_DIR: D:\XAMPP\htdocs\glpi/files/_lock
GLPI_LOG_DIR: D:\XAMPP\htdocs\glpi/files/_log
GLPI_PICTURE_DIR: D:\XAMPP\htdocs\glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: D:\XAMPP\htdocs\glpi/files/_plugins
GLPI_RSS_DIR: D:\XAMPP\htdocs\glpi/files/_rss
GLPI_SESSION_DIR: D:\XAMPP\htdocs\glpi/files/_sessions
GLPI_TMP_DIR: D:\XAMPP\htdocs\glpi/files/_tmp
GLPI_UPLOAD_DIR: D:\XAMPP\htdocs\glpi/files/_uploads
GLPI_NETWORK_REGISTRATION_API_URL:
GLPI_MARKETPLACE_PLUGINS_API_URI:
GLPI_I18N_DIR: D:\XAMPP\htdocs\glpi/locales
GLPI_VERSION: 9.5.3
GLPI_SCHEMA_VERSION: 9.5.3
GLPI_MIN_PHP: 7.2.0
GLPI_YEAR: 2020

Libraries

htmlawed/htmlawed version 1.2.5 in (D:\XAMPP\htdocs\glpi\vendor\htmlawed\htmlawed)
phpmailer/phpmailer version 6.1.6 in (D:\XAMPP\htdocs\glpi\vendor\phpmailer\phpmailer\src)
simplepie/simplepie version 1.5.6 in (D:\XAMPP\htdocs\glpi\vendor\simplepie\simplepie\library)
tecnickcom/tcpdf version 6.3.5 in (D:\XAMPP\htdocs\glpi\vendor\tecnickcom\tcpdf)
michelf/php-markdown in (D:\XAMPP\htdocs\glpi\vendor\michelf\php-markdown\Michelf)
true/punycode in (D:\XAMPP\htdocs\glpi\vendor\true\punycode\src)
iamcal/lib_autolink in (D:\XAMPP\htdocs\glpi\vendor\iamcal\lib_autolink)
sabre/dav in (D:\XAMPP\htdocs\glpi\vendor\sabre\dav\lib\DAV)
sabre/http in (D:\XAMPP\htdocs\glpi\vendor\sabre\http\lib)
sabre/uri in (D:\XAMPP\htdocs\glpi\vendor\sabre\uri\lib)
sabre/vobject in (D:\XAMPP\htdocs\glpi\vendor\sabre\vobject\lib)
laminas/laminas-cache in (D:\XAMPP\htdocs\glpi\vendor\laminas\laminas-cache\src)
laminas/laminas-i18n in (D:\XAMPP\htdocs\glpi\vendor\laminas\laminas-i18n\src)
laminas/laminas-serializer in (D:\XAMPP\htdocs\glpi\vendor\laminas\laminas-serializer\src)
monolog/monolog in (D:\XAMPP\htdocs\glpi\vendor\monolog\monolog\src\Monolog)
sebastian/diff in (D:\XAMPP\htdocs\glpi\vendor\sebastian\diff\src)
elvanto/litemoji in (D:\XAMPP\htdocs\glpi\vendor\elvanto\litemoji\src)
symfony/console in (D:\XAMPP\htdocs\glpi\vendor\symfony\console)
scssphp/scssphp in (D:\XAMPP\htdocs\glpi\vendor\scssphp\scssphp\src)
laminas/laminas-mail in (D:\XAMPP\htdocs\glpi\vendor\laminas\laminas-mail\src\Protocol)
laminas/laminas-mime in (D:\XAMPP\htdocs\glpi\vendor\laminas\laminas-mime\src)
rlanvin/php-rrule in (D:\XAMPP\htdocs\glpi\vendor\rlanvin\php-rrule\src)
blueimp/jquery-file-upload in (D:\XAMPP\htdocs\glpi\vendor\blueimp\jquery-file-upload\server\php)
ramsey/uuid in (D:\XAMPP\htdocs\glpi\vendor\ramsey\uuid\src)
psr/log in (D:\XAMPP\htdocs\glpi\vendor\psr\log\Psr\Log)
psr/simple-cache in (D:\XAMPP\htdocs\glpi\vendor\psr\simple-cache\src)
mexitek/phpcolors in (D:\XAMPP\htdocs\glpi\vendor\mexitek\phpcolors\src\Mexitek\PHPColors)
guzzlehttp/guzzle in (D:\XAMPP\htdocs\glpi\vendor\guzzlehttp\guzzle\src)
guzzlehttp/psr7 in (D:\XAMPP\htdocs\glpi\vendor\guzzlehttp\psr7\src)
wapmorgan/unified-archive in (D:\XAMPP\htdocs\glpi\vendor\wapmorgan\unified-archive\src)
paragonie/sodium_compat in (D:\XAMPP\htdocs\glpi\vendor\paragonie\sodium_compat\src)

Offline

#2 2021-08-02 14:33:06

Vince.LCIA
Member
Registered: 2014-05-28
Posts: 30

Re: Erreur plugin Dashboard

VincentP wrote:

Bonjour à tous,

Après plusieurs jours de recherches sans succès je m'en remet à vous.

Je rencontre des erreurs au niveau du plugin Dashboard pour GLPI qui sembleraient s'apparenter à des problèmes d'accès.

Au niveau de la page d'accueil du Dashboard, sur le dernier widget qui est "Utilisateurs enregistrés" je rencontre l'erreur suivante :

file_get_contents(): Read of 8192 bytes failed with errno=13 Permission denied in D:\XAMPP\htdocs\glpi\plugins\dashboard\front\main.php on line 845.

Voici à quoi correspond la ligne 845 :

 $strings = file_get_contents( $file );

Bonjour,
Avez-vous trouvé la solution ?

J'ai le même problème avec le plugin dashboard.

Lorsque j'installe le plugin aucune erreur, mais lorsque j'y accède j'ai ça:
210802025229327038.png

Dans les logs GLPI j'ai cette erreur:

[2021-08-02 14:21:59] glpiphplog.NOTICE:   *** PHP Notice (8): file_get_contents(): read of 8192 bytes failed with errno=13 Permission denied in C:\inetpub\wwwroot\Helpdesk\plugins\dashboard\front\main.php at line 845
  Backtrace :
  plugins\dashboard\front\main.php:845               file_get_contents()

Ca parle de permission mais je ne vois pas trop quel peut être le problème.

La ligne 845 du fichier main.php correspond à cela:
210802025229415318.png

Merci pour votre aide.

Last edited by Vince.LCIA (2021-08-02 14:38:44)


Belle journée.
Vincent.
--------
GLPI 9.5.7 et 10 (en test) - IIS webserver / Windows Server 2012 - php 7.4.8

Offline

#3 2021-08-02 15:42:11

VincentP
Member
Registered: 2021-03-04
Posts: 4

Re: Erreur plugin Dashboard

Bonjour,

Non malheureusement je n'ai pas trouvé la solution concernant ce problème.
Depuis nous avons passé notre GLPI sous Linux et depuis nous n'avons plus ce genre de problèmes de compatibilité.

Bon courage et bonne journée
VincentP

Offline

#4 2021-08-10 12:17:43

Vince.LCIA
Member
Registered: 2014-05-28
Posts: 30

Re: Erreur plugin Dashboard

VincentP wrote:

Bonjour,

Non malheureusement je n'ai pas trouvé la solution concernant ce problème.
Depuis nous avons passé notre GLPI sous Linux et depuis nous n'avons plus ce genre de problèmes de compatibilité.

Bon courage et bonne journée
VincentP

Bonjour,
Intéressant, je vais tester de monter un GLPI avec même config mais sous linux pour voir.
Merci.


Belle journée.
Vincent.
--------
GLPI 9.5.7 et 10 (en test) - IIS webserver / Windows Server 2012 - php 7.4.8

Offline

Board footer

Powered by FluxBB