Open RobinR1 opened 1 year ago
Duplicate of #35 and #36
@annda How is this a duplicate of #35 ? This server is running PHP 8 and the function array_key_last exists but somehow it is passed 'null' as parameter instead of the required array ?
This seems to be caused by the fact that the namespace which triggers this bug contains both a start.txt
and a start
directory with content and is the very first namespace in the simplenavi list.
I'm not sure how that happened in the past; probably a user error, but it worked in previous simplenavi versions: the content under the start
directory was shown as children of the parent namespace.
As a workaround I have moved the content of the start
directory to the root of the parent namespace, removing the start
directory, only leaving a start.txt
and the content of the now removed start
directory.
When another namespace, other than the first listed, contains a start.txt
and a start
directory with content, then we won't get the above mentioned error but that namespace then suddenly visually becomes a child of a different, unrelated namespace when it is clicked on and expanded in the tree.
Visually: parent namespace testspace
When clicked on: it opens, but jumps under the unrelated namespace exchange_online
and has extra folder icons shown:
So on the alphabetically first namespace it seems to be trying to sort it under another namespace upon clicking on it, but it fails to find a previous namespace to sort it under as it itself is the first namespace. Hence the error I reported in this bug.
Since recent update of simplenavi, I get this error whenever I try to click on the first entry of the simplenavi menu: