Bug #36706
Upgrade wizard FAL fails with undefined function
| Status: | Resolved | Start date: | 2012-04-29 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Install Tool | |||
| Target version: | 6.0.0 | |||
| TYPO3 Version: | 6.0 | Complexity: | ||
| PHP Version: | 5.3 | |||
| Votes: | 0 |
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
Associated revisions
[BUGFIX] use fileInfo functions instead of mime_content_type
FAL needs mime type info. Use fileInfo functions here and make
fileinfo PHP extension mandatory.
Change-Id: If6fc39d4b42e0264927ecf6918e7deeb7ef9823c
Fixes: #36706
Releases: 6.0
Reviewed-on: http://review.typo3.org/10914
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
[BUGFIX] use fileInfo functions instead of mime_content_type
FAL needs mime type info. Use fileInfo functions here and make
fileinfo PHP extension mandatory.
Change-Id: If6fc39d4b42e0264927ecf6918e7deeb7ef9823c
Fixes: #36706
Releases: 6.0
Reviewed-on: http://review.typo3.org/10914
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
History
Updated by Jigal van Hemert about 1 year ago
- 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 about 1 year 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 about 1 year 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 about 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset fb05a17410e46641142e4237566b52577e277da1.