Uncaught TypeError: Cannot read properties of undefined reading Init

Moderator: crythias

Post Reply
fgwork
Znuny newbie
Posts: 6
Joined: 14 Jul 2023, 09:52
Znuny Version: 6.5.3
Real Name: Patrick Schneeberger

Uncaught TypeError: Cannot read properties of undefined reading Init

Post by fgwork »

Hello

I have upgraded from Znuny 6.4.3 to 6.4.5 to 6.5.3 LTS.
I proceeded as written in the documentation.

For some tickets, not all, the customer information is not displayed.
It takes forever to load.
We have noticed that this error occurs with merged tickets.
We can no longer ineract with the item overview.
Also all entries are no longer displayed


Image

I have the following error message in the browser.

Image

Unfortunately no solution I found on the internet worked.
I have no experience with Znuny.

What went wrong?
How can I solve the problem?

Greetings Fgwork
fgwork
Znuny newbie
Posts: 6
Joined: 14 Jul 2023, 09:52
Znuny Version: 6.5.3
Real Name: Patrick Schneeberger

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by fgwork »

The problem arises only from version 6.5.x.
Before that the problem is not present.
When updating to version 6.5.x I get the following error when running the script/MigrateToZnuny6_5.pl:

Code: Select all

-bash-4.2$ scripts/MigrateToZnuny6_5.pl

 Migration started ...

 Checking requirements ...

    Requirement check for: Check required Perl version ...
    Requirement check for: Check required database version ...
    Requirement check for: Check database charset ...
    Requirement check for: Check required Perl modules ...
    Requirement check for: Check if database has been backed up ...

        Did you backup the database? [Y]es/[N]o: y

    Requirement check for: Migrate SysConfig settings ...

        Should the SysConfig be migrated? [Y]es/[N]o: y


 Executing tasks ...

    Step 1 of 18: Check required Perl version ...
    Step 2 of 18: Check required database version ...
    Step 3 of 18: Check database charset ...
    Step 4 of 18: Check required Perl modules ...
    Step 5 of 18: Check if database has been backed up ...
    Step 6 of 18: Rebuild configuration ...
    Step 7 of 18: Migrate SysConfig settings ...
ERROR: MigrateToZnuny6_5.pl-10 Perl: 5.16.3 OS: linux Time: Mon Jul 17 09:14:56 2023

 Message: Setting ITSMChange::NumberGenerator Effective value is not correct: Kernel::System::ITSMChange::Number::DateChecksum doesn't satisfy ValueFilter(Kernel/System/ITSMChange/                                                  Number/*.pm)!

 Traceback (13550):
   Module: Kernel::System::SysConfig::ConfigurationDeploy Line: 3488
   Module: Kernel::System::SysConfig::SettingsSet Line: 4739
   Module: Kernel::System::SysConfig::Migration::MigrateSysConfigSettings Line: 367
   Module: scripts::Migration::Znuny::MigrateSysConfigSettings::Run Line: 224
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_5.pl Line: 82

    Step 8 of 18: Migrate DBCRUD UUID columns ...
        Calendar::Plugin: Column dbcrud_uuid in table calendar_appointment_plugin...
            Column already exists
        OAuth2Token: Column dbcrud_uuid in table oauth2_token...
            Column already exists
        OAuth2TokenConfig: Column dbcrud_uuid in table oauth2_token_config...
            Column already exists
    Step 9 of 18: Migrate dynamic fields ...
    Step 10 of 18: Migrate notification events ...
    Step 11 of 18: Integrate Znuny-NoteToLinkedTicket ...
ERROR: MigrateToZnuny6_5.pl-10 Perl: 5.16.3 OS: linux Time: Mon Jul 17 09:14:57 2023

 Message: Setting ITSMChange::NumberGenerator Effective value is not correct: Kernel::System::ITSMChange::Number::DateChecksum doesn't satisfy ValueFilter(Kernel/System/ITSMChange/                                                  Number/*.pm)!

 Traceback (13550):
   Module: Kernel::System::SysConfig::ConfigurationDeploy Line: 3488
   Module: Kernel::System::SysConfig::SettingsSet Line: 4739
   Module: scripts::Migration::Znuny::IntegrateZnunyNoteToLinkedTicket::_ArticleActionConfigAdd Line: 60
   Module: scripts::Migration::Znuny::IntegrateZnunyNoteToLinkedTicket::Run Line: 33
   Module: scripts::Migration::_ExecuteComponent Line: 167
   Module: scripts::Migration::Run Line: 77
   Module: scripts/MigrateToZnuny6_5.pl Line: 82




 Not possible to complete migration. Check previous messages for more information.
As soon as I reinstall the modules with

Code: Select all

bin/otrs.Console.pl Admin::Package::ReinstallAll 
these errors disappear. The script runs successfully.

But after starting Znuny I get the problem as described above.
skullz
Znuny superhero
Posts: 624
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by skullz »

are sure you are upgrading to 6.5.3 ?
the error look like same as reported issue https://github.com/znuny/Znuny/issues/455 ,
however its fixed in 6.5.3..
fgwork
Znuny newbie
Posts: 6
Joined: 14 Jul 2023, 09:52
Znuny Version: 6.5.3
Real Name: Patrick Schneeberger

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by fgwork »

skullz wrote: 17 Jul 2023, 14:23 are sure you are upgrading to 6.5.3 ?
the error look like same as reported issue https://github.com/znuny/Znuny/issues/455 ,
however its fixed in 6.5.3..
Hello

Yes it looks like that. This is strange.

I have already tried the following:
  • Znuny 6.4.5 to 6.5.1 LTS.
  • Znuny 6.4.5 to 6.5.3 LTS.
I am sure that these are the versions.
Unless they are linked incorrectly under:
https://www.znuny.org/de/releases
I've used the "Source.tar.gz".

As written, the problem occurs only from version 6.5.x.
Do you need more information?

CentOS Linux 64x - 7.9.2009

Code: Select all

PRODUCT = Znuny
VERSION = 6.5.1
BUILDDATE = Thu Mar  9 14:32:10 CET 2023
BUILDHOST = znuny.01
COMMIT_ID = 1b9b1566e4f22060aa940ebff5b3776f55a450bb

PRODUCT = Znuny
VERSION = 6.5.3
BUILDDATE = Wed Jun 14 10:18:23 CEST 2023
BUILDHOST = ci-runner-01.znuny.com
COMMIT_ID = 0ef98fc189cce3442ee16de76b5194c053fdf25c
skullz
Znuny superhero
Posts: 624
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by skullz »

Some others faced this..
Look like you have to update the JS

viewtopic.php?f=62&t=43717
fgwork
Znuny newbie
Posts: 6
Joined: 14 Jul 2023, 09:52
Znuny Version: 6.5.3
Real Name: Patrick Schneeberger

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by fgwork »

skullz wrote: 18 Jul 2023, 05:32 Some others faced this..
Look like you have to update the JS

viewtopic.php?f=62&t=43717
Problem does not occur after adding Core.Agent.TicketNoteToLinkedTicket.js to JavaScript list in
Loader::Module::AgentTicketQueue###002-Ticket.
How can i edit the "Loader::Module::AgentTicketQueue###002-Ticket" ?
Where is this file located?
skullz
Znuny superhero
Posts: 624
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by skullz »

Admin > System Configuration..you then can search for it
fgwork
Znuny newbie
Posts: 6
Joined: 14 Jul 2023, 09:52
Znuny Version: 6.5.3
Real Name: Patrick Schneeberger

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by fgwork »

skullz wrote: 18 Jul 2023, 10:48 Admin > System Configuration..you then can search for it
Thank you. Have added it as in the picture.

Image

The problem unfortunately persists.

Image
Image

Follow errors show up in a normal ticket, (not linked/merged).

Image

Greetings Fgwork
fgwork
Znuny newbie
Posts: 6
Joined: 14 Jul 2023, 09:52
Znuny Version: 6.5.3
Real Name: Patrick Schneeberger

Re: Uncaught TypeError: Cannot read properties of undefined reading Init

Post by fgwork »

Problem:
JavaScript loading order is not correct, differs from default.

Solution:
Znuny -> Admin -> System configuration -> Search for "Loader".

Now a list with many entries is displayed.
If an entry differs from the default setting, it is marked with a gray bar.
In my case:
  • AgentTicketQueue
  • AgentTcketZoom
Reset the Javascipt entries that differ from the default value to the default value.
Save and put into operation.

Execute the following on the server

Code: Select all

bin/otrs.Console.pl Maint::Cache::Delete
bin/otrs.Console.pl Maint::Config::Rebuild --cleanup
Now it should work again.
Post Reply