Skip Navigation

[Resolved] AJAX search doesn’t work

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 0 reply, has 1 voice.

Last updated by umbertoZ 2 months ago.

Assisted by: Minesh.

Author
Posts
#2800736

Hi, I've a View with AJAX pagination and custom search that doesn't work as expected.

If I select "Pagination enabled with manual transition and AJAX" the result div has visibility: hiden (I could fix it with some extra css), but the pager links reload the page.

If I select "Pagination enabled with automatic AJAX transition" nothing happens.

The custom search is set to "Update the View results every time an input changes". It just doesn't work, it doesn't update the result.

If I select "AJAX results update when visitors click on the search button", the page is reloaded on search submit.

This website is using Enfold theme. If I activate another theme the View works fine.

is there a way to fix it?

thanks

#2801065

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

First of all - I see you are using number of third party plugins. In order to minimize the cause of the issue and to ensure there is no conflict with the plugins/theme you use:

Could you please try to resolve your issue by deactivating all third-party plugins as well as the default theme to check for any possible conflicts with any of the plugins or themes?
- Do you see any difference? if no:

Can you please share problem URL and admin access details and tell me the exact step that I should follow that should help me to see the issue.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) 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.

#2801110

Hey,

I created a Duplicator backup, excluding the /uploads/ folder.

You can find it here:
/wp-admin/admin.php?page=duplicator

There are two backups available:

- The older one excludes the wp_posts and wp_comments tables.

- The most recent one includes those tables. However, the server shut down the connection before Duplicator could finish the process. Despite this, it looks like the package was successfully created.

Let me know if you need anything else!

#2801266

Minesh
Supporter

Languages: English (English )

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

When I try to login - I got the following error messages:

ERROR: The username or password you entered is incorrect. Lost your password?

Can you please send me working admin access details. Also I can not able to access duplicator package you created without loggedin to admin.

Can I try to create duplicator package on my own and delete the existing ones that you created?

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

#2801279

Hey, try now, your IP is in th white list.

cheers

#2801281

Minesh
Supporter

Languages: English (English )

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

I checked and I can see the issue.

It seems something is blocking the request on your server.

I even try to create a new view without any much customization and that is not working as well. You can see it here:
- hidden link

I suggest to migrate the site to another server and check if you see the same issue with different server. If you see it working on different server that means something is blocking the request that I do not know.

You may also want to disable third-party plugins and check with default theme to in order to minimize the cause of the issue.

#2801308

Hi, I've deactivated all the other plugins and I switched to Astra theme and now your test view works fine:

hidden link

I also tested with Enfold and Enfold Child, with both themes the view's AJAX doesn't work.

cheers

#2801365

Minesh
Supporter

Languages: English (English )

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

We do not have any official integration with Enfold theme.

Normally - it should work but it's not working and I found enfold theme has issues before as well. Please check the following related ticket:
=> hidden link

So, I've added the following filter hook to "Custom Code" section offered by Toolset - with the code snippet "toolset-custom-code":
=> hidden link

add_filter( 'avf_enqueue_wp_mediaelement', 'avia_always_load_mediaelement', 10, 2);
function avia_always_load_mediaelement($condition, $options)
{
	$condition = true;
	return $condition;
}

Now, I can see ajax filter is working even with Enfold theme:
- hidden link

#2801640

It works great!

thanks