Project

General

Profile

Actions

Bug #16883

closed

Fatal error in impexp module: Call to a member function includeLLFile() on a non-object (4.1beta3)

Added by Andreas Wagner almost 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2007-01-22
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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..?

Actions #3

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.

eg http://typo3-dev.activesolution.at/sanochemia/typo3/mod.php?M=xMOD_tximpexp&tx_impexp[action]=export&tx_impexp[list][]=be_users

So the error is not in ImpExp, but in the list module.

Actions #4

Updated by Martin Kutschker almost 18 years ago

Another error is in the drop down box from the clipboard (with the same reason).

Actions #5

Updated by Martin Kutschker almost 18 years ago

Fixed in SVN.

Actions

Also available in: Atom PDF