[TYPO3-mvc] problem by changing extension for 6.0.0
Johannes C. Schulz - EnzephaloN IT-Solutions
info at enzephalon.de
Mon Jan 28 13:22:12 CET 2013
Dear list-members
Today I tried to patcht wo of my older extbase-extensions to work on 6.0.0.
But sadly I see errors and don't know why.
The first appears if I install the extension with extension-manager:
Catchable Fatal Error: Argument 2 passed to
TYPO3\CMS\Extensionmanager\Domain\Repository\ConfigurationItemRepository::cr
eateArrayFromConstants() must be an array, null given, called in
/home/www/typo3_src/typo3_src-6.0.0/typo3/sysext/extensionmanager/Classes/Ut
ility/ConfigurationUtility.php on line 95 and defined in
/home/www/typo3_src/typo3_src-6.0.0/typo3/sysext/extensionmanager/Classes/Do
main/Repository/ConfigurationItemRepository.php line 192
The second appears in frontend:
The default controller for extension "Enzteaserlist" and plugin "Pi1" can
not be determined. Please check for
TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin() in your
ext_localconf.php.
ext_localconf.php:
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
$_EXTKEY,
'Pi1',
array(
'Teaseritem' => 'shortlistitems,
fulllistitems, showitem', 'showitemcol',
),
array(
)
);
?>
ext_tables.php:
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'Pi1',
'Teaser Liste'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY,
'Configuration/TypoScript', 'Enzteaserlist');
$extensionName = t3lib_div::underscoredToUpperCamelCase($_EXTKEY);
$pluginSignature = strtolower($extensionName) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$plug
inSignature] = 'layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSi
gnature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($plug
inSignature,
'FILE:EXT:'.$_EXTKEY.'/Configuration/FlexForms/flexform_enzteaserplugin.xml'
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_
enzteaserlist_domain_model_teaseritem',
'EXT:enzteaserlist/Resources/Private/Language/locallang_csh_tx_enzteaserlist
_domain_model_teaseritem.xml');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPage
s('tx_enzteaserlist_domain_model_teaseritem');
$TCA['tx_enzteaserlist_domain_model_teaseritem'] = array(
'ctrl' => array(
'title'
=>
'LLL:EXT:enzteaserlist/Resources/Private/Language/locallang_db.xml:tx_enztea
serlist_domain_model_teaseritem',
'label'
=> 'title',
'tstamp'
=> 'tstamp',
'crdate'
=> 'crdate',
'versioningWS'
=> 2,
'versioning_followPages' => TRUE,
'origUid'
=> 't3_origuid',
'languageField'
=> 'sys_language_uid',
'transOrigPointerField'
=> 'l18n_parent',
'transOrigDiffSourceField' =>
'l18n_diffsource',
'dividers2tabs'
=> true,
'delete'
=> 'deleted',
'enablecolumns'
=> array(
'disabled'
=> 'hidden',
'starttime' => 'starttime',
'endtime' => 'endtime',
),
'dynamicConfigFile'
=> t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Teaseritem.php',
'iconfile'
=> t3lib_extMgm::extRelPath($_EXTKEY) .
'Resources/Public/Icons/tx_enzteaserlist_domain_model_teaseritem.gif'
)
);
?>
Can you write me, where the failure and how the fix is?
Thanks a lot.
Johannes
More information about the TYPO3-project-typo3v4mvc
mailing list