Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLPI 9.5.5 - Cannot upload files with PHP8 #9024

Closed
moodyblue opened this issue Apr 30, 2021 · 1 comment
Closed

GLPI 9.5.5 - Cannot upload files with PHP8 #9024

moodyblue opened this issue Apr 30, 2021 · 1 comment

Comments

@moodyblue
Copy link

moodyblue commented Apr 30, 2021

Describe the bug

When I go to Management -> Documents it's possible to add / update documents. But if I try to upload a PDF (or another file) into an existing document I get a Firefox error "The connection was reset". This only occurs with PHP8, the same GLPI instance runs ok with PHP7

Page(s) URL

http://192.168.130.210:4488/GLPI80/front/document.form.php

To reproduce

Steps to reproduce the behavior:

  1. Go to 'Management -> Documents'
  2. Click on '+'
  3. Fill the form, attaching a file
  4. Click '+ Add'

Result: No document is created. A "Communication Reset" message is received (Firefox)

Expected behavior

A document should have been created with attachments.

Logs
PHP8

[Tue Apr 27 18:42:35.694685 2021] [core:notice] [pid 24605:tid 139954649249600] AH00052: child pid 24728 exit signal Segmentation fault (11)
[Tue Apr 27 18:42:35.694817 2021] [core:notice] [pid 24605:tid 139954649249600] AH00052: child pid 28228 exit signal Segmentation fault (11)

Screenshots

If applicable, add screenshots to help explain your problem.

Your GLPI setup (you can find it in Setup > General menu, System tab)

GLPI 9.5.5 (/GLPI80 => /share/CACHEDEV1_DATA/.qpkg/GLPI80/www) Installation mode: TARBALL

Operating system: Linux TS-253A 4.14.24-qnap #1 SMP Wed Apr 28 08:47:57 CST 2021 x86_64 PHP 8.0.5 apache2handler (Core, OAuth, PDO, PDO_ODBC, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, 	bcmath, bitset, bz2, calendar, ctype, curl, date, dba, dom, enchant, ev, event, exif, fileinfo, filter, ftp, gd, gettext, gmp, 	grpc, hash, iconv, igbinary, imagick, inotify, intl, json, krb5, ldap, libxml, lzf, mailparse, mbstring, mcrypt, memcached, 	mongodb, msgpack, mysqli, mysqlnd, openssl, pcre, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, posix, pspell, raphf, 	redis, session, shmop, snmp, soap, sockets, sodium, solr, sqlite3, standard, swoole, tidy, timezonedb, tokenizer, 	uploadprogress, xattr, xhprof, xml, xmlreader, xmlrpc, xmlwriter, xsl, yaml, 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.46 (Unix) OpenSSL/1.1.1k SVN/1.15.0-dev PHP/8.0.5 () 	Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0 Server Software: MariaDB Server 	Server Version: 10.5.9-MariaDB 	Server SQL Mode:  	Parameters: root@127.0.0.1:3308/glpi 	Host info: 127.0.0.1 via TCP/IP 	 PHP version is at least 7.2.0 - Perfect! Sessions support is available - Perfect! Allocated memory > 64 Mio - Perfect! mysqli extension is installed ctype extension is installed fileinfo extension is installed json extension is installed mbstring extension is installed iconv extension is installed zlib extension is installed curl extension is installed gd extension is installed simplexml extension is installed intl extension is installed ldap extension is installed apcu extension is installed Zend OPcache extension is installed xmlrpc extension is installed CAS extension is not present exif extension is installed zip extension is installed bz2 extension is installed sodium extension is installed Database version seems correct (10.5.9) - Perfect! Timezones seems not loaded, see https://glpi-install.readthedocs.io/en/latest/timezones.html. The log file has been created successfully. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_cache has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/config has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_cron has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_dumps has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_graphs has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_lock has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_pictures has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_plugins has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_rss has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_sessions has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_tmp has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_uploads has been validated. Write access to /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/marketplace has been validated. Web access to the files directory should not be allowed Check the .htaccess file and the web server configuration.

GLPI_ROOT: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www GLPI_CONFIG_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/config GLPI_VAR_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files GLPI_MARKETPLACE_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/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:  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_PRERELEASES:  GLPI_MARKETPLACE_ALLOW_OVERRIDE: 1 GLPI_MARKETPLACE_MANUAL_DOWNLOADS: 1 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: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files GLPI_CACHE_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_cache GLPI_CRON_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_cron GLPI_DUMP_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_dumps GLPI_GRAPH_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_graphs GLPI_LOCAL_I18N_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_locales GLPI_LOCK_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_lock GLPI_LOG_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_log GLPI_PICTURE_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_pictures GLPI_PLUGIN_DOC_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_plugins GLPI_RSS_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_rss GLPI_SESSION_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_sessions GLPI_TMP_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_tmp GLPI_UPLOAD_DIR: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/files/_uploads 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: /share/CACHEDEV1_DATA/.qpkg/GLPI80/www/locales GLPI_VERSION: 9.5.5 GLPI_SCHEMA_VERSION: 9.5.5 GLPI_MIN_PHP: 7.2.0 GLPI_YEAR: 2021

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

Not active

Way of sending emails: PHP

 

accounts             Name: Accounts                       Version: 2.6.0      State: Enabled 	fields               Name: Additionnal fields             Version: 1.12.4     State: Enabled 	archimap             Name: Diagrams                       Version: 3.0.2      State: Enabled 	fusioninventory      Name: FusionInventory                Version: 9.5+3.0    State: Enabled 	addressing           Name: IP Adressing                   Version: 2.9.0      State: Enabled 	mreporting           Name: More Reporting                 Version: 1.7.2      State: Enabled 	genericobject        Name: Objects management             Version: 2.10.1     State: Enabled 	treeview             Name: Tree view                      Version: 1.9.0      State: Enabled

Additional context

Add any other context about the problem here.

@trasher
Copy link
Contributor

trasher commented May 3, 2021

What you have here are segmentation faults; this looks like a broken php extension or similar rather than a glpi issue. Also, I do not reproduce on a 8.0.5 PHP.

@trasher trasher closed this as completed May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants