Bug #16274
closedImport of T3D leads to Warning: Length parameter must be greater than 0
0%
Description
I am just importing a T3D file 20 MByte with class.tx_impexp.php 1.13.2.4
Warning: fread() [function.fread]: Length parameter must be greater than 0 in /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php on line 2271Call Stack
- Function Location
1 {main}() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:0
2 SC_mod_tools_log_index->main() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:1707
3 SC_mod_tools_log_index->importData() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:345
4 tx_impexp->loadFile() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:1243
5 tx_impexp->getNextFilePart() /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php:2238
6 fread () /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php:2271
The following debug info describes that this comes from the line 2271.
Due to some error the variable $initStrDat contains an error string and no data.
Debug Info gives.
[debug] in /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php on line 2269
user variable debug
> Variable scope report
Array (3)
$initStrDat
String (45) 0 <br />
<b>Warning</b>
String (16) 1 array_unique()
String (7) 2 The ar
[debug] in /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php on line 2269
user variable debug
> Variable scope report
Array (1)
$initStrDat
String (52) 0 ument should be an array in <b>/home/kunden/we
(3) prev | next
[2006-06-23 12:26:24]
[debug] in /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php on line 2269
user variable debug
==> Variable scope report
Array (1)
$initStrDat
String (46) 0 s/kevin-tarte/typo3/cms/typo3_src-4.0/t3lib/cl
(issue imported from #M3725)
Files
Updated by Franz Holzinger over 18 years ago
The reason for this error is that the export of the T3D has failed without any notification.
The T3D has 20 MByte and begins with several lines like this:
<b>Warning</b>: array_unique(): The argument should be an array in <b>/home/kunden/webs/kevin-tarte/typo3/cms/typo3_src-4.0/t3lib/class.t3lib_flexformtools.php</b> on line <b>150</b><br />
<br />
Updated by Franz Holzinger over 18 years ago
The last patch IMHO is the correct one: class.tx_impexp-3.diff
Updated by Franz Holzinger over 18 years ago
Another error still happens, when I import the same from the TYPO3 3.8:
Fatal error: Cannot use string offset as an array in /var/www/html/TYPO3core/t3lib/class.t3lib_flexformtools.php on line 145Call Stack
- Function Location
1 {main}() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:0
2 SC_mod_tools_log_index->main() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:1707
3 SC_mod_tools_log_index->importData() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:345
4 tx_impexp->importData() /var/www/html/TYPO3core/typo3/sysext/impexp/app/index.php:1267
5 tx_impexp->setFlexFormRelations() /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php:1175
6 t3lib_TCEmain->process_datamap() /var/www/html/TYPO3core/typo3/sysext/impexp/class.tx_impexp.php:1702
7 t3lib_TCEmain->updateDB() /var/www/html/TYPO3core/t3lib/class.t3lib_tcemain.php:788
8 t3lib_TCEmain->updateRefIndex() /var/www/html/TYPO3core/t3lib/class.t3lib_tcemain.php:4345
9 t3lib_refindex->updateRefIndexTable() /var/www/html/TYPO3core/t3lib/class.t3lib_tcemain.php:4537
10 t3lib_refindex->generateRefIndexData() /var/www/html/TYPO3core/t3lib/class.t3lib_refindex.php:126
11 t3lib_refindex->getRelations() /var/www/html/TYPO3core/t3lib/class.t3lib_refindex.php:185
12 t3lib_flexformtools->traverseFlexFormXMLData() /var/www/html/TYPO3core/t3lib/class.t3lib_refindex.php:419
Debug-Info:
[debug] in /var/www/html/TYPO3core/t3lib/class.t3lib_flexformtools.php on line 132
user variable debug
==> Variable scope report
String (603) $xmlData
<T3FlexForms>
<meta>
</meta>
<data>
<sheet index="sDEF">
<language index="lDEF">
<field index="field_content">
<value index="vDEF">142</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
[debug] in /var/www/html/TYPO3core/t3lib/class.t3lib_flexformtools.php on line 134
user variable debug
> Variable scope report
Array (2)
$editData
String (11) meta
Array (1) data
Array (1) sDEF
Array (1) lDEF
Array (1) field_content Array not debugged. Set higher "level" if you want to debug this.
(113) prev | next
[2006-06-23 16:29:36]
[debug] in /var/www/html/TYPO3core/t3lib/class.t3lib_flexformtools.php on line 144
user variable debug
> Variable scope report
String (5) $editData['meta'] A
The $editData['meta'] is a string with the value 'A'. So this does not work here.