-
|
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($excelFilePath); error in my WP site: Fatal error: Out of memory (allocated 398458880) (tried to allocate 4096 bytes) in /home/xxxx/public_html/wp-content/plugins/cbxphpspreadsheet/lib/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Cells.php on line 363 My RAM : 6GB |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Without seeing your spreadsheet, we can't be sure. However, some things which might help are setting your reader to ignore empty cells, ignore rows with no cells, and, if you are not interested in the cell styles, loading data only. $reader->setReadEmptyCells(false);
$reader->setIgnoreRowsWithNoCells(true);
$reader->setReadDataOnly(true); |
Beta Was this translation helpful? Give feedback.
Without seeing your spreadsheet, we can't be sure. However, some things which might help are setting your reader to ignore empty cells, ignore rows with no cells, and, if you are not interested in the cell styles, loading data only.