---
title: "toctoc_comments - no typoscript template found (TYPO3 v7.6.4)"
url: "https://www.typo3.net/d/122326-toctoc-comments-no-typoscript-template-found-typo3-v764"
source: "typo3.net"
tags: ["Extensions","Frage"]
created: "2016-04-12"
last_reply: "2016-04-13"
replies: 1
solved: true
page: 1
pages: 1
lang: "de"
---

# toctoc_comments - no typoscript template found (TYPO3 v7.6.4)

Extensions · 1 Antwort · gelöst · gestartet 2016-04-12

## Frage

**freeatweb** · 2016-04-12 · [Beitrag #1](https://www.typo3.net/d/122326-toctoc-comments-no-typoscript-template-found-typo3-v764/1)

Hallo liebes Forum,

wenn ich unter TYPO3 v7.6.4. die Extension toctoc_comments (egal ob EXT-Version 9.0.0, 9.0.1 oder 9.0.2) installiere, funktioniert alles soweit so gut.

Wenn ich jedoch einen Kommentar, ein Rating, oä. abgebe, kommt die Meldung

```plaintext
TYPO3\CMS\Core\Error\Http\ServiceUnavailableException Object ( [statusHeaders:protected] => Array ( [0] => HTTP/1.1 503 Service Unavailable ) [title:protected] => Service Unavailable (503) [message:protected] => No TypoScript template found! 

...
```

Das Rating, der Kommentar wird dennoch gespeichert.
Das stastische Template ist im Root-Template eingebunden - die Ausgabe funktioniert einwandfrei.

Hat jemand eine Idee?

Vielen Dank & Lg

## Beste Antwort

**freeatweb** · 2016-04-13 · [Beitrag #2](https://www.typo3.net/d/122326-toctoc-comments-no-typoscript-template-found-typo3-v764/2)

Hab die Lösung gefunden:

Das Typoscript-Template MUSS in der PID 1 angelegt sein, ansonsten gibt die Extension einen Fehler aus.

class.toctoc_comments.php - Zeile 678-699:

```php
try {
			/** @var $frontend TypoScriptFrontendController */

			$frontend = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
					'TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController',
					$GLOBALS['TYPO3_CONF_VARS'], $pageId, ''
			);


			$GLOBALS['TSFE'] = & $frontend;

			$frontend->initFEuser();
			$frontend->determineId();
			$frontend->initTemplate();
 			$frontend->getConfigArray();
			//       // Get linkVars, absRefPrefix, etc
			\TYPO3\CMS\Frontend\Page\PageGenerator::pagegenInit();
			

		} catch (Exception $e) {
			print_r($e);
		}
```

Die Variable $pageId ist immer 1 - ist nicht optimal aber immerhin funktioniert's dann :-)

Lg

## Antworten

### [#2](https://www.typo3.net/d/122326-toctoc-comments-no-typoscript-template-found-typo3-v764/2) · freeatweb · 2016-04-13 · Beste Antwort

(Text siehe oben unter „Beste Antwort“.)

---

Quelle: „toctoc_comments - no typoscript template found (TYPO3 v7.6.4)“, typo3.net, https://www.typo3.net/d/122326-toctoc-comments-no-typoscript-template-found-typo3-v764
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
