Uncaught TypeError: Cannot read properties of undefined (reading 'fn') After Upgrade

Moderator: crythias

Post Reply
nltui
Znuny newbie
Posts: 35
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Uncaught TypeError: Cannot read properties of undefined (reading 'fn') After Upgrade

Post by nltui »

System: Debian 13

I upgraded from 6.5.2 to 6.5.18 and started getting the error below. I tried upgrading to 7.0.19, but the error persists, and it seems to be making the dashboard a mess.

ModuleJS_303953e41b384e354927827cceccf6c3.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'fn')
at Object.<anonymous> (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:15583)
at e (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:465)
at Object.<anonymous> (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:70866)
at e (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:465)
at Object.<anonymous> (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:24448)
at e (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:465)
at Object.<anonymous> (ModuleJS_303953e41b384e354927827cceccf6c3.js:2:109796)
at e (ModuleJS_303953e41b384e354927827cceccf6c3.js:1:465)
at ModuleJS_303953e41b384e354927827cceccf6c3.js:1:822
at ModuleJS_303953e41b384e354927827cceccf6c3.js:1:833
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
e @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
e @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
e @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:2
e @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1
(anonymous) @ ModuleJS_303953e41b384e354927827cceccf6c3.js:1

I did have to reset jquery using the commands below, but it didn't resolve this issue.
bin/otrs.Console.pl Admin::Config::Update --setting-name 'Loader::Agent::CommonJS###000-Framework' --reset
bin/otrs.Console.pl Admin::Config::Update --setting-name 'Loader::Customer::CommonJS###000-Framework' --reset
root
Administrator
Posts: 4288
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Uncaught TypeError: Cannot read properties of undefined (reading 'fn') After Upgrade

Post by root »

Hi,

Have you tried to run bin/otrs.Console.pl Admin::Config::FixMissingFrontendFiles ?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
nltui
Znuny newbie
Posts: 35
Joined: 22 May 2015, 22:41
Znuny Version: 6.5.2
Real Name: Neil Thackeray
Company: Beckman Institute University of Illinois

Re: Uncaught TypeError: Cannot read properties of undefined (reading 'fn') After Upgrade

Post by nltui »

I ran the command you suggested. It did seem to fix a few things, but the error is still present. I can supply the output of the script at the bottom.

A little more info: The dashboard formatting is messed up, the '7 Day Stats' is blank, and the calendar doesn't show in 'Calendar Overview'.

I'm adding a screenshot in case it helps.
Screen-2025-12-02_11-11-08.png
---Script Output---
znuny@bi-tickets-dev:~$ bin/otrs.Console.pl Admin::Config::FixMissingFrontendFiles
Fixing missing JavaScript and CSS configurations...

The following settings have been fixed:
$VAR1 = {
'Loader::Customer::CommonJS###100-CKEditor' => [
'thirdparty/ckeditor-4.17.1/ckeditor.js',
'thirdparty/ckeditor-4.22.1-min/ckeditor.js'
],
'Loader::Module::AgentAppointmentAgendaOverview###002-Calendar' => {
'JavaScript' => [
'thirdparty/momentjs-2.29.1/moment.min.js',
'thirdparty/fullcalendar-3.10.2/fullcalendar.min.js',
'Core.Agent.AppointmentCalendar.js',
'thirdparty/momentjs-2.29.4/moment.min.js',
'Core.Agent.AppointmentCalendar.Plugin.TicketCreate.js'
]
},
'Loader::Module::AgentAppointmentCalendarOverview###002-Calendar' => {
'JavaScript' => [
'thirdparty/momentjs-2.29.1/moment.min.js',
'thirdparty/fullcalendar-3.10.2/fullcalendar.min.js',
'thirdparty/fullcalendar-scheduler-1.10.1/scheduler.min.js',
'Core.Agent.AppointmentCalendar.js',
'thirdparty/clipboardjs-1.7.1/clipboard.min.js',
'thirdparty/momentjs-2.29.4/moment.min.js'
]
},
'Loader::Module::AgentDashboard###001-Framework' => {
'JavaScript' => [
'thirdparty/momentjs-2.29.1/moment.min.js',
'thirdparty/fullcalendar-3.10.2/fullcalendar.min.js',
'thirdparty/d3-3.5.6/d3.min.js',
'thirdparty/nvd3-1.7.1/nvd3.min.js',
'thirdparty/nvd3-1.7.1/models/OTRSLineChart.js',
'thirdparty/nvd3-1.7.1/models/OTRSMultiBarChart.js',
'thirdparty/nvd3-1.7.1/models/OTRSStackedAreaChart.js',
'thirdparty/canvg-1.4/rgbcolor.js',
'thirdparty/canvg-1.4/StackBlur.js',
'thirdparty/canvg-1.4/canvg.js',
'thirdparty/StringView-8/stringview.js',
'Core.UI.AdvancedChart.js',
'Core.UI.AllocationList.js',
'Core.Agent.TableFilters.js',
'Core.Agent.Dashboard.js',
'Core.Agent.Statistics.ParamsWidget.js',
'thirdparty/momentjs-2.29.4/moment.min.js',
'thirdparty/d3-3.5.7/d3.min.js',
'thirdparty/canvg-1.5/rgbcolor.js',
'thirdparty/canvg-1.5/StackBlur.js',
'thirdparty/canvg-1.5/canvg.js'
]
},
'Loader::Agent::CommonJS###100-CKEditor' => [
'thirdparty/ckeditor-4.17.1/ckeditor.js',
'thirdparty/ckeditor-4.22.1-min/ckeditor.js'
]
};

Done.
You do not have the required permissions to view the files attached to this post.
root
Administrator
Posts: 4288
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Uncaught TypeError: Cannot read properties of undefined (reading 'fn') After Upgrade

Post by root »

Neil,

I would reset all listed settings via the command line that have concurrent entries, such as 'Loader::Customer::CommonJS###100-CKEditor (2 CKeditor versions). Let us know how this goes.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply