#23866layered menus generate "too much recursion javascript-error"
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.