This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e60ab900-a8e5-48a1-8078-fd26dbe7a493 XWIKI-22414 Open

"Cannot read properties of undefined (reading 'initialize')" JS errors when landing on a page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-636c08bf-caac-4383-adda-971b156e646d Ilie Andriuta created this issue on 12/Aug/24 14:20
 
Summary: "Cannot read properties of undefined (reading 'initialize')" JS errors when landing on a page
Issue Type: cid:jira-generated-image-avatar-e60ab900-a8e5-48a1-8078-fd26dbe7a493 Bug
Affects Versions: 16.6.0
Assignee: Unassigned
Attachments: Uncaught_1st_error_Expanded.png, Uncaught_2nd error_Expanded.png, Uncaught_error_Initialize.png
Created: 12/Aug/24 14:20
Environment: Windows 11 Pro, Chrome 127, using a local instance of XWiki 16.6.0 on PostgreSQL 16, Tomcat 9.0.91
Priority: cid:jira-generated-image-static-blocker-ce0161dd-d88e-4d66-b761-f2db46aad805 Blocker
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Navigate to a page
  2. Observe the logs from JS console

Expected results

No errors are displayed.

Actual results

There are displayed two JS errors:

Uncaught TypeError: Cannot read properties of undefined (reading 'initialize')
    at b (compatibility.js:544:25)
    at compatibility.js:549:5
    at compatibility.js:541:1
b	@	compatibility.js:544
(anonymous)	@	compatibility.js:549
(anonymous)	@	compatibility.js:541

and

Uncaught TypeError: Cannot read properties of undefined (reading 'initialize')
    at b (compatibility.js:544:25)
    at Array.forEach (<anonymous>)
    at Array.each (prototype.js?r=1:859:12)
    at compatibility.js:547:29
    at HTMLDocument.<anonymous> (prototype.js?r=1:417:23)
    at HTMLDocument.<anonymous> (prototype.js?r=1:7282:15)
    at fireEvent_DOM (prototype.js?r=1:7141:13)
    at fire (prototype.js?r=1:7130:17)
    at k (eventsBridge.js:61:26)
    at HTMLDocument._methodized [as fire] (prototype.js?r=1:456:23)

The full stacktrace of errors could not be copied from Chrome directly, but please see the attached screenshots of these errors expanded.

The issue could not be reproduced on XWiki 16.5.0, 16.4.1 or 15.10.11.

 
 

2 updates

 
cid:jira-generated-image-avatar-636c08bf-caac-4383-adda-971b156e646d Changes by Ilie Andriuta on 12/Aug/24 14:20
 
Fix Version: 16.7.0-rc-1
Labels: regression