Project

General

Profile

Actions

Bug #101439

open

Category tree does not load, when internet connection is slow

Added by Armin Vieweg 10 months ago. Updated 9 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2023-07-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

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:

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:

Then refresh the frame:


Files

Actions #1

Updated by Armin Vieweg 10 months ago

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).

Actions #2

Updated by Riccardo De Contardi 9 months ago

  • Category set to Backend JavaScript
Actions

Also available in: Atom PDF