Project

General

Profile

Actions

Bug #23866

closed

layered menus generate "too much recursion javascript-error"

Added by Andreas Philippi over 13 years ago. Updated about 11 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-10-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Under certain conditions, when using TMENU_LAYERS the layers containing the navigation items get non-unique IDs.

That happens because of a unique-ID-generating-function making uses microtime... which on these specific server seems not to provide unique IDs.

We noticed this error after migrating several sites in a virtualized environment on a much faster machine.

To correct this error we used the php-function uniqid to give us unique ids.

To correct this error we proceeded this way:

Locate the file /typo3/sysext/cms/tslib/media/scripts/tmenu_layers.php

Search for the string: substr(md5(microtime()),0,6);

Replace the string using: str_replace('.','',uniqid('',true));
(issue imported from #M16165)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #21388: typo3temp got filled with thousands of javascript_* filesRejected2009-10-28

Actions
Related to TYPO3 Core - Bug #24367: changes in tmenu_layers.php broke TMENURejected2010-12-19

Actions
Related to TYPO3 Core - Task #46358: Separate ext:statictemplates code from coreClosed2013-03-16

Actions
Actions

Also available in: Atom PDF