TYPO3 t3d Import/Export

Springe zu...

Tips

Keep the export as slim as possible

Before you export the contents as t3d file, it may be useful to physically remove the deleted contents from the database. This might reduce errors on importing the file. Else deleted contents are also exported and imported again.

DELETE FROM pages WHERE deleted=1;
DELETE FROM tt_content WHERE deleted=1;
DELETE FROM sys_file_reference WHERE deleted=1;

Errors

#1317178794: No file reference (sys_file_reference) was found for given UID

Solution: If this error message occures on import, see tip above „Keep the export as slim as possible“.

If this doesn’t help, modify the TYPO3 sources:

typo3/sysext/core/Classes/Resource/ResourceFactory.php

612
613
614
615
616
617
618
619
620
621
622
623
624
if (empty($fileReferenceData)) {
    $fileReferenceData = $this->getFileReferenceData($uid, $raw);
    if (!is_array($fileReferenceData)) {
+       // Get default image for missing file references; replace UID 1 with an existing UID from table "sys_file_reference"
+       $fileReferenceData = $this->getFileReferenceData(1);
+       if (!is_array($fileReferenceData)) {
            throw new Exception\ResourceDoesNotExistException(
                'No file reference (sys_file_reference) was found for given UID: "' . $uid . '"',
                1317178794
            );
+       }
    }
}

 

Autor:
Geändert: Montag, 16. Oktober 2017 12:04 Uhr
Erstellt: Donnerstag, 12. Oktober 2017 10:29 Uhr
Tags: , , , ,
Themengebiet: Web Entwicklung, TYPO3

Trackback: Trackback-URL LoadingZu Favoriten hinzufügen

Kommentar abgeben