When We choose a taxonomy in facetapi block, we will face with “An AJAX HTTP error occurre.
HTTP Result Code: 414
Debugging information follows.
Path: /en/ajax/ajax_facets/refresh/
StatusText: Request-URI Too Large
ResponseText:
414 Request-URI Too Large
Request-URI Too Large
The requested URL's length exceeds the capacity
limit for this server.” error message.
I am using from 7.x-3.x-dev Ajax facets
And also drupal commerce. Also adjust and install 3.6.2 version of apache solr.
First I thought it was the drupal commerce problem but I found a same module in the other place(https://github.com/drupalsib/ajax_facets) which works with Ajax correctly, but It is the only objection when we are using from pager, we face with this error for going to the next page.
I will thankful for your guiding in this way.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

eugene.ilyin’s picture

Hello.

First I thought it was the drupal commerce problem but I found a same module in the other place(https://github.com/drupalsib/ajax_facets)

Yes it's same module, but it's old version.

Seems I solved your problem. Please check fresh 7.x-3.x version.

eugene.ilyin’s picture

Status: Active » Fixed

  • eugene.ilyin committed 02e3328 on 7.x-3.x
    Issue #2290721 HTTP Result Code: 414 on Drupal commerce
    
majid jafari’s picture

FileSize
1.01 KB

hi @eugene.ilyin
Thank you for developing this module and add to address my problem.
The previous problem was solved,but this time 2 another problem occurred.
After installing and enablining this fresh version,when i go to "Configure display" of facet block, i see "Fatal error: Class 'FacetapiEmptyBehaviorAjaxFacets' not found in ...\profiles\commerce_kickstart\modules\contrib\facetapi\facetapi.admin.inc on line 512"( my facet_api version 7.x-1.5).
so i comment "ajax_facets_facetapi_empty_behaviors" function in ajax_facet.module and then select Display widget "Ajax multiple checkboxes" and insert "

" in Empty facet behavior .
in my views when i select an facet, although there content and show count of term name(for example TV (5) ) but It does not change anything and show "Found null" tooltip :(
( I tried it with "Update results by ajax" in Configure display as well as,but there was no difference)

majid jafari’s picture

Status: Fixed » Needs work
majid jafari’s picture

Status: Needs work » Needs review
eugene.ilyin’s picture

I updated code, can you try again?

eugene.ilyin’s picture

Status: Needs review » Needs work
majid jafari’s picture

first problom, " Fatal error: Class 'FacetapiEmptyBehaviorAjaxFacets' " was solved,but It does not change anything and show "Found null" tooltip.

eugene.ilyin’s picture

I'll check it in soon time.

majid jafari’s picture

Thank you

eugene.ilyin’s picture

I cannot reproduce it. Looks like query to solr is broken. I can see your site online?

majid jafari’s picture

Ok,just wait as long as I'm creating an online site(It takes a few days)

eugene.ilyin’s picture

Any news?

majid jafari’s picture

Im sorry due to delays caused.
Please give me your email for send to you site and cpanel user&pass

eugene.ilyin’s picture

Please, use contact form on my profile page https://www.drupal.org/u/eugene.ilyin

majid jafari’s picture

Sent,Please check

eugene.ilyin’s picture

Strange, but I don't got letter. You can send it to ilyin.eugene on gmail.com

majid jafari’s picture

Sent to you from majid.jafari9 on gmail.com

eugene.ilyin’s picture

Thank you. I'll try to check it today

majid jafari’s picture

Your welcome
Please note,this server is valid for 3 or 4 days

datis_m’s picture

I have same problem in drupal commerce,any body can solve this?

eugene.ilyin’s picture

>I have same problem in drupal commerce,any body can solve this?

It's hard for debugging, because site with commerce can have very varied configuration. Can you check ajax_facets with any Drupal commerce build? For example Comerce Kickstart. It will be very helpfull.

datis_m’s picture

Perhaps I'm a used Comerce Kickstart

eugene.ilyin’s picture

Need more specifics. Because it sounds too abstract "ajax facets is not working on my site with commerce".

datis_m’s picture

You're right,Ok
But can you resolve this issue or I will must remove this facility from my shop?

eugene.ilyin’s picture

The best way is help me detect this problem. I'll try to check it with commerce kickstart, but I'm not sure that it will be reproduced.

eugene.ilyin’s picture

Status: Needs work » Fixed
FileSize
110.03 KB
16.56 KB
103.71 KB
27.68 KB

So, I found reason of problem. It's not a bug. It's just configuration.

How you can solve it:
1. Set facet operator "OR"

menu

OR

2. Disable filter "Do not display active items"

menu

filter

Can somebody check that it helps?

majid jafari’s picture

When we use the Search api without solr ,acts properly.
But when used Solr and Search api,facets block will hide after a filter and cant filter anything.

eugene.ilyin’s picture

Status: Fixed » Needs work

I'll check it in few days. This problem reproduced on commerce kickstart, but with Solr?

majid jafari’s picture

Maybe this problem reproduced on commerce kickstart with solr,because I check it with Search api and acts properly

eugene.ilyin’s picture

You mean that I should use search_api_solr instead search_api_db, to reproduce problem, right?

majid jafari’s picture

Yes I think.

  • eugene.ilyin committed 84b4445 on 7.x-3.x
    Issue #2290721 by majid jafari: HTTP Result Code: 414 on Drupal commerce
    
eugene.ilyin’s picture

Status: Needs work » Fixed

Solved. Please try dev version.

P.S. Seems there are problem with OR mode for facets. But it's problem of the new version of search_api_solr.

majid jafari’s picture

Status: Fixed » Needs work
majid jafari’s picture

FileSize
121.12 KB

Yes it work,thank you(Image was uploaded by mistake)

majid jafari’s picture

Status: Needs work » Fixed
majid jafari’s picture

eugene.ilyin’s picture

Nice. Thank you all guys for help

majid jafari’s picture

You're welcome
But how to add "Throbber"?
I used your solution https://www.drupal.org/node/2337581#comment-9153121 but that did not work.is that has special configuration ?

eugene.ilyin’s picture

Let's discuss in that https://www.drupal.org/node/2337581 issue

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.