Project

General

Profile

Actions

Bug #19166

closed

t3lib_befunc::getNoRecordTitle dies with fatal error if $LANG is not instantiated

Added by Christian Jul Jensen over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-07-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When using t3lib_befunc::getRecordTitle the method t3lib_befunc::getNoRecordTitle will be called if there is no title of the record. This method relies on $LANG to be instantiated, which is not the case in CLI mode.

This makes the crawler extension fail if reaches a page with no title.

Instantiating the LANG object seems overkill, so a simple check if it is, and if not just returning a default hardcoded value or an empty string would be a solution.

(issue imported from #M9072)

Actions #1

Updated by Chris topher over 16 years ago

Here the question again is where $LANG should be instantiated.

See Corelist, issue 8564 for a discussion about that:
http://lists.typo3.org/pipermail/typo3-team-core/2008-July/thread.html#25033

The only thing missing yet is a solution...

Actions #2

Updated by Christian Kuhn almost 16 years ago

With current trunk (r4805) $LANG is initialized in init.php. This was changed with #19328. So this issue is solved, right?

Actions #3

Updated by Christian Kuhn almost 16 years ago

This should be fixed with #19328.

I didn't set up a test case, but I really think the issue is solved.
Please reopen if I missed something.

Actions #4

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF