You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just updated to 1.13.0 and now when I try to save an XLS file that I just imported, I get this error:
TypeError : Argument 4 passed to PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet::writeAttributeIf() must be of the type string, null given, called in C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php on line 1164
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:453
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:1164
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:1040
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:67
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx.php:267
C:\inetpub\Intranet_Local\library\Intranet\PhpOffice\XlsxWriter.php:20
C:\inetpub\Intranet_Local\phpunit\library\Intranet\PHPExcelTest.php:52
I am not making any changes to the file, just import, then save:
This problem is the same as #1238, which was resolved by #1239.
For that issue, the fix was to check in one place whether
$this->mapCellXfIndex[$xfIndex] was set before using it.
The sample spreadsheet supplied as a description for this
problem had exactly the same problem in 2 other places in the code.
In addition, there were 7 other places in the code where that
particular item was used unchecked. This fix corrects all 9 locations.
The spreadsheet supplied with the problem is used as the basis
for some new tests, which particularly test column dimensions
and styles, the problems involved in this case.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.
I just updated to 1.13.0 and now when I try to save an XLS file that I just imported, I get this error:
TypeError : Argument 4 passed to PhpOffice\PhpSpreadsheet\Writer\Xlsx\Worksheet::writeAttributeIf() must be of the type string, null given, called in C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php on line 1164
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:453
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:1164
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:1040
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx\Worksheet.php:67
C:\inetpub\Intranet_Local\vendor\phpoffice\phpspreadsheet\src\PhpSpreadsheet\Writer\Xlsx.php:267
C:\inetpub\Intranet_Local\library\Intranet\PhpOffice\XlsxWriter.php:20
C:\inetpub\Intranet_Local\phpunit\library\Intranet\PHPExcelTest.php:52
I am not making any changes to the file, just import, then save:
Here is the file that I am importing:
https://drive.google.com/file/d/1xrbe_knlKBeqAMpmNGKUYFMatP_UPteX/view?usp=sharing
The text was updated successfully, but these errors were encountered: