Issue Bug Closed

#69223dumpFileContents does not work when ['FE']['compressionLevel'] > 0

Torben Hansen 08/21/15, 08:23 updated 03/14/20, 16:30

Description

When [‘FE’][‘compressionLevel’] > 0, dumpFileContents does not output any file, but throws the following exception:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1: PHP Warning: Cannot modify header information - headers already sent in /path/to/typo3_src/6.2/typo3_src-6.2.14/typo3/sysext/frontend/Classes/Utility/CompressionUtility.php

How to reproduce:

1. Set [‘FE’][‘compressionLevel’] = 5
2. Dump a file from FAL like shown below

$storage = $this->resourceFactory->getDefaultStorage();
$file = $storage->getFile('test.jpg');
$storage->dumpFileContents($file, TRUE, 'test-filename.jpg');

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.