Project

General

Profile

Actions

Bug #56427

closed

FAL driver configuration: No configured flexform results in error

Added by Rico Sonntag over 10 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2014-02-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The FAL driver configuration allows an optional flexform to be specified.

/typo3/sysext/core/Classes/Resource/Driver/DriverRegistry.php

public function registerDriverClass($className, $shortName = NULL, $label = NULL, $flexFormDataStructurePathAndFilename = NULL) {
    ...
}

The configuration screen displays the error Data Structure ERROR: Line 1: Invalid document end if no flexform is given, if the driver need none.

ext_localconf.php

/* @var \TYPO3\CMS\Core\Resource\Driver\DriverRegistry $registry */
$registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
    'TYPO3\CMS\Core\Resource\Driver\DriverRegistry'
);

$registry->registerDriverClass(
    'DriverClass',
    'Shortname',  
    'Label'       
);
Actions

Also available in: Atom PDF