Skip Navigation

[Closed] Slow Search form results

This support ticket is created 3 years, 6 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 20 replies, has 3 voices.

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

Assisted by: Luo Yang.

Author
Posts
#2050981

It take a while for the results to show after performing a custom Views search/filter. I would like to know how I can speed up the displaying of results.

Thanks

#2051331

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please tell me on what page you added your view, let me first review your view and then I can share my feedback on it.

#2051679

It's on this page:

hidden link

#2051693

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I see you are displaying probably all the posts using the view. I see you are displaying more than hundred results and that is not recommended, even without using Toolset, when displaying that many records it will affect the performance.

I suggest to add pagination to your view.
=> https://toolset.com/course-lesson/creating-a-view/#add-pagination-to-a-view

Lets say, you should prefer to display 12-18 items per page, do you see any difference after adding the pagination.

#2051709

I can try pagination but I dont think that's the main problem. The initial load of the page is fine. But when I filter the search form, it take a long time to display results even if the results are 1 or 2 items.

Try it by clicking on "W" or "Z" from the alphabet search or selecting an item from the dropdown options and hit search.

#2051719

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems you are using nested view's, one view to display the A-Z characters and another view to display the filtered results with custom search form.

I'm not sure how you configured your view yet but if you can share access details I can review and see if we can improve anywhere.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2051765

Lou yang was the supporter who helped me with the search form.

You can look at the thread here to help you understand the setup. Let me know if that helps.

https://toolset.com/forums/topic/alphabetical-filter-option/

I was hoping that I would get Lou Yang, since he helped me at first, but I dont see how I can choose the support of a ticket.

#2051773

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - what I will do is, I will pass this ticket to Luo (for now Luo already ended his shift) and he will get in touch with you tomorrow when he will start working. I hope that is OK.

#2051777

Ok thanks Minesh

#2052767

Hello,

Since it is a custom codes problem, please provide a test site with the same problem, fill below private message box with test site credentials + FTP access, also point out the problem page URL and view URL, where I can edit your custom PHP codes, I need a live website to test and debug, thanks

#2054241

I'm having some problems creating a test site. I'm getting the following error when I go to the test site I created fo you to access.

"There has been a critical error on this website."

I also got this error when I try to go to the wp-admin page:

"There has been a critical error on this website. Please check your site admin email inbox for instructions."

But I did not receive any email.

Do you know of any guide that can help me create the test site properly?

The test site is not hosted on the same server as the live site.

#2054959

You can follow our document to provide a copy of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and view URL, so I can clone and debug in my localhost:
https://toolset.com/faq/provide-supporters-copy-site/

#2057269

Thanks for the details, I am downloading the files, will update here if find anything

#2057287
search.JPG

There are two files in the share link you provided above:
- website files by filezilla.zip, this one is broken, I get zip error when open it
- Database Only.zip, this one works fine, I can install it in my localhost with a fresh WP installation + the latest version of Toolset Types + Views plugins + 2021 theme

And I have tried these in my localhost:
1) Copy/paste those custom codes from previous threads into theme file "functions.php":
https://toolset.com/forums/topic/alphabetical-filter-option/#post-377810
https://toolset.com/forums/topic/i-want-to-remove-the-searchbutton-in-a-views-search/#post-630505

2) Test the problem page in front-end, try to search with alphabet search or selecting an item from the dropdown options and hit search, it works fine, most them are within 1 second, see my screenshot search.JPG

So the problem you mentioned above is abnormal, please check these in your website:
1) Make sure you are using the latest version of Toolset plugins
2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all other custom PHP/JS code snippets, and test again
3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

#2058773

I uploaded another copy of the site compressed from cpanel. Can you try that one and see if that works for you. The name of the file is "website from cpanel.zip"

I am using the latest versions of the toolset plugins.

Thanks

The topic ‘[Closed] Slow Search form results’ is closed to new replies.