Value Suggest not populating options as you type

Hi all,

I am posting a similar to issue to an old topic here “Auto-suggest not populating for elements associated with a Value Suggest data type

This module worked for me last year when I created a resource template to auto-suggest options for property fields such as a Language, Subject and Rights. But this year, it no longer works as intended.

I tried a couple different troubleshooting options:

  • updating versions, modules and themes (Omeka-S version: 4.1.1, Value Suggest version: 1.17.1, Theme: Thanks, Roy version 1.2.2 )
  • deactivating modules such as CSV Import and IIIF server
  • upgrading PHP to 8.3
  • and following the suggestions of that old post linked above

I also contacted Reclaim Hosting for additional support and they tried the following:

  • disabling the IIIF server by changing the name of the folder in the modules folder
  • checking the box next to Disable file validation to allow all MIME types

So far, nothing has worked. Anyone have other advice or solutions I should try? Right now, I have just removed the Value Suggest data type and used Text + URI instead.

Thanks in advance for any guidance!

What Value Suggest data types are you trying to use? It could be a problem with the service. Open the console in your browser’s development tools and try getting a suggestion. Are there any errors?

For language, LC: ISO639-2 Languages
For subject, LC: Subject Heading
For rights, RightsStatements.org: Rights statements for online cultural heritage
For Spatial coverage, Geonames: The GeoNames geographical database

When checking the console, the following error appears:

valuesuggest.js:1  Failed to load resource: the server responded with a status of 404 ()Understand this error
add:1 Refused to execute script from '.../modules/ValueSuggest/asset/js/valuesuggest.js?v=1.20.0' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

I can’t reproduce the error, and it’s not one I’ve seen before with this module. The server is returning a 404 Not Found page instead of JavaScript when requesting modules/ValueSuggest/asset/js/valuesuggest.js. Is it possible that file is missing?

Thanks for the tip! I was able to fix the issue by re-installing the module using the zip file from GitHub rather than the one from the Omeka S list.

So it could be that some files exist the the GitHub version which are missing in the Omeka S list.

Thank you again for your help!

The download links in the Omeka S list just go straight to Github, so there shouldn’t be any differences between the two.

Maybe there was just a small issue in your initial upload process the first time around.

Maybe :woman_shrugging: Either way, I’m happy this is resolved!