Skip Navigation

[Resolved] Filters not working

This support ticket is created 6 years, 1 month 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 15 replies, has 3 voices.

Last updated by stewartE 6 years, 1 month ago.

Assisted by: Christian Cox.

Author
Posts
#1115000

Hi Support,

I am experiencing a problem with a page on one of my websites - the Our Locations page which you can get to through main menu of the website provided in the - What site do you need help with? field.

On this page, attempting to filter the sites by any field (region, technology or market) leaves the spinner spinning but no longer filters the content. (It should filter the map and the list)

This had been working previously and after testing on our development server have identified that when the plugin “WPBakery Page Builder” is disabled, this functionality is restored.

I have updated all plugins/themes and also tried with default WordPress theme but the issue persists, any assistance would be appreciated.

Thanks!

#1115130

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart,

Thank you for contacting our support forum.

Would you mind providing me with admin access to the site so that i can check on this for you ?

The private fields have been enabled for your next response.

Also please let me know which page the search is on.

Thanks,
Shane

#1115198

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart,

From what I can see is that the page builder is having compatibility issues with another plugin.

Its actually generating a JS error in the console for the site so thats why the filter isn't working. If you were to disable AJAX on the search then it would work.

What you can try doing is to disable all the non-toolset plugins, leaving only the page builder active and try again. This should confirm if there is a conflict with another plugin.

Thanks,
Shane

#1115547
Capture.PNG

Hi Shane - I think I mentioned earlier that it is “WPBakery Page Builder (Visual Composer)” that Toolset is conflicting with. We found this by disabling all non Toolset plugins etc.

I tried to disable AJAX search in the View but this didn't fix the issue - See screenshot. I tried it with each of the other options highlighted in red.

Thanks

#1115682

Hi

After comparing two similar websites and confirming there are no issues with the code used, I eventually discovered that the only significant difference was that the site that was working fine was using an older version of the Visual composer plugin (5.0.1) where as the broken site was using the most recent version of Visual Composer (5.5.4). Subsequently I copied the older version of the plugin to the broken website and now the filters are working correctly.

Using an outdated version of Visual Composer isn't really a long term solution. Are your developers able to provide a compatibility update as Toolset and the latest version of Visual Composer have compatibility issues.

Thanks

#1115849

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart,

Actually we mainly focus on our plugins however, I can test this locally and make a report if the same issue is replicable.

Could you provide me with a copy of the latest version of VC? Also does VC need to only be active? or do i need to use to design the view output for the search.

Thanks,
Shane

#1116251

Hi Shane,

Totally understand that you don't support other plugins! - I guess because visual composer can be used through Toolset to build the layout of content templates etc, it is more important for it to be compatible. Can you activate private responses and i'll send you a copy for testing purposes.

VC needs to be activated as it is being used as a page builder across the site including to create the layout in some Toolset Content Templates. It is not being used within the actual view where the filters are broken (Loop item in Sites with Map)

Thanks!

#1116532

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Stewart,

The private fields have been enabled.

Thanks,
Shane

#1119154

Hi, Shane is on holiday this week so I'm reviewing his outstanding tickets. I see that you are experiencing a compatibility issue with the newest version of Toolset and WPBakery Page Builder. I would like to run some additional tests using a clone of your site on my local environment, to replicate and isolate the problem. I can install the Duplicator plugin on your site to make that clone and begin those tests, if you approve. Let me know and I will get started.

#1119156

Hi Christian. Yes please go ahead and install the plugin. If you could let me know once you have taken a clone of the site so I can uninstall and remove the plugin that would be great

Note - In the live version we have rolled Visual Composer back to a previous edition so as it stands the filters will work. You will need to update to the latest version of composer to replicate the issue.

Thanks!

#1119318

Thanks, I have created the clone and uninstalled the plugin. I'll run tests and update you soon.

#1119981
Screen Shot 2018-10-03 at 10.03.59 AM.png

Okay I see the problem - the AJAX response includes some CSS code. The WPBakery Page Builder system is injecting this CSS code in the AJAX response, which breaks the View:

<style type="text/css" data-type="vc_custom-css">a.telno {
text-decoration: none;
}</style>{"success":true,"data":...(the rest of the response is included here)

I'm not exactly sure why this CSS is being displayed. I tracked it back to this line in the VC codebase:

$post_custom_css = get_post_meta( $id, '_wpb_post_custom_css', true );

This indicates that at some point a hidden custom field was populated for this Content Template, and the CSS code was added in that custom field. Does the "a.telno" CSS definition look familiar to you? Can you think of why or how it would have been added at some point for this Content Template?

#1119990

I should mention that I'm referring to the "Sites" Content Template, here:
hidden link

#1122750

Thanks Christian - will look into this and get back to you if need more assistance

#1122968

You're welcome, I will stand by for your update. No need to reply right now, the ticket will remain open for 30 days.