[TYPO3-english] [TYPO3 6.2] "No module "" could be found." error resolution for old extensions
Jerome P
portal.j at hotmail.fr
Sat Jul 5 15:59:25 CEST 2014
Hello everyone,
I've recently migrated from TYPO3 4.5 to 6.2, but the aeurltool (even if I don't use it anymore) and gabriel extensions aren't very... cooperative (but AFAIK, this could affect other extensions with a similar function selection menu if they haven't been adapted to new TYPO3 versions).
These extensions have, in their corresponding backend module, a function selection menu on the top-right corner ("404-Error-Handling", "RealUrl-Configuration", ... for aeurltool / "Function #1", "Function #2", "Function #3" for gabriel) ; and when I use this menu to access to one of the other functions of the extension, I get a TYPO3 error page :
>> Oops, an error occurred!
>> No module "" could be found.
>> More information regarding this error might be available online.
("online" is a link to http://wiki.typo3.org/Exception/CMS/1294585070)
And indeed the file /typo3/mod.php (line 59) contains :
>> throw new UnexpectedValueException('No module "' . htmlspecialchars($moduleName) . '" could be found.', 1294585070);
So I searched a little and found that extensions are now handled differently, and need several modifications (cf: http://www.slideshare.net/NicoleCordes/typo3-62-for-extension-developer-36109391). I tried to follow the instructions I found, and here is what I modified (on gabriel extension) :
inside /mod1/conf.php :
=> replacement of line :
>> $MCONF["script"]="index.php";
=> with :
>> $MCONF["script"]="_DISPATCH";
inside /mod1/index.php :
=> removal of the lines :
>> require ($BACK_PATH."init.php");
>> require ($BACK_PATH."template.php");
>> require_once (PATH_t3lib."class.t3lib_scbase.php");
=> replacement of line :
>> $LANG->includeLLFile("EXT:gabriel/mod1/locallang.php");
=> with :
>> $GLOBALS['LANG']->includeLLFile();
But unfortunately it doesn't work, however the error has changed. Unlike previously, I don't even have access to the backend module content anymore (clicking on the extension module only displays a gray page without any content), and the error log says :
>> [Thu Jul 03 16:51:39 2014] [error] [client 194.254.11.181] PHP Fatal error: Call to a member function includeLLFile() on a non-object in /www/docs/typo3conf/ext/gabriel/mod1/index.php on line 38, referer: https://mywebsite.fr/typo3/backend.php
The corresponding line of /typo3conf/ext/gabriel/mod1/index.php is :
>> $GLOBALS['LANG']->includeLLFile();
I also tried using $LANG->includeLLFile("EXT:gabriel/mod1/locallang.php");, but that didn't change anything, it gave me the same gray empty page and the same message in the error log.
Does someone know how to fix this ? Or did I miss an important step about the modifications to apply ?
Also, if someone knows some kind of top-secret 6.2 extension migration guide, I would be more than interested.
Thanks in advance !
More information about the TYPO3-english
mailing list