Task #52593

Epic #55070: Workpackages

Epic #54542: WP: Importer / Exporter with relations MM/IRRE/FAL

Story #55521: As an User I want to create exports in v. 4.x and import them in v. 6.2

Impexp: make 4.x exports work as import in 6.x

Added by Marc Bastian Heinrichs over 8 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Category:
Import/Export (T3D)
Target version:
Start date:
2013-10-07
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

Exports from version 4.x are not compatible with FAL.
On importing such an export in version 6.x the images needs
to be moved and added to sys_file.

  • related images from uploads/ (e.g. tt_content:images and pages:media) are moved to fileadmin/_import/.
  • linked files are moved to the original folder structure below fileadmin/_import/.
  • (!!!) Files from fields of old type group file should NOT be moved

Files

pagetest.xml (10.5 KB) pagetest.xml filigivuji filigivuji, 2014-04-04 20:09

Related issues

Related to TYPO3 Core - Bug #46679: impexp: Import in v6 fails with fal-errorClosed2013-03-26

Actions
Related to TYPO3 Core - Task #55530: Avoid to find a file object with uid 0ClosedMarc Bastian Heinrichs2014-01-31

Actions
Related to TYPO3 Core - Task #57006: SoftReferenceIndex typolink[linkList] missing support separation by line feedClosedMarc Bastian Heinrichs2014-03-17

Actions
Has duplicate TYPO3 Core - Bug #53275: Import of 4.* t3d exports to 6.* typo3: files do not workClosed2013-11-01

Actions
#1

Updated by Gerrit Code Review over 8 years ago

  • Status changed from New to Under Review

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22939

#2

Updated by Gerrit Code Review over 8 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22939

#3

Updated by Sten _ over 8 years ago

hi Marc, your patch works only partially

importing failed...

error: #1321023156: uid property is already set. Cannot merge index record. (More information)

Trace is here: http://pastebin.com/z27m8qDR

#4

Updated by Sten _ over 8 years ago

Well, it seems that the problem is with records that have files associated with them.

#5

Updated by Sten _ over 8 years ago

connecting it with this patch: http://forge.typo3.org/issues/52972 brings no error, but completely broken image paths

#6

Updated by Ernesto Baschny over 8 years ago

  • Parent task set to #54542
#7

Updated by Marc Bastian Heinrichs over 8 years ago

  • Parent task changed from #54542 to #55521
#8

Updated by Marc Bastian Heinrichs over 8 years ago

  • % Done changed from 0 to 30
#9

Updated by Marc Bastian Heinrichs over 8 years ago

  • Status changed from Under Review to Accepted
#10

Updated by Marc Bastian Heinrichs over 8 years ago

  • Category changed from File Abstraction Layer (FAL) to Import/Export (T3D)
#11

Updated by Gerrit Code Review over 8 years ago

  • Status changed from Accepted to Under Review

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/22939

#12

Updated by Gerrit Code Review over 8 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/22939

#13

Updated by Gerrit Code Review over 8 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/22939

#14

Updated by Gerrit Code Review over 8 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/22939

#15

Updated by filigivuji filigivuji over 8 years ago

Is this patch not yet finished or did I miss something?
I applied patch set 8 but still get the "uid of fileusage (sys_file_reference) has to be numeric" when importing a 4.5 project.

#16

Updated by Marc Bastian Heinrichs over 8 years ago

Hey,
to have a correct export in 4.x you need to add also patches to
these versions ATM:
for 4.5:

And if this also don't fix your problem, could you provide some small export in xml format, that I could test this?

#17

Updated by filigivuji filigivuji over 8 years ago

Thanks for your help.
I applied those two patches, same error message as before ("uid of fileusage (sys_file_reference) has to be numeric").
Tested on fresh installations of 4.5 and 6.2 with all three patches applied (for the 6.2 patch, I omitted the test files and only patched ImportExport.php).
Attached the export as XML.

#18

Updated by Gerrit Code Review about 8 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/22939

#19

Updated by Marc Bastian Heinrichs about 8 years ago

Check the updated patchset. There was indeed a bug, when the folder "_imported" was already created.

#20

Updated by filigivuji filigivuji about 8 years ago

Works now, thanks.

#21

Updated by Marc Bastian Heinrichs about 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 30 to 100
#22

Updated by Anja Leichsenring over 6 years ago

  • Sprint Focus set to On Location Sprint
#23

Updated by Mathias Schreiber about 6 years ago

  • Sprint Focus deleted (On Location Sprint)
#24

Updated by Riccardo De Contardi over 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF