Project

General

Profile

Actions

Bug #60473

closed

impexp: fread Exception in Development Mode

Added by Silvia Bigler over 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Import/Export (T3D)
Target version:
-
Start date:
2014-07-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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

exception.jpg (340 KB) exception.jpg Exception Screenshot Silvia Bigler, 2014-07-22 21:17

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #60540: Fatal Error when importing a TYPO3 4.5 exported t3d file into a TYPO3 6.2 installationClosed2014-07-24

Actions
Actions #1

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.

Actions #2

Updated by Markus Klein over 10 years ago

One more note: You should really update to 6.2.4 ASAP (it fixes ~150 bugs)

Actions #3

Updated by Michael Oehlhof over 9 years ago

This item is already fixed with #60540 and can be closed.

Actions #4

Updated by Markus Klein over 9 years ago

  • Status changed from Accepted to Closed
  • Assignee deleted (Marc Bastian Heinrichs)
  • Target version deleted (next-patchlevel)
Actions #5

Updated by Anja Leichsenring almost 9 years ago

  • Sprint Focus set to On Location Sprint
Actions #6

Updated by Mathias Schreiber over 8 years ago

  • Sprint Focus deleted (On Location Sprint)
Actions

Also available in: Atom PDF