[SOLVED] [JS error will not allow module to submit searchword] Search module doesn't display results after upgrade

More
10 years 2 months ago - 10 years 2 months ago #58350 by agata
Hello,
I've just upgraded FC to 3.0.9-rc and Joomla to 3.4.5 and now when I use the FC search module, it leads me to the correct search page and the search box on that page is pre-filled with the correct search term, however the results don't display. They only appear when I use the search box on the search page. Any ideas as to what might be causing this?

The "direct button" mode acts the same way (brings me to the search page but doesn't display results) but it would be great if it worked correctly as this search is for a product code only so there's only 1 result for each search (didn't notice this option before, a new addition?).

The module leads to a page with the URL /search but the search form on the search page gets a URL /search?searchword=ss429&searchphrase=natural&cc=p after the search has been performed.

Thanks,
Agata
Last edit: 10 years 2 months ago by agata.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58355 by ggppdk
Hello

please update to v3.0.9-rc2 (12 November 2015), it fixes issues found in v3.0.9-rc

about the issue with search module, it seems that the search menu item configuration is not used by the module
(in the search module you can select a search menu item to use its configuration and link to it)

after upgrading re-test
and then if still having an issue send a PM and i will see why configuration of search menu item is not being applied by the module


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58394 by agata
Hello,
The module features the itemid of the menu item and it used to work but now it doesn't. I upgraded FC to RC3 and still nothing. I will send you the access data to the site.
Thanks,
Agata

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago - 10 years 2 months ago #58404 by ggppdk
Hello

About search menu configuration

1. you did not make at least field "title" to be "(advanced) text searchable",

you only have "Project code", (i guess that is what you want with the module) you can limit searchable fields in the search menu item,
thus you can mark fields as text searchable only the "Project code", and not let all searchable fields participate in search,

... but text autocomplete will use ALL fields,
- so maybe we need to update our text search autocomplete code to use search menu item configuration !

2. mistake?: you have chosen to use "phrase" as word combination, this does not allow partial matches
use: "any words", this will allow you to search for code "ss6" which will return "ss679", etc

3. problem(see my next answer about module): the jQuery loading is broken in the search view, thus "text autocomplete" will not work
you can use jQueryeasy or fix it someway, and thus autocomplete will help the user search existing words

Also: after marking of a field as text searchable, you will get a warning to re-index, remember to do it


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!
Last edit: 10 years 2 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58405 by ggppdk
Hello

about module i found why it is not working
- the search word is added to the URL via javascript

but you have a javascript error in your page:
ReferenceError: jQuery is not defined tmpl-common.js:204:1
ReferenceError: jQuery is not defined projects:34:3
ReferenceError: Joomla is not defined projects:58:7

thus the search word is not added to the URL


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58412 by agata
All red errors in the console have been resolved, however the problem persists and I get "TypeError: this.form.searchword is undefined"
Thanks,
Agata

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58416 by agata
I just tested it on a sandbox with the template changed to protostar and the behaviour is the same, that is when using the module you get redirected to the search page and the form on that page is pre-filled with the search word but results don't show and only when using the search page form the results appear. The only difference I noticed is that when using the module, the URL is /search?q=ss429&cc=p and when searching on the search page, it's /search?q=ss429&searchphrase=natural&cc=p
Agata

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58448 by ggppdk
Hello

i still do not see the module to submit the search words !

the search menu item (search view) opens without the search phrase, the JS submit code fails

i will test without the submit button in case this is related, (you can enable submit button to see if it is related)

i have made this issue:
github.com/FLEXIcontent/flexicontent-cck/issues/365
v3.0.9 milestone , last issue of v3.0.9 ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58452 by agata
Yes, I know the search page opens without the search phrase but it wasn't caused by the JS errors. Here's the sandbox running Protostar sandbox-spiral.wilddog.co.uk/ with the same issue even though the search term gets added to the URL.
Thanks,
Agata

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #58466 by ggppdk
Hello

i also see a problem with module, sometimes the search-areas are set wrongly,
causing the search view to think that there is nothing to search for

i have updated GitHub issue
will make a fix soon,

i think the above is your case (but you still need to fix the JS issue so that searchword submit)

the other JS problem :
TypeError: this.form.searchword is undefined

i ll fix it , but it is not reason the reason searchword (&q=) to be empty


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save