---
title: "Fatal Error bei rlmp_dateselectlib"
url: "https://www.typo3.net/d/94296-fatal-error-bei-rlmp-dateselectlib"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2009-11-09"
last_reply: "2009-11-09"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Fatal Error bei rlmp_dateselectlib

Extensions · 1 Antwort · gestartet 2009-11-09

## Eröffnungsbeitrag

**devx** · 2009-11-09 · [Beitrag #1](https://www.typo3.net/d/94296-fatal-error-bei-rlmp-dateselectlib/1)

Hallo,

ich hab die genannte Ext. installiert und wie im Manual beschrieben includiert:

```php
require_once(t3lib_extMgm::extPath('rlmp_dateselectlib').'class.tx_rlmpdateselectlib.php');
tx_rlmpdateselectlib::includeLib();
```

und erhalte sofort folgenden Fehler:

**Fatal error: Using $this when not in object context in ...\typo3conf\ext\rlmp_dateselectlib\class.tx_rlmpdateselectlib.php on line 282**

Die Zeile 282 ist hier die Zeile 13:

```php
function get_LL($key,$alt='',$hsc=FALSE)  {
      // Load translations
      // This is done kind of manually here, because we use this class
      // without making an instance. That's why I don't use pi_loadLL etc.
      // because we don't know in which scope we're currently in.
      //  Do you know a better way? Tell me ... ;-)

    $basePath = t3lib_extMgm::siteRelPath('rlmp_dateselectlib').'/locallang.php';
    if (@is_file($basePath))  {
      include('./'.$basePath);
    }

    if (isset($LOCAL_LANG[$this->LLkey][$key]))  {
      $word = $GLOBALS['TSFE']->csConv($LOCAL_LANG[$this->LLkey][$key], $this->LOCAL_LANG_charset[$this->LLkey][$key]);  // The "from" charset is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
    } elseif ($this->altLLkey && isset($LOCAL_LANG[$this->altLLkey][$key]))  {
      $word = $GLOBALS['TSFE']->csConv($LOCAL_LANG[$this->altLLkey][$key], $this->LOCAL_LANG_charset[$this->altLLkey][$key]);  // The "from" charset is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
    } elseif (isset($LOCAL_LANG['default'][$key]))  {
      $word = $LOCAL_LANG['default'][$key];  // No charset conversion because default is english and thereby ASCII
    } else {
      $word = $this->LLtestPrefixAlt.$alt;
    }

    $output = $this->LLtestPrefix.$word;
    if ($hsc)  $output = htmlspecialchars($output);

    return $output;
  }
```

Der Fehler sagt mir, dass ich ja eine Methode rufe ohne eine Objekt zu haben,
aber im Manual steht ja auch:
*"Notice that you don't create an instance of the extension's class, you just call it."*

Wer kann mir weiterhelfen?

P.S. Google brachte nur 1 Treffer zu dem Problem: <http://www.kamigo.at/>  8-)
Ich bin also nicht der Einzigste...

## Antworten

### [#2](https://www.typo3.net/d/94296-fatal-error-bei-rlmp-dateselectlib/2) · devx · 2009-11-09

Lösung:

```php
$this->LLkey
```

umwandeln in

```php
$LLkey
```

und wo das $this halt noch auftaucht in der Funktion.

---

Quelle: „Fatal Error bei rlmp_dateselectlib“, typo3.net, https://www.typo3.net/d/94296-fatal-error-bei-rlmp-dateselectlib
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
