[TYPO3-core] RFC #10971: Fatal error in impexp module: Call to a member function includeLLFile() on a non-object
Rupert Germann
rupi at gmx.li
Mon Aug 24 10:00:06 CEST 2009
hi Masi,
Martin Kutschker schrieb:
> Rupert Germann schrieb:
>> Solution:
>> re-add the missing require() lines to impexp/app/index.php AND also
>> change all links pointing to "mod.php?M=xMOD_tximpexp" back to the
>> "classic" format which directly calls impexp/app/index.php.
>>
>> the attached patch is only for trunk. Patches for 4-2 and 4-1 will follow.
>
> Sounds like a hot-fix to me. If nothing better comes up this may go IMHO
> into the next releases of 4.1 and 4.2, but for trunk the real problem
> should be found.
I'm pretty shure that I found the real problem - dude I went back to rev
1770 (2006-10-25) ;-)
The attached patch is actually v3.
v1 was indeed a hotfix, that's the reason why i didn't publish it. It
looked like this:
Index: typo3/sysext/impexp/app/conf.php
===================================================================
--- typo3/sysext/impexp/app/conf.php (Revision 5812)
+++ typo3/sysext/impexp/app/conf.php (Arbeitskopie)
@@ -1,6 +1,6 @@
<?php
-#define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
-#$BACK_PATH='../../../';
+define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
+$BACK_PATH='../../../';
$MCONF['name']='xMOD_tximpexp'; // xMOD_[modulename][optional:
'_something']
Index: typo3/sysext/impexp/app/index.php
===================================================================
--- typo3/sysext/impexp/app/index.php (Revision 5812)
+++ typo3/sysext/impexp/app/index.php (Arbeitskopie)
@@ -107,6 +107,10 @@
* external_ref[tables][]=table/_ALL
*/
+if (!is_object($LANG)) {
+ unset($MCONF);
+ require ('conf.php');
+ require_once ($BACK_PATH.'init.php');
+ require_once ($BACK_PATH.'template.php');
+}
.............
the problem is, that impexp/app/index.php is used in 2 different
contexts: once as normal module and once as submodule of taskcenter.
but submodules are not covered by the new feature: "use a common module
dispatcher (mod.php)" (introduced with rev 1770)
So the _cleanest_ solution is: revert it to the state before rev 1770
where it worked just fine.
greets
rupert
More information about the TYPO3-team-core
mailing list