Issue Bug Closed

#101439Category tree does not load, when internet connection is slow

Armin Vieweg 07/25/23, 09:21 updated 12/02/25, 14:34

Description

This issue occures in 11.5.30 as well as in 12.4.4.

When the internet connection is too slow, the category tree does not load. Instead the JS console shows this error:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'dataset')
    at SelectTreeElement.generateRequestUrl (select-tree-element.js?bust=570e49c9f4853b50cd9289267f625c76f9c5f218:13:2301)
    at new SelectTreeElement (select-tree-element.js?bust=570e49c9f4853b50cd9289267f625c76f9c5f218:13:1423)
    at java-script-item-processor.js?bust=570e49c9f4853b50cd9289267f625c76f9c5f218:13:1629
    at java-script-item-processor.js?bust=570e49c9f4853b50cd9289267f625c76f9c5f218:13:1720
    at Array.map (<anonymous>)
    at java-script-item-processor.js?bust=570e49c9f4853b50cd9289267f625c76f9c5f218:13:1710

How to reconstruct:

1. Install EXT:news
2. Create some categories (I’ve created two root categories and one sub category. In total 3 categories) on root level
3. Create a news record and save it
4. Throttle your internet connection, using Developer Tools in e.g. Chrome:
clipboard-202307251116-srflf.png

In case, the default profiles (Fast/Slow 3G) are not slow enough, create a new profile. With the following settings I was able to reconstruct this issue almost every time, on an empty, fresh TYPO3 installation within DDEV:

clipboard-202307251118-j3ylv.png

Then refresh the frame:
category-tree-loading-issue.gif

Reviews 3

Files 3

History 613

  1. Armin Vieweg commented <span data-processor="relativetime" data-value="2023-07-25T09:23:11+00:00" > 07/25/23, 09:23 </span>

    Note: The error in console only occures, when in a record.
    In page settings, the categories are also not loading, but there is no error appearing. This only occures for records (not only news).

  2. Christoph Lehmann commented <span data-processor="relativetime" data-value="2024-08-29T07:46:57+00:00" > 08/29/24, 07:46 </span>

    I see the error in v12.4.19. Its randomly, sometimes the category tree appear.

  3. Patrick Schriner commented <span data-processor="relativetime" data-value="2025-02-12T17:21:14+00:00" > 02/12/25, 17:21 </span>

    We have had this issue in the context of the GSB11

  4. Patrick Schriner commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-03-21T08:35:08+00:00" > 03/21/25, 08:35 </span>

    Applied in changeset commit:872a43703cd0996cd5540802c903bcd83ed64f1f.