Bug #60473
closedimpexp: fread Exception in Development Mode
0%
Description
I get this exception when i select a file and click preview in the t3d import module:
PHP Warning: fread() [<a href='function.fread'>function.fread</a>]: Length parameter must be greater than 0 in /pathTyTypo3/typo3_src-6.2.3/typo3/sysext/impexp/Classes/ImportExport.php line 3017
This exception only occurs in Development Mode. In Production Mode, all is fine.
The error occurs with a simple (only a text element) .t3d file exported from Typo3 4.5.0
Files
Updated by Markus Klein over 10 years ago
- Status changed from New to Accepted
- Assignee set to Marc Bastian Heinrichs
- Target version set to next-patchlevel
- Complexity set to easy
Hi René!
Thanks for your report. In development mode all PHP warnings are reported as exceptions to the user as this is usually a hint for a programming mistake or even a bug. This is not the case for production mode, hence you do not see this error, but it will still be logged somewhere.
In this case, it simply does not make sense to call fread() with a length of zero and this needs to be fixed.
Updated by Markus Klein over 10 years ago
One more note: You should really update to 6.2.4 ASAP (it fixes ~150 bugs)
Updated by Michael Oehlhof over 9 years ago
This item is already fixed with #60540 and can be closed.
Updated by Markus Klein over 9 years ago
- Status changed from Accepted to Closed
- Assignee deleted (
Marc Bastian Heinrichs) - Target version deleted (
next-patchlevel)
Updated by Anja Leichsenring almost 9 years ago
- Sprint Focus set to On Location Sprint
Updated by Mathias Schreiber over 8 years ago
- Sprint Focus deleted (
On Location Sprint)