[TYPO3-dev] Fatal Error: This module "" is not enabled in TBE_MODULES
Helmut Hummel
helmut.hummel at typo3.org
Wed Oct 29 12:05:36 CET 2014
Hi Alex,
On 29.10.14 10:48, Alex Tuveri wrote:
> first thank you for your post. I do not know *exactly* howto do and unfortunately it seems that there is some doc about mod1 referret to previous versions (4.5 etc.).
> I'm planning to reuse and rearrange the code for the MVC, DDD, etc. but now I need to adapt it to new t3 6.2.x
First of all: to make your extension compatible with TYPO3 6.2.x you do
not need to change the way the module is registered at all, as the
traditional way is still supported.
Nevertheless it makes sense to do so as you get extra security for your
module then.
> mod1/conf.php
>
> <?php
>
> // DO NOT REMOVE OR CHANGE THESE 3 LINES:
> define('TYPO3_MOD_PATH', '../typo3conf/ext/ttnews_feeder/mod1/');
> $BACK_PATH='../../../../typo3/';
actually these two lines *must* be removed when changing a module to
"dispatch mode"
See this change which converts the info module to be dispatched:
https://review.typo3.org/#/c/27508/11/typo3/sysext/func/mod1/conf.php
Additionally you need to remove the requires from your index.php file:
https://review.typo3.org/#/c/27508/11/typo3/sysext/func/mod1/index.php
> ext:_tables.php:
> \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
If your module is not using Extbase, you must remove this registration call.
> \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web','txttnewsfeederM1','',\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY).'mod1/');
This one looks correct.
Be sure to clear the system cache (or typo3temp/Cache/ folder manually)
before testing the changes
Besides that, if you refer to other functionality in your module with
links (or form actions), you also need to adapt these links to be
correct again by using BackendUtility::getModuleUrl like here:
https://review.typo3.org/#/c/27508/11/typo3/sysext/func/Classes/Controller/PageFunctionsController.php,unified
HTH
Kind regards,
Helmut
--
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 CMS Active Contributor, TYPO3 Security Team Member
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-dev
mailing list