Zitat von Tim
Beitrag anzeigen
Trotzdem danke für die schnelle Hilfe!
[2021-04-14 10:17:35] request.INFO: Matched route "tl_page.2604". {"route":"tl_page.2604","route_parameters":{"_token_check":true,"_controller":"Contao\\FrontendIndex::renderPage","_scope":"frontend","_locale":"de","pageModel":"[object] (Contao\\PageModel: {})","parameters":"","_route":"tl_page.2604"},"request_uri":"https://www.ims-robotics.de/de/produkte-finden","method":"GET"} [] [2021-04-14 10:17:35] security.INFO: Populated the TokenStorage with an anonymous Token. [] [] [2021-04-14 10:17:35] request.CRITICAL: Uncaught PHP Exception Error: "Minimum value must be less than or equal to the maximum value" at /kunden/324334_01458/webseiten/contao/2102/templates/layout/customcatalog_ims_products_list.html5 line 13 {"exception":"[object] (Error(code: 0): Minimum value must be less than or equal to the maximum value at /kunden/324334_01458/webseiten/contao/2102/templates/layout/customcatalog_ims_products_list.html5:13)"} []
if ($GLOBALS['TL_LANGUAGE'] == 'de') {
$HTMLcontent = $this->replaceInsertTags('{{insert_content::108275|uncached}}');
} else {
$HTMLcontent = $this->replaceInsertTags('{{insert_content::108517|uncached}}');
};
$HTMLcontent = $GLOBALS['TEST'];
$einklinker1 = explode("<wbr/>",$HTMLcontent); /* wenn ich die Globale verwende, dann sind es 4x Strings im Array, wenn ich |uncached verwende, ist es nur 1x String im Array */
$objLength = count($einklinker);
$einklinker2 = array_slice($einklinker1, 1, $objLength-2);
$length = count($einklinker2);
$randomArticle = random_int(0, $length-1);
$rand_stopper = $einklinker2[$randomArticle];
$i = 0;
Kommentar