question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SharePoint term store crashes if pageContext has no cultureinfo

See original GitHub issue

Category

[ ] Enhancement

[x] Bug

[ ] Question

Version

Please specify what version of the library you are using: 3.8.0

Expected / Desired Behavior / Question

Search for a term even if the page has no culture info set.

Observed Behavior

An uncaught exception is thrown:

SPTermStorePickerService.js:471 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'currentUICultureName')
    at SPTermStorePickerService.js:471:50
       (anonymous) @ SPTermStorePickerService.js:471
       Promise.then (async)
       (anonymous) @ SPTermStorePickerService.js:451
       Wt+Y.SPTermStorePickerService.searchTermsByTermSet @ SPTermStorePickerService.js:450
       Wt+Y.SPTermStorePickerService.searchTermsByName @ SPTermStorePickerService.js:322
       (anonymous) @ TermPicker.js:133
       step @ TermPicker.js:45
       (anonymous) @ TermPicker.js:26
       (anonymous) @ TermPicker.js:20
       b7hz.__awaiter @ TermPicker.js:16
       b7hz.TermPicker.onFilterChanged @ TermPicker.js:126
       BasePicker._this._onResolveSuggestions @ BasePicker.js:352
       invokeFunction @ Async.js:310
       callback @ Async.js:335
       resultFunction @ Async.js:364
       kSRW.BasePicker.updateValue @ BasePicker.js:594
       BasePicker._this.onInputChange @ BasePicker.js:77
       9Ow0.Autofill._notifyInputChange @ Autofill.js:267
       (anonymous) @ Autofill.js:109
       pr @ sp-pages-assembly_en-nz_8d7827d88cb39cb2a4596efd3d5f4ef4.js:69

Steps to Reproduce

Use the term picker and search for a term on site without culture info.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
DennisKuhncommented, Jun 3, 2022

@joelfmrodrigues yes I think so too. It may avoid similar (user) problems in the future 😉

1reaction
joelfmrodriguescommented, Jun 3, 2022

@DennisKuhn I have just merged your PR. I assume it’s still a valid change as it’s only checking that the property is valid?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Description of the security update for SharePoint Server 2019
File identifier File version File size Date Time microsoft.office.access.services.moss.dll 16.0.10368.20022 767904 21‑Oct‑20 07:41 ascalc.dll 16.0.10368.20022 972216 21‑Oct‑20 07:40 microsoft.office.access.server.application.dll 16.0.10368.20022 608176 21‑Oct‑20 07:40
Read more >
Description of the security update for SharePoint Server 2019
Improvements and fixes. This security update contains improvements and fixes for the following nonsecurity issues in SharePoint Server 2019:.
Read more >
Description of the security update for SharePoint Server 2019
File identifier File version File size Date Time microsoft.office.access.services.moss.dll 16.0.10371.20043 767912 25‑Jan‑21 07:48 ascalc.dll 16.0.10371.20043 972208 25‑Jan‑21 07:45 microsoft.office.access.server.application.dll 16.0.10371.20043 608176 25‑Jan‑21 07:44
Read more >
Description of the security update for SharePoint Server 2019
This security update contains improvements and fixes for the following nonsecurity issues in Project Server 2019: It is now possible to update task...
Read more >
Validation of viewstate MAC failed / The state information is ...
- NO, i'm not running a Web Farm. - page property "EnableViewStateMac" set to false does not solve the problem, it just changes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found