TypeError: Cannot read properties of null (reading 'label')

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
panmeri
Posts: 3
Joined: 13 Feb 2024, 10:08

TypeError: Cannot read properties of null (reading 'label')

Post by panmeri »

Hello,
I am new to Mantis as for trying to fix things, using it for a while - but I did not set it up, though.

TypeError: Cannot read properties of null (reading 'label')
this is an error the browser shows most of the time after e.g. inserting a new issue, updating an issue (inserting a note).
Where do I look for what could generate this error?

Thanks for some kick-off-info ...
Regards, pan
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: TypeError: Cannot read properties of null (reading 'label')

Post by atrol »

I was not able to reproduce your problem with a fresh install of the latest stable MantisBT release (2.26.0 at the moment).

Please provide detailed step-by-step instructions (add also screenshot of the error message) to reproduce the issue; the following additional information may also be useful:

- Exact version of MantisBT, PHP, Database, Web server, Browser and Operating System
- Relevant customizations (e.g. changes in config_inc.php, etc)
- Installed plugins or custom functions ?
- Was the MantisBT source code modified in any way ?
Please use Search before posting and read the Manual
panmeri
Posts: 3
Joined: 13 Feb 2024, 10:08

Re: TypeError: Cannot read properties of null (reading 'label')

Post by panmeri »

Hello atrol,
thank you very much for your effort and reply.
I am afraid, from what I see following your questions, that this is a very old installation.

Server:
SLES12SP5
5.5.62 SUSE MySQL package
mantisbt-1.2.16.tar.gz
php5-mysql-5.5.14-109.82.1.x86_64
apache2-mod_php5-5.5.14-109.82.1.x86_64

Client:
Chrome
Windows Server 2019 Datacenter

As for source code modifications, customizations, plugins ... I don't know.
The person who might have done some customization does not work on this project any more, the other left into pension.
So I guess I will have either to set up a new environment or just live with it ... it may well be that this is just some incompatibility issue, not really Mantis related.

Thanks
Attachments
mantis.png
mantis.png (4.19 KiB) Viewed 2274 times
Last edited by panmeri on 13 Feb 2024, 13:52, edited 1 time in total.
panmeri
Posts: 3
Joined: 13 Feb 2024, 10:08

Re: TypeError: Cannot read properties of null (reading 'label')

Post by panmeri »

I guess, at this point, it could be a good idea to plan a migration.
First install the latest version, try it out, test it ... and then migrate data from the older version to this new installation.
To get things up to date and to start putting hands on from the base ...
atrol
Site Admin
Posts: 8378
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: TypeError: Cannot read properties of null (reading 'label')

Post by atrol »

That will not work on your current system, e.g. your PHP version is not supported
https://www.mantisbt.org/forums/viewtopic.php?t=27295
https://www.mantisbt.org/docs/master/en ... e.versions
Please use Search before posting and read the Manual
panmeri
Posts: 3
Joined: 13 Feb 2024, 10:08

Re: TypeError: Cannot read properties of null (reading 'label')

Post by panmeri »

Thank you very much, atrol, for your reply and links.
I am planning to do some upgrade testing, starting from a new installation.
Will study the documentation first, though.

Thanks a lot and vielen Dank, Igor
Post Reply