View Issue Details

IDProjectCategoryView StatusLast Update
0029991mantisbtinstallationpublic2022-05-20 11:19
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.25.4Fixed in Version2.25.4 
Summary0029991: Javascript error in browser console when upgrading
Description

When upgrading an existing MantisBT instance, the following error is displayed after loading admin/install.php

Uncaught TypeError: $(...).val() is undefined
    update_sample_table_names http://localhost/mantis/js/install.js:146
    <anonymous> http://localhost/mantis/js/install.js:140
    jQuery 8
install.js:146:37

The error is also shown in subsequent install steps (including on new install scenarios).

TagsNo tags attached.

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 64a44a7e

2022-04-29 07:48

dregad


Details Diff
Fix "Uncaught TypeError" on install.php

Only load the JavaScript, when it is actually needed (i.e. with install
steps 0 & 1).

Fixes 0029991
Affected Issues
0029991
mod - admin/install.php Diff File

MantisBT: master 202890b4

2022-04-29 07:55

dregad


Details Diff
Install: refactor update_sample_table_names()

Use a new helper function process_table_name_field() to ensure that a
single `_` is appended or prepended to the input fields ' value.

The also code ensures the field is a valid jQuery object before
attempting to process its value, preventing occurrence of an Uncaught
TypeError.

Fixes 0029991
Affected Issues
0029991
mod - js/install.js Diff File