Bug #16883
closedFatal error in impexp module: Call to a member function includeLLFile() on a non-object (4.1beta3)
0%
Description
Steps to reproduce:
In the list module. Go to a page and click "List only this table" on some table listing. Click the Export button in the top.
The full error message reads:
"Fatal error: Call to a member function includeLLFile() on a non-object in /home/guilyse/typo3_src-4.1beta3/typo3/sysext/impexp/app/index.php on line 115"
(issue imported from #M4831)
Updated by Rob Vonk almost 18 years ago
I can reproduce this error. It seems that the initialization of $LANG is commented out.
from the index.php:
#unset($MCONF);
#require ('conf.php');
#require ($BACK_PATH.'init.php');
#require ($BACK_PATH.'template.php');
$LANG->includeLLFile('EXT:impexp/app/locallang.php');
Normally it would be initialized in template.php on these lines:
$LANG = t3lib_div::makeInstance('language');
$LANG->init($BE_USER->uc['lang']);
It seems that uncommenting these lines in /typo3/sysext/impexp/app/conf.php
define('TYPO3_MOD_PATH', 'sysext/impexp/app/');
$BACK_PATH='../../../';
and uncommenting these lines in /typo3/sysext/impexp/app/index.php
#unset($MCONF);
#require ('conf.php');
#require ($BACK_PATH.'init.php');
#require ($BACK_PATH.'template.php');
fixes the problem. I don't have a clue why these are commented but i guess the author had good reason for it..?
Updated by Rob Vonk almost 18 years ago
Found the changeset here:
http://svn.t3.digitaldistrict.de/cgi-bin/trac.cgi/changeset/5631#file29
Updated by Martin Kutschker almost 18 years ago
The link to te module is wrong. From 4.1 in a module is expected to be called from typo3/mod.php.
So the error is not in ImpExp, but in the list module.
Updated by Martin Kutschker almost 18 years ago
Another error is in the drop down box from the clipboard (with the same reason).