Page MenuHomePhabricator

Spreadsheet import does no work / InvalidArgumentException
Open, Needs TriagePublic

Description

Setup

  • MediaWiki 1.35.4 (9e24c44) 08:21, 18. Okt. 2021
  • PHP 7.3.29-1~deb10u1 (apache2handler)
  • MariaDB 10.3.31-MariaDB-0+deb10u1
  • Data Transfer 1.2.1 (138d06f) 16:58, 24. Sep. 2021
  • phpoffice/phpspreadsheet 1.18.0

Issue

When trying to import a spreadsheet file (Excel or Calc) I am consistently getting the following error message:

[b9a401e363fc376318d38743] /whn/Special:ImportSpreadsheet InvalidArgumentException from line 146 of /../w/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/File.php: File "" does not exist. Not sure if it is phpspreadsheet or Data Transfer.

Backtrace

#0 /../w/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php(115): PhpOffice\PhpSpreadsheet\Shared\File::assertFile(NULL)
#1 /../w/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php(84): PhpOffice\PhpSpreadsheet\IOFactory::createReaderForFile(NULL)
#2 /../w/extensions/DataTransfer/includes/specials/DT_ImportSpreadsheet.php(42): PhpOffice\PhpSpreadsheet\IOFactory::load(NULL)
#3 /../w/extensions/DataTransfer/includes/specials/DT_ImportCSV.php(59): DTImportSpreadsheet->importFromFile(ImportStreamSource, NULL, array)
#4 /../w/extensions/DataTransfer/includes/specials/DT_ImportCSV.php(29): DTImportCSV->importFromUploadAndModifyPages()
#5 /../w/includes/specialpage/SpecialPage.php(600): DTImportCSV->execute(NULL)
#6 /../w/includes/specialpage/SpecialPageFactory.php(635): SpecialPage->run(NULL)
#7 /../w/includes/MediaWiki.php(307): MediaWiki\SpecialPage\SpecialPageFactory->executePath(Title, RequestContext)
#8 /../w/includes/MediaWiki.php(940): MediaWiki->performRequest()
#9 /../w/includes/MediaWiki.php(543): MediaWiki->main()
#10 /../w/index.php(53): MediaWiki->run()
#11 /../w/index.php(46): wfIndexMain()
#12 {main}