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
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
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:
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