Jump to content

Faceted search module bug after update


AureAure

Recommended Posts

Hello,

After updating the faceted search module, my features that include special characters (for example the feature "Grey/Black" which includes a "/") do not work in the faceted search module.

When I click on it, the page reloads but the filter choice is not taken into account. My other features that do not have special characters (e.g. "Blue") work perfectly.

Any idea how to solve this problem apart from removing my special characters or reverting to the previous version? 

Thank you for your help.

navigation à facettes en.jpg

Link to comment
Share on other sites

Your page works only in Firefox. In Chrome it shows 6 products while saying that it shows 196. And that problem isn't javascript.

In Firefox I always see a javascript error. So that problem is beyond the slash.

These are theme related errors and the best approach is asking its maker.

One tip: when looking for javascript errors, disable CCC (see image)

smart.thumb.jpg.65cc5ce82ae2bb4e71c6971a1c8e437e.jpg

 

Link to comment
Share on other sites

Hello,

Thank you very much for having taken the time to look. 

Juste to understand well : on browsers other than Chrome, you only see 6 products displaying and not 196? I can't reproduce this, for me all my 196 products are displaying on Firefox, Opera, Edge or Chrome. Do you mean the page with one of the filters from faceted search activated?

So, you think my problem with the special characters in the faceted search module comes from my theme, right?  Or are you talking about this other problem I can't reproduce?

Thank you again and sorry for those questions, I'm a bit confused.

Link to comment
Share on other sites

12 minutes ago, AureAure said:

Hello,

Thank you very much for having taken the time to look. 

Juste to understand well : on browsers other than Chrome, you only see 6 products displaying and not 196? I can't reproduce this, for me all my 196 products are displaying on Firefox, Opera, Edge or Chrome. Do you mean the page with one of the filters from faceted search activated?

So, you think my problem with the special characters in the faceted search module comes from my theme, right?  Or are you talking about this other problem I can't reproduce?

Thank you again and sorry for those questions, I'm a bit confused.

As I wrote "In Chrome it shows 6 products". I see the same in Edge.

chwa.thumb.jpg.e9b8172be785e774669c12b6e965918d.jpg

 

 

Link to comment
Share on other sites

I took a look at your site and indeed I have the same problem as Musicmaster, on Edge and Firefox the filters with the "/" character do not work but on Chrome the problem is much bigger because there are indeed only 6 products that appear. Can you activate the debug mode and redo these manipulations in each browser to see if an error message appears?

Link to comment
Share on other sites

Thank you very much William.

I managed to reproduce the problem of the 6 products with Edge 88, I need to concentrate on this problem before resolving the other one.

I had an error with debug mode and corrected it but the problem still remains.

A few notes:

- The problem only occurs in the English version of the page. In all other languages it displays correctly.
- The problem only occurs in this specific category and not on the other ones
- When I clear the site cache and reload the page immediately after, the page displays correctly with all the products. But then the problem comes back again.

That's a little weird, I'm making some other tests.

Link to comment
Share on other sites

I've been on this problem all the day but couldn't find any solution... 

Here are some clarifications of what I learned by doing some tests :

The problem is that the page doesn't load totally; not just products but also footer as you said, favicon and some css. 

In fact, the problem occurs with EVERY page of the site, even the home page but only the first time we land on the page. If we go on another page after going on any first one, the second one loads correctly but the first one never, no matter the page. Then if we come back on the first page and refresh it, the first one displays correctly also.

I tried to restore the latest changes made to the site, disable some modules, clear all cache... But I couldn't find a solution. In my different browsers (Chrome, Edge, Firefox, Opera) it works fine so I need to use a software testing site to see the problem and it's a little complicated.

  • Like 1
Link to comment
Share on other sites

Thank you musicmaster, I made what you said and it helped me to search for the problem.

I've been on this days and nights and I've just found the cause: it comes from a file added by my theme owner in order to speed up my site. The file is added to ApPageBuilder module (module used to configure the whole design and theme of my site) : /modules/appagebuilder/libs/LeoOptimization.php

I didn't know this file was added, I just deleted it until I contact him to correct it. Now the site displays well (but is slow since the file was used to speed up the site).

I would be grateful if you could check if it displays well for you now.

Now I still have the issue of faceted search and special characters...

Edited by AureAure (see edit history)
Link to comment
Share on other sites

I am afraid that the only thing I can advise you is to use the profiling queries too for solving this by comparing the behavior of queries with and without a slash.

When I look at the link I see https://chwaya.com/en/16-berber-rug?q=Colors-White\/Beige whereby the backslash is encoded as %5C.

Most likely the value is looked up in the table ps_layered_indexable_attribute_lang_value

color.jpg.63273f074b0c0d3a2b78fdd41292ebdb.jpg

Link to comment
Share on other sites

13 hours ago, AureAure said:

Thank you for your help, I'm gonna search for this and keep you informed.

One thing I forgot to mention: this is an ajax call. So you should use the syntax

https://chwaya.com/en/16-berber-rug?q=Colors-Green&from-xhr

when you test this. This is the way it is called in the ajax call. Note that when you have a valid value like "Green" here you get indeed the green carpets. But when you have an invalid value - both "blabla" and "White/Beige" - you will get all 198 carpets.

So things to find out are which query is called and whether the query is made with some variety of "White/Beige" or that it is filtered out before.

Link to comment
Share on other sites

Hi again,

I finally found this post on the forum : 

 

It doesn't solve the cause of the problem but it let me have a solution.

So in my feature values I just replaced the "/" by "/" and the "-" by "﹣" which are similar but different characters, and it works like that. If someone has the same problem, just copy/past the second characters and don't use your keyboard.

Thank you again musicmaster and William for your precious help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...