Skip to content

GLPI 11 file import unexpected error #523

@pavko

Description

@pavko

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

GLPI Version

GLPI 11.0.0

Plugin version

2.15.0

Bug description

After creating a model, when trying to import the CSV file I get an unexpected error.

Relevant log output

An exception has been thrown during the rendering of a template ("The file "/tmp/phpBdBjuO" does not exist") in "error_page.html.twig" at line 42.
In ./templates/error_page.html.twig(42)
#0 ./vendor/twig/twig/src/Template.php(358): Twig\Template->yield()
#1 ./vendor/twig/twig/src/Template.php(373): Twig\Template->display()
#2 ./vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render()
#3 ./src/Glpi/Application/View/TemplateRenderer.php(170): Twig\TemplateWrapper->render()
#4 ./src/Glpi/Controller/AbstractController.php(68): Glpi\Application\View\TemplateRenderer->render()
#5 ./src/Glpi/Controller/ErrorController.php(177): Glpi\Controller\AbstractController->render()
#6 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\ErrorController->__invoke()
#7 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#8 ./vendor/symfony/http-kernel/EventListener/ErrorListener.php(117): Symfony\Component\HttpKernel\HttpKernel->handle()
#9 ./vendor/symfony/event-dispatcher/EventDispatcher.php(260): Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
#10 ./vendor/symfony/event-dispatcher/EventDispatcher.php(220): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
#11 ./vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#12 ./vendor/symfony/http-kernel/HttpKernel.php(239): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#13 ./vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#14 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#15 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle()
#16 {main}

Previous: The file "/tmp/phpBdBjuO" does not exist
In ./vendor/symfony/http-foundation/File/File.php(36)
#0 ./vendor/symfony/http-foundation/File/UploadedFile.php(70): Symfony\Component\HttpFoundation\File\File->__construct()
#1 ./vendor/symfony/http-foundation/FileBag.php(84): Symfony\Component\HttpFoundation\File\UploadedFile->__construct()
#2 ./vendor/symfony/http-foundation/FileBag.php(52): Symfony\Component\HttpFoundation\FileBag->convertFileInformation()
#3 ./vendor/symfony/http-foundation/FileBag.php(61): Symfony\Component\HttpFoundation\FileBag->set()
#4 ./vendor/symfony/http-foundation/FileBag.php(40): Symfony\Component\HttpFoundation\FileBag->add()
#5 ./vendor/symfony/http-foundation/FileBag.php(31): Symfony\Component\HttpFoundation\FileBag->replace()
#6 ./vendor/symfony/http-foundation/Request.php(283): Symfony\Component\HttpFoundation\FileBag->__construct()
#7 ./vendor/symfony/http-foundation/Request.php(259): Symfony\Component\HttpFoundation\Request->initialize()
#8 ./vendor/symfony/http-foundation/Request.php(2000): Symfony\Component\HttpFoundation\Request->__construct()
#9 ./vendor/symfony/http-foundation/Request.php(305): Symfony\Component\HttpFoundation\Request::createRequestFromFactory()
#10 ./src/Html.php(1747): Symfony\Component\HttpFoundation\Request::createFromGlobals()
#11 [internal function]: Html::footer()
#12 ./src/Glpi/Application/View/Extension/PhpExtension.php(93): call_user_func_array()
#13 ./files/_cache/11.0.0-f682f73d-production/templates/d9/d9ffa0036f57f04d434431c453121511.php(60): Glpi\Application\View\Extension\PhpExtension->call()
#14 ./vendor/twig/twig/src/Template.php(402): __TwigTemplate_ec14ef9d68d4d0e5ab4b040055052418->doDisplay()
#15 ./vendor/twig/twig/src/Template.php(358): Twig\Template->yield()
#16 ./vendor/twig/twig/src/Template.php(373): Twig\Template->display()
#17 ./vendor/twig/twig/src/TemplateWrapper.php(51): Twig\Template->render()
#18 ./src/Glpi/Application/View/TemplateRenderer.php(170): Twig\TemplateWrapper->render()
#19 ./src/Glpi/Controller/AbstractController.php(68): Glpi\Application\View\TemplateRenderer->render()
#20 ./src/Glpi/Controller/ErrorController.php(177): Glpi\Controller\AbstractController->render()
#21 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\ErrorController->__invoke()
#22 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#23 ./vendor/symfony/http-kernel/EventListener/ErrorListener.php(117): Symfony\Component\HttpKernel\HttpKernel->handle()
#24 ./vendor/symfony/event-dispatcher/EventDispatcher.php(260): Symfony\Component\HttpKernel\EventListener\ErrorListener->onKernelException()
#25 ./vendor/symfony/event-dispatcher/EventDispatcher.php(220): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
#26 ./vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#27 ./vendor/symfony/http-kernel/HttpKernel.php(239): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#28 ./vendor/symfony/http-kernel/HttpKernel.php(91): Symfony\Component\HttpKernel\HttpKernel->handleThrowable()
#29 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#30 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle()
#31 {main}

Previous: Class PluginDatainjectionBackendcsv is not a valid class
In ./plugins/datainjection/inc/backend.class.php(84)
#0 ./plugins/datainjection/inc/model.class.php(990): PluginDatainjectionBackend::getInstance()
#1 ./plugins/datainjection/inc/model.class.php(1047): PluginDatainjectionModel->readUploadedFile()
#2 ./plugins/datainjection/front/model.form.php(76): PluginDatainjectionModel->processUploadedFile()
#3 ./src/Glpi/Controller/LegacyFileLoadController.php(64): require('...')
#4 ./vendor/symfony/http-kernel/HttpKernel.php(181): Glpi\Controller\LegacyFileLoadController->__invoke()
#5 ./vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#6 ./vendor/symfony/http-kernel/Kernel.php(197): Symfony\Component\HttpKernel\HttpKernel->handle()
#7 ./public/index.php(70): Symfony\Component\HttpKernel\Kernel->handle()
#8 {main}

Page URL

No response

Steps To reproduce

No response

Your GLPI setup information

GLPI information
GLPI: 11.0.0 ( => /var/www/html/glpi)
Installation mode: TARBALL
Current language: en_US
Server
Operating system: Linux glpi 6.8.0-85-generic #​85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64

PHP: 8.3.6 apache2handler

PHP extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium,
apache2handler, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext,
iconv, igbinary, imap, intl, ldap, exif, mysqli, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, soap, sockets,
sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache

Setup: disable_functions="" max_execution_time="60" max_input_vars="5000" memory_limit="256M" post_max_size="20M"
session.cookie_secure="0" session.cookie_httponly="1" session.cookie_samesite="" session.save_handler="files"
upload_max_filesize="20M"

Web server: Apache/2.4.58 (Ubuntu) (Apache/2.4.58 (Ubuntu) Server at 192.168.1.213 Port 80)

User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0

Database:

Server Software: Ubuntu 24.04

Server Version: 10.11.13-MariaDB-0ubuntu0.24.04.1

Server SQL Mode: STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Parameters: glpi@localhost/glpi

Host info: Localhost via UNIX socket

Requirements:
PHP version (8.3.6) is supported.
OS and PHP are relying on 64 bits integers.
Sessions configuration is OK.
Allocated memory is sufficient.
Following extensions are installed: dom, fileinfo, filter, libxml, simplexml, tokenizer, xmlreader,
xmlwriter.
mysqli extension is installed
curl extension is installed
gd extension is installed
intl extension is installed
mbstring extension is installed
zlib extension is installed
bcmath extension is installed
The constant
SODIUM_CRYPTO_AEAD_XCHACHA20POLY1305_IETF_NPUBBYTES is present.
openssl extension is installed
Database engine version (10.11.13) is
supported.
The log file has been created successfully.
Write access to /var/www/html/glpi/files/_cache has been validated.
Write access to /var/www/html/glpi/files/_cron has been validated.
Write access to /var/www/html/glpi/files has been validated.
Write access to /var/www/html/glpi/files/_graphs has been validated.
Write access to /var/www/html/glpi/files/_lock has been validated.
Write access to /var/www/html/glpi/files/_pictures has been validated.
Write access to /var/www/html/glpi/files/_plugins has been validated.
Write access to /var/www/html/glpi/files/_rss has been validated.
Write access to /var/www/html/glpi/files/_sessions has been validated.
Write access to /var/www/html/glpi/files/_tmp has been validated.
Write access to /var/www/html/glpi/files/_uploads has been validated.

Sessions configuration is secured.
exif extension is installed
ldap extension is installed
Following extensions are installed: bz2,
Phar, zip.
Zend OPcache extension is installed
Following extensions are installed:
ctype, iconv, sodium.
Write access to
/var/www/html/glpi/marketplace has been validated.
Timezones seems loaded in database.

GLPI constants
GLPI_ROOT: "/var/www/html/glpi"
GLPI_VERSION: "11.0.0"
GLPI_SCHEMA_VERSION: "11.0.0@ea2dbba0e1edbf5128d73bdb23c2c9b9f68468ba"
GLPI_FILES_VERSION: "11.0.0-f682f73d"
GLPI_MIN_PHP: "8.2"
GLPI_MAX_PHP: "8.5"
GLPI_YEAR: "2025"
GLPI_I18N_DIR: "/var/www/html/glpi/locales"
GLPI_ENVIRONMENT_TYPE: "production"
GLPI_CONFIG_DIR: "/var/www/html/glpi/config"
GLPI_VAR_DIR: "/var/www/html/glpi/files"
GLPI_MARKETPLACE_DIR: "/var/www/html/glpi/marketplace"
GLPI_ALLOW_IFRAME_IN_RICH_TEXT: false
GLPI_SERVERSIDE_URL_ALLOWLIST: ["^\n (http|https|feed)://
# protocol\n (\n (?:\n
(?:xn--[a-z0-9-]++\.)*+xn--[a-z0-9-]++ # a domain name using punycode\n
|\n (?:[\pL\pN\pS\pM\-\]++\.)+[\pL\pN\pM]++ # a multi-level domain
name\n |\n [a-z0-9\-\
]++
# a single-level domain name\n )\.?\n |
# or\n \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}
# an IP address\n | #
or\n \[\n
(?:(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){6})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:::(?:(?:(?:[0-9a-f]{1,4})):){5})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:[0-9a-f]{1,4})))?::(?:(?:(?:[0-9a-f]{1,4})):){4})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,1}(?:(?:[0-9a-f]{1,4})))?::(?:(?:(?:[0-9a-f]{1,4})):){3})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,2}(?:(?:[0-9a-f]{1,4})))?::(?:(?:(?:[0-9a-f]{1,4})):){2})(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,3}(?:(?:[0-9a-f]{1,4})))?::(?:(?:[0-9a-f]{1,4})):)(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,4}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:(?:(?:(?:[0-9a-f]{1,4})):(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9]))\.){3}(?:(?:25[0-5]|(?:[1-9]|1[0-9]|2[0-4])?[0-9])))))))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,5}(?:(?:[0-9a-f]{1,4})))?::)(?:(?:[0-9a-f]{1,4})))|(?:(?:(?:(?:(?:(?:[0-9a-f]{1,4})):){0,6}(?:(?:[0-9a-f]{1,4})))?::))))\n
\] # an IPv6 address\n
)\n (?:/ (?:[\pL\pN\pS\pM\-._\
!$&'()+,;=:@]|%[0-9A-Fa-f]{2}) )* # a path\n
(?:\? (?:[\pL\pN\-._\~!$&'\\+,;=:@/?]|%[0-9A-Fa-f]{2}) )? # a query (optional)\n
$~ixuD"]
GLPI_DISALLOWED_UPLOADS_PATTERN: "/\.(php\d*|phar)$/i"
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_ENABLE: 3
GLPI_MARKETPLACE_PRERELEASES: false
GLPI_MARKETPLACE_ALLOW_OVERRIDE: true
GLPI_MARKETPLACE_MANUAL_DOWNLOADS: true
GLPI_USER_AGENT_EXTRA_COMMENTS: ""
GLPI_DOCUMENTATION_ROOT_URL: "https://links.glpi-project.org"
GLPI_DISABLE_ONLY_FULL_GROUP_BY_SQL_MODE: "1"
GLPI_LOG_LVL: "warning"
GLPI_SKIP_UPDATES: false
GLPI_STRICT_ENV: false
GLPI_AJAX_DASHBOARD: "1"
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_CENTRAL_WARNINGS: "1"
GLPI_SYSTEM_CRON: false
GLPI_TEXT_MAXSIZE: "4000"
GLPI_WEBHOOK_ALLOW_RESPONSE_SAVING: "0"
GLPI_WEBHOOK_CRA_MANDATORY: false
GLPI_ALTCHA_MODE: "interactive"
GLPI_ALTCHA_MAX_NUMBER: 50000
GLPI_ALTCHA_EXPIRATION_INTERVAL: "PT20M"
GLPI_DOC_DIR: "/var/www/html/glpi/files"
GLPI_CACHE_DIR: "/var/www/html/glpi/files/_cache"
GLPI_CRON_DIR: "/var/www/html/glpi/files/_cron"
GLPI_GRAPH_DIR: "/var/www/html/glpi/files/_graphs"
GLPI_LOCAL_I18N_DIR: "/var/www/html/glpi/files/_locales"
GLPI_LOCK_DIR: "/var/www/html/glpi/files/_lock"
GLPI_LOG_DIR: "/var/www/html/glpi/files/_log"
GLPI_PICTURE_DIR: "/var/www/html/glpi/files/_pictures"
GLPI_PLUGIN_DOC_DIR: "/var/www/html/glpi/files/_plugins"
GLPI_RSS_DIR: "/var/www/html/glpi/files/_rss"
GLPI_SESSION_DIR: "/var/www/html/glpi/files/_sessions"
GLPI_TMP_DIR: "/var/www/html/glpi/files/_tmp"
GLPI_UPLOAD_DIR: "/var/www/html/glpi/files/_uploads"
GLPI_INVENTORY_DIR: "/var/www/html/glpi/files/_inventories"
GLPI_THEMES_DIR: "/var/www/html/glpi/files/_themes"
GLPI_PLUGINS_DIRECTORIES: ["/var/www/html/glpi/marketplace","/var/www/html/glpi/plugins"]
GLPI_NETWORK_REGISTRATION_API_URL: "https://services.glpi-network.com/api/registration/"
GLPI_MARKETPLACE_PLUGINS_API_URI: "https://services.glpi-network.com/api/marketplace/"
SQL Replicas
Not active
Notifications
Way of sending emails: PHP
Plugins list
fields               Name: Additional fields              Version: 1.22.0     State: Installed / Not Activated
Install Method: Marketplace
news Name: Alerts Version: 1.13.0 State: Installed / Not Activated
Install Method: Marketplace
positions Name: Cartography Version: 7.0.1 State: Installed / Not Activated
Install Method: Marketplace
datainjection Name: Data injection Version: 2.15.0 State: Enabled
Install Method: Manual
manageentities Name: Entities portal Version: 4.1.1 State: Installed / Not Activated
Install Method: Marketplace
archifun Name: Functional Areas Version: 2.3.1 State: Enabled
Install Method: Marketplace
gantt Name: gantt Version: 1.2.0 State: Installed / Not Activated
Install Method: Marketplace
glpiinventory Name: GLPI Inventory Version: 1.6.0 State: Enabled
Install Method: Marketplace
resources Name: Human Resources Version: 4.0.1 State: Installed / Not Activated
Install Method: Marketplace
geninventorynumber Name: Inventory number generation Version: 2.9.0 State: Enabled
Install Method: Marketplace
addressing Name: IP Addressing Version: 3.1.0 State: Installed / Not Activated
Install Method: Marketplace
uninstall Name: Item's Lifecycle (uninstall) Version: 2.10.0 State: Installed / Not Activated
Install Method: Marketplace
knowledgeautonumber Name: Knowledge AutoNumber Version: 1.0.19 State: Not Installed
Install Method: Marketplace
mreporting Name: More Reporting Version: 1.9.0 State: Installed / Not Activated
Install Method: Marketplace
satisfaction Name: More satisfaction Version: 1.7.0 State: Installed / Not Activated
Install Method: Marketplace
moreticket Name: More ticket Version: 1.8.0 State: Installed / Not Activated
Install Method: Marketplace
mydashboard Name: My Dashboard Version: 2.2.2 State: Installed / Not Activated
Install Method: Marketplace
oauthimap Name: OAuth IMAP Version: 1.5.0 State: Installed / Not Activated
Install Method: Marketplace
ocsinventoryng Name: OCS Inventory NG Version: 2.1.1 State: Installed / Not Activated
Install Method: Marketplace
order Name: Orders management Version: 2.12.0 State: Installed / Not Activated
Install Method: Marketplace
pdf Name: Print to pdf Version: 4.1.0 State: Installed / Not Activated
Install Method: Marketplace
purchaserequest Name: Purchase request Version: 3.1.1 State: Installed / Not Activated
Install Method: Marketplace
sccm Name: SCCM Version: 2.5.0 State: Not Installed
Install Method: Marketplace
manufacturersimports Name: Suppliers imports Version: 3.1.1 State: Installed / Not Activated
Install Method: Marketplace
tag Name: Tag Management Version: 2.13.0 State: Installed / Not Activated
Install Method: Marketplace
tasklists Name: Tasks list Version: 2.1.1 State: Installed / Not Activated
Install Method: Marketplace
useditemsexport Name: Used items export Version: 2.6.0 State: Installed / Not Activated
Install Method: Marketplace
vip Name: VIP Version: 1.9.1 State: Installed / Not Activated
Install Method: Marketplace
wikit Name: Wikit Version: 2.0.0 State: Installed / Not Activated
Install Method: Marketplace

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions