nextcloud / fulltextsearch

🔍 Core of the full-text search framework for Nextcloud
GNU Affero General Public License v3.0
212 stars 51 forks source link

searchBox not available #430

Open Irillit opened 5 years ago

Irillit commented 5 years ago

I upgraded my Nextcloud from 13.0.4 to 14.0.4 on both production and test environments. After upgrading test server to Nextcloud 15, also found there. Operating system: Centos 7.5 Full text search version: 1.1.0 Full text search - Elasticsearch Platform version: 1.0.2 Full text search - Files: 1.1.1

After that each time I enable FullTextSearch app I see the following error in browser console:

 Uncaught Error: searchBox not available                 search.js?v=059cb2f7:61
    at Search.initialize (search.js?v=059cb2f7:61)
    at new Search (search.js?v=059cb2f7:37)
    at Search.initialize (searchprovider.js?v=059cb2f7:384)
    at new Search (searchprovider.js?v=059cb2f7:34)
    at HTMLDivElement.<anonymous> (searchprovider.js?v=059cb2f7:422)
    at Function.each (core.js?v=059cb2f7:2)
    at a.fn.init.each (core.js?v=059cb2f7:2)
    at Object.<anonymous> (core.js?v=059cb2f7:4)
    at j (core.js?v=059cb2f7:2)
    at Object.fireWith (core.js?v=059cb2f7:2)

Has any textbox been renamed in 14.0.4?

Thanks.

Irillit commented 5 years ago

I found it happens because 'searchbox' element is default for a search. Fulltextsearch replaces 'searchbox' element with 'fulltextsearch' when user is browsing files. Script core/search/js/search.js has references to 'searchbox' and generates the following error in browser console. However, 'searchbox' still appear when administrator opens Apps page and search.js still might be useful.

Tab3r commented 5 years ago

Same problem here... and some interface icons are not shown. When i disable the plugin, all works fine.

Operating system: Ubuntu 18.04 Nextcloud: 14.0.4 Full text search version: 1.1.1 Full text search - Elasticsearch Platform version: 1.0.3 Full text search - Files: 1.1.3