Skip Navigation

[Resolved] Error in my page and search not work

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 18 replies, has 2 voices.

Last updated by Luo Yang 6 years, 11 months ago.

Assisted by: Luo Yang.

Author
Posts
#602083

Hi,

In my page hidden link , I have several error and all search form don't work properly....

Could you help me ?

#602108

Dear Thibaut,

I tried it in the URL you mentioned above:
hidden link,

I can see there are lots of JS errors, for example:

(index):1 Uncaught (in promise) TypeError: Cannot read property 'getNotificationManagerImpl' of undefined

Since you are using other plugins, in case it is a compatibility problem, please try these:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) create another new page with only the view shortcode [wpv-view ...], and test again.

#602126

No changes.
New page : hidden link 35 errors and 1 warning...

#602127

Error seems disapear... But search don't work and i haven't pagination with this code :

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
	<wpv-loop wrap="2" pad="true">
		[wpv-item index=1]
		<div class="row ">
			<div class="col-sm-6">[wpv-post-body view_template="Loop item in Recherche châssis"]</div>
		[wpv-item index=other]
			<div class="col-sm-6">[wpv-post-body view_template="Loop item in Recherche châssis"]</div>
		[wpv-item index=2]
			<div class="col-sm-6">[wpv-post-body view_template="Loop item in Recherche châssis"]</div>
		</div>
      		[wpv-item index=pad]
			<div class="col-sm-6"></div>
		[wpv-item index=pad-last]
			<div class="col-sm-6"></div>
		</div>
[wpv-pager-nav-links output="bootstrap" first_last_links="true" previous_next_links="true"]
	</wpv-loop>
	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"]No items found[/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

It is the generate code by toolset and i had pagination link with

[wpv-pager-nav-links output="bootstrap" first_last_links="true" previous_next_links="true"]
#602128

As I mentioned above we need to check if there is any compatibility problem in your website, so I simply create a new page with only one view shortcode here:
hidden link

I can see the custom search form does work, can you put the view you mentioned in post:
https://toolset.com/forums/topic/error-in-my-page-and-search-not-work/#post-602127

into above page and test again?

#602129

And you are using other plugins and custom theme, please try as I mentioned above:
https://toolset.com/forums/topic/error-in-my-page-and-search-not-work/#post-602108
deactivate other plugins and switch to wordpress default theme, and test again

#602139

Therefore,

After having disabled all plugins except those of toolset and having handed over the basic theme, the errors persist.

For search forms, there is only one form that is problematic, that of search of frame.

I leave the site as is for you to see for yourself.
I removed the problem form to see if the errors could come from there.

#602146

could the </div> on line 17 be the problem (https://toolset.com/forums/topic/error-in-my-page-and-search-not-work/#post-602127)
Because it refers to nothing...

When i scroll the page, the number of error increases again and again

#602149

Perhaps begining answer : hidden link
No error when i wait the all charging time... Error when i scroll before the end of the charging time...

#602155

I will check all my code !
But in search form code, there is </div> in excess no ?

#602394

For the question "But in search form code, there is </div> in excess no ?"

It is expected result, it is close tag of :

<div class="row ">
...
</div>

So it should not be the problem.

And I checked the page:
hidden link
You put a view shortcode into it:
[wpv-view name="recherche_frame"]
since there isn't any view with name "recherche_frame" in your website:
hidden link
So it does not output anything in front-end, so I am not sure where is the codes from.

please point out the problem view URL, and put the view shortcode in to above page, I need to test and debug it in a live web site.

#602400

Hi,

Sorry, i did a test and didn't restore the orogin form.
I replace with good shortcode.
For

</div>

, i'm talking about loop output like here : hidden link where div is notify in red and seems to be in exceed (code is generate automaticly by thé plugin).
I don't understand what is pad and don't understand why i can't see button to go to next page...
For this search form (frame), search don't work, and on drone search form, i can't search by brand's frame... All others works...

Hope to be clear... Sorry for modification...

#602405
wikidronefr.JPG

There are lots of questions in this thread, we can handles them one by one, for the original question of this thread:
search form don't work properly

I assume we are talking about the view "Recherche châssis":
hidden link

Please open above URL and check it

In section "Query Filter", there isn't any filters, so the filter form won't be able to work.

For example, the first field of the search form "Marques châssis", you can add a taxonomy filter in it, like this:
Select posts with taxonomy:
Marques châssis slug in one of those set by the URL parameter wpv-s_marque-chassis
eg. hidden link

See screenshot: wikidronefr.JPG

Then test it in front-end again:
hidden link

For example, field "Marques châssis" choose option "Invader-drones", you will be able to see only one result:
Invader-Drones StarFighter

More help:
Filtering Views Query by Taxonomy
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

And I suggest you follow our document to setup the custom search form and filter one by one:
https://toolset.com/documentation/user-guides/front-page-filters/

#602808

Ok,

I found all answer...
On drone custom search form, i use parent taxonomy and i read that it is not possible directly...

For pagination, i found where insert shortcode with a read about index=pad and on the same time found why <\div> is in red...

Stay one thing : when page load, if you wait all the load time, no pb... If you start scroll the page before, you have error on the page each time you scroll...

#602822

I assume we are talking about this page:
hidden link

I can see the problem as you mentioned above, please provide a database dump file of your website in below private detail box, I need to duplicate same problem and debug it in my localhost. thanks