Project

General

Profile

Actions

Bug #42882

closed

FileDoesNotExistException thrown in update

Added by Franz Holzinger about 12 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2012-11-12
Due date:
% Done:

100%

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

Description

The install tool update step 2 or 3 from TYPO3 4.7 to 6.0 ends up in an uncaught exception if an image file is not found. There is no folder "_migrated".

Uncaught TYPO3 Exception

TYPO3\CMS\Core\Resource\Exception\FileDoesNotExistException thrown in file
/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/core/Classes/Resource/Driver/AbstractDriver.php in line 400.

7 TYPO3\CMS\Core\Resource\Driver\AbstractDriver::getFile("_migrated/pics/nattier043_w.jpg")

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/core/Classes/Resource/ResourceStorage.php:

00793: */
00794: public function getFile($identifier) {

00795: return $this->driver->getFile($identifier);

00796: }
00797:

6 TYPO3\CMS\Core\Resource\ResourceStorage::getFile("_migrated/pics/nattier043_w.jpg")

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/install/Classes/Updates/TceformsUpdateWizard.php:

00199: rename($sourcePath, $targetPath);
00200: // get the File object

00201: $file = $this->storage->getFile($fieldConfiguration['targetPath'] . $item);

00202: if ($file instanceof \TYPO3\CMS\Core\Resource\File) {
00203: $fields = array(

5 TYPO3\CMS\Install\Updates\TceformsUpdateWizard::migrateField("tt_content", array, "image", array)

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/install/Classes/Updates/TceformsUpdateWizard.php:

00147: foreach ($records as $record) {
00148: foreach ($fieldsToMigrate as $field) {

00149: $dbQueries = array_merge($this->migrateField($table, $record, $field, $tableConfiguration[$field]));

00150: }
00151: }

4 TYPO3\CMS\Install\Updates\TceformsUpdateWizard::performUpdate(array, "")

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/install/Classes/Installer.php:

05761: $dbQueries = array();
05762: $databaseQueries = array();

05763: if ($tmpObj->performUpdate($dbQueries, $customOutput)) {

05764: $performUpdateMarkers['updateStatus'] = 'Update successful!';
05765: } else {

3 TYPO3\CMS\Install\Installer::updateWizard_parts("performUpdate")

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/install/Classes/Installer.php:

05599: // call wizard
05600: $action = $this->INSTALL['database_type'] ? $this->INSTALL['database_type'] : 'checkForUpdate';

05601: $this->updateWizard_parts($action);

05602: $this->output($this->outputWrapper($this->printAll()));
05603: }

2 TYPO3\CMS\Install\Installer::updateWizard()

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/sysext/install/Classes/Installer.php:

00539: $this->checkDatabase();
00540: $this->silent = 0;

00541: $this->updateWizard();

00542: break;
00543: case 'config':

1 TYPO3\CMS\Install\Installer::init()

/var/www/mydomain/web/typo3_src-6.0.0rc1/typo3/install/index.php:

00080: require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('install') . 'mod/class.tx_install.php';
00081: $install_check = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Install\\Installer', TRUE);

00082: $install_check->init();

00083: ?>


Files

not-migrated.png (52 KB) not-migrated.png Dmitry Dulepov, 2012-12-05 10:54

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #42859: missing extension icons for lots of core extensionsClosed2012-11-12

Actions
Related to TYPO3 Core - Bug #43509: "Migrate all file relations from tt_content.image and pages.media" fails on missing fileClosed2012-12-02

Actions
Actions

Also available in: Atom PDF