#97659Import/Export Uppon Import Preview: ERROR: One of the inputs were not an array!
Description
After I Import any kind of data and hit the preview button I always get an error in the result column:
ERROR: One of the inputs were not an array!
The Import seems to work without issue however
Reviews 1
Related issues 1
Files 3
History 11
-
Sebastian Gärtner commented <span data-processor="relativetime" data-value="2022-08-29T04:24:53+00:00" > 08/29/22, 04:24 </span>
-
Christian Drost commented <span data-processor="relativetime" data-value="2022-11-23T15:17:26+00:00" > 11/23/22, 15:17 </span>
I get the same error while importing any usergroup.
TYPO3: 11.5.19
PHP: 8.1 -
Steffi B commented and changed attached error.JPG <span data-processor="relativetime" data-value="2022-11-28T15:53:37+00:00" > 11/28/22, 15:53 </span>
Export form 7.6 with different settings, tried to import in 11.5
ERROR: One of the inputs were not an array! -
Tobias Schmidt commented <span data-processor="relativetime" data-value="2022-12-02T16:37:42+00:00" > 12/02/22, 16:37 </span>
I’m trying to import data from TYPO3 9.5 to 11.5 and I see the same error message in preview window. The actual import doesn’t work and stops with the following error message:
503 Oops, an error occurred! Argument 1 passed to TYPO3\CMS\Impexp\Import::getReferenceDefaultValue() must be of the type array, null given, called in [...]/sysext/impexp/Classes/Import.php on line 1042
-
Loek Hilgersom commented <span data-processor="relativetime" data-value="2023-05-15T13:55:47+00:00" > 05/15/23, 13:55 </span>
The ‘ERROR: One of the inputs were not an array!’ occurs when you attempt to import something – both preview and real import – and you have:
- Update records = false
- Do not show differences in records = false
The import module then tries to show differences, but there are no differences to be shown since your import will create new records. The error disappears when you check ‘Do not show differences in records’. It looks like you can ignore this error (although it is definately confusing).
-
Benni Mack commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2023-07-06T18:12:21+00:00" > 07/06/23, 18:12 </span>I cannot reproduce the issue. Can you tell me what kind of things are you exporting? Or maybe have an example t3d file?
-
Christian Welzel commented and changed attached T3D_tree_PID2416_L0_2023-10-26_15-09.t3d <span data-processor="relativetime" data-value="2023-10-26T13:14:11+00:00" > 10/26/23, 13:14 </span>
Same Error here.
Export on 8.7.17, import on 11.5.30/PHP 7.4.20.
Example file is attached.
-
Christian Welzel commented <span data-processor="relativetime" data-value="2023-10-26T13:31:01+00:00" > 10/26/23, 13:31 </span>
Note: The exported page does not exist yet in the new installation.
In this case $databaseRecord is null and the error message gets triggered.
-
Benni Mack changed status
Needs FeedbackNew <span data-processor="relativetime" data-value="2023-10-31T13:17:24+00:00" > 10/31/23, 13:17 </span> -
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2026-10-23T15:25:17+00:00" > 10/23/26, 15:25 </span>I checked this on current main (15.0-dev) and the error does not occur anymore.
As analysed in the comments above, the message came from the preview diff: with “Update records” off and “Do not show differences in records” off, the database record is
nullfor records that are about to be created, and the diff view then printed “ERROR: One of the inputs were not an array!”.This was fixed as a side effect of #101256 (https://review.typo3.org/c/Packages/TYPO3.CMS/+/78880, “Allow import module to also access distributions”, main and 12.4):
ImportExport::addRecord()now checks for$databaseRecord === nullfirst and renders an empty diff, since there is nothing to compare. The error text is only left for the case that the import data itself is not an array.I exported a page to a T3D file, opened the Import module with the default options (update off, differences shown) and ran the preview. The record is listed without any error in the result column.
I could not test the exact file from #note-8 (exported from 8.7), so this is verified with a T3D created on main only. The fix is not part of 11.5 as far as I can see.
If this is still valid for you in v14, please open a new issue and provide information how to reproduce it. Thanks!
-
Georg Ringer changed Related to #101256 <span data-processor="relativetime" data-value="2026-10-23T15:25:32+00:00" > 10/23/26, 15:25 </span>
Lina Wolf wrote:
> After I Import any kind of data and hit the preview button I always get an error in the result column:
>
> […]
>
> The Import seems to work without issue however
I have the same issue.