Actions
Bug #36706
closedUpgrade wizard FAL fails with undefined function
Start date:
2012-04-29
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In step 2 of the Upgrade wizard for FAL (migrate file relations) the script fails with the fatal error:
( ! ) Fatal error: Call to undefined function mime_content_type() in D:\webserver\xampp\htdocs\typo3_src\t3lib\file\Driver\LocalDriver.php on line 497Call Stack
- Time Memory Function Location
1 0.0011 364512 {main}( ) ..\index.php:0
2 0.0027 529664 require( 'D:\TYPO3\TYPO3 Core Git\typo3\init.php' ) ..\index.php:147
3 0.2405 8552848 tx_install->init( ) ..\init.php:346
4 0.2828 8559672 tx_install->updateWizard( ) ..\class.tx_install.php:495
5 0.9067 9139120 tx_install->updateWizard_parts( ) ..\class.tx_install.php:6401
6 0.9153 9722504 Tx_Install_Updates_File_TceformsUpdateWizard->performUpdate( ) ..\class.tx_install.php:6643
7 1.6472 11885112 Tx_Install_Updates_File_TceformsUpdateWizard->migrateField( ) ..\TceformsUpdateWizard.php:157
8 1.6732 11886848 t3lib_file_Storage->getFile( ) ..\TceformsUpdateWizard.php:218
9 1.6732 11886848 t3lib_file_Driver_AbstractDriver->getFile( ) ..\Storage.php:863
10 1.6737 11886952 t3lib_file_Driver_LocalDriver->getFileInfoByIdentifier( ) ..\AbstractDriver.php:409
11 1.6738 11887120 t3lib_file_Driver_LocalDriver->extractFileInformation( ) ..\LocalDriver.php:252
OS: Windows Vista
PHP 5.3
XAMPP for Windows
Updated by Jigal van Hemert over 12 years ago
There are two issues:
- this function is according to the PHP documentation part of the fileinfo PHP extension, which is not a required extension in TYPO3 (it must be added to the list of required extensions)
- this function is deprecated; I'm not sure if we should introduce code which uses deprecated functions. Fileinfo also includes the function finfo_file() or finfo::file() to detect mime_info.
Updated by Gerrit Code Review over 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10914
Updated by Gerrit Code Review over 12 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10914
Updated by Jigal van Hemert over 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset fb05a17410e46641142e4237566b52577e277da1.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed
Actions