Impossible to access the plugin page plugin.php
Kbl34 opened this issue · comments
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
Version
9.5.6
Bug description
Hello,
Since update to 9.5.6 :
I cannot access the Plugins page: glpi/front/plugin.php -> http error 500
And the directory /var/www/html/glpi/plugins is empty.
I would like to install the OCS-ng plugin, but the page is not available.
How can I fix it ?
Regards,
Rayan
Relevant log output
No response
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
Operating system: Linux GLPY-OCS 4.9.0-16-amd64 #1 SMP Debian 4.9.272-2 (2021-07-19) x86_64
PHP 7.2.34-25+0~20210923.65+debian9~1.gbpa3cd00 fpm-fcgi (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apcu, bz2,
calendar, cgi-fcgi, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml,
mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, sockets, sodium, standard, sysvmsg,
sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, 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/2.4.25 (Debian) (Apache/2.4.25 (Debian) Server at helpdesk.gly.local Port 443)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36
Server Software: Debian 9.13
Server Version: 10.1.48-MariaDB-0+deb9u2
Server SQL Mode:
Parameters: glpibdd@localhost/glpi
Host info: Localhost via UNIX socket
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!
Allocated memory > 64 Mio - Perfect!Allocated memory > 64 Mio - 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 installedxmlrpc extension is installed
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.1.48) - Perfect!Database version seems correct (10.1.48) - Perfect!
The log file could not be created in /usr/share/glpi/files/_log.The log file could not be created in /usr/share/glpi/files/_log.
Write access to /usr/share/glpi/files/_cache has been validated.Write access to /usr/share/glpi/files/_cache has been validated.
Write access to /usr/share/glpi/config has been validated.Write access to /usr/share/glpi/config has been validated.
Write access to /usr/share/glpi/files/_cron has been validated.Write access to /usr/share/glpi/files/_cron has been validated.
Write access to /usr/share/glpi/files has been validated.Write access to /usr/share/glpi/files has been validated.
Write access to /usr/share/glpi/files/_dumps has been validated.Write access to /usr/share/glpi/files/_dumps has been validated.
Write access to /usr/share/glpi/files/_graphs has been validated.Write access to /usr/share/glpi/files/_graphs has been validated.
Write access to /usr/share/glpi/files/_lock has been validated.Write access to /usr/share/glpi/files/_lock has been validated.
Write access to /usr/share/glpi/files/_pictures has been validated.Write access to /usr/share/glpi/files/_pictures has been validated.
Write access to /usr/share/glpi/files/_plugins has been validated.Write access to /usr/share/glpi/files/_plugins has been validated.
Write access to /usr/share/glpi/files/_rss has been validated.Write access to /usr/share/glpi/files/_rss has been validated.
Write access to /usr/share/glpi/files/_sessions has been validated.Write access to /usr/share/glpi/files/_sessions has been validated.
Write access to /usr/share/glpi/files/_tmp has been validated.Write access to /usr/share/glpi/files/_tmp has been validated.
Write access to /usr/share/glpi/files/_uploads has been validated.Write access to /usr/share/glpi/files/_uploads has been validated.
Anything else?
No response
Hi,
We need logs to investigate on 500 erros.
Please copy and paste any relevant log output. Find them in *-error.log files under glpi/files/_log/.
Regards
I have this on php-errors.log :
[2021-10-22 16:24:48] glpiphplog.WARNING: *** PHP Warning (2): readdir() expects parameter 1 to be resource, boolean given in /usr/share/glpi/inc/plugin.class.php at line 419
Backtrace :
inc/plugin.class.php:419 readdir()
front/plugin.php:40 Plugin->checkStates()
Hi,
How is configured your GLPI? It seems that application is hosted under /usr/share/glpi, but you talk about /var/www/html/glpi/plugins ... Related to marketplace?
There is nos specific configuration.
The both : /usr/share/glpi and /var/www/html/glpi are present … but it causes problem ?
And I did not activate the marketplace.
Everything works perfectly, except the Plugin page
Do you have a folder /usr/share/glpi/plugins ?
Do you have a folder /usr/share/glpi/plugins ?
Yes I have the folder /usr/share/glpi/plugins
What is the output of "ls -la /usr/share/glpi/plugins"?
drwx--x--x 2 root www-data 4096 oct. 22 12:38 .
drwxrwxr-x 22 root www-data 4096 oct. 22 12:38 ..
Hmmm, no idea why you have this , but you must change at least group read permissions to this folder...
chmod g+r /usr/share/glpi/plugins
(evnetually o+r also...)
It works ! thank you very much. :)