Nach Installation der Erweiterung über den CM lässt sich das Frontend nicht mehr öffnen, auch wenn ich die Lagerverwaltung gar nicht aktiviert habe.
Im Backend scheint alles richtig zu laufen.
Im prod.log steht
Hooks.phpPHP-Code:[2019-02-15 08:01:43] app.CRITICAL: An exception occurred. {"exception":"[object] (Symfony\\Component\\Debug\\Exception\\FatalThrowableError(code: 0): Call to a member function getRelated() on null at /vendor/richardhj/contao-isotope_simple_stockmanagement/src/FrontendIntegration/Hooks.php:126)"} []
Installiert ist Contao 4.4.34, Isotope 2.5.10 und Simple Stock Management 2.0 (habe auch die dev-master vom 19.11.2018 getestet)PHP-Code:public function checkItemIsAvailable(ProductCollectionItem $item)
{
/** @var Product|Model $product */
$product = $item->getProduct();
126 $productType = $product->getRelated('type');
if (!$productType->stockmanagement_active) {
return null;
}
$stock = Stock::getStockForProduct($product->id);
if (false !== $stock && $stock < 1) {
return false;
}
return null;
}
Vorab danke für die Hilfe.

Zitieren