🇧🇪Belgium @kwinten-hardies

Vlaams-Brabant
Account created on 24 November 2022, about 2 years ago
#

Recent comments

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

Looks like this is still the case with Drupal 11.0.1 too. I just tested this on a standard install of Drupal 11 with only media en media_browser enabled as extra.
When filtering and paginating, the query parameters are duplicated. resulting in a "request URI too long" error on our firewall.

From 10.2.3 onwards this is a problem for all our site's. I found a lot of issues regarding this but all proposed solutions do not work.
Could this be a nginx problem? But I tried this on a docker-drupal setup with apache and it's the same there.

I just don't know where to look in ajax code. Please advise. Thank you.

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

@gwvoigt, what patch did you applied for Drupal 10.2.7? Thank you

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

I have the same issue as @useernamee that the query parameter is too long. Ajax query parameters are duplicated on each request. Media browser popup with an exposed filter active and going to page 2 triggers the web application firewall error that the request entity is too long. This is also with a clean core install of Drupal 10.2.7 and besides media and media browser no extra other modules installed. I have that issue on local machine too. Browsed trough all of the issues about that but no luck finding a working patch. Please advise.

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

I have the same issue as #56 🐛 Query string is appended multiple time after each AJAX request Needs work on 10.2.5. The query parameters are duplicated and is too long for our WAF policy.

I am not using facets module.

Patches I have tried:

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

I am using version 8.x-1.3 with php version 8.1.10 and Drupal core 9.5.8. The x-Frame-Options is always set as SAMEORIGIN. No matter what setting I use in the module.

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

Hi

Can you provide an example of updating facet fields based on form states with ajax? I am using the FacetsManager class.
Saying you have a facet id "job_type". and based on that value, the location will change.

I can't seem to figure it out. My code gives an error "Call to a member function getFacetSourceId() on string"

<?php
$facetsource_id = 'search_api:views_page__job_search__page_1';
$jobDefault = 'Administrator';
        $facets = $this->facetsManager->getFacetsByFacetSourceId($facetsource_id);
        if($jobDefault) {
            $this->facetsManager->setFacets(['job_type' => $jobDefault]);
        }
        $this->facetsManager->updateResults($facetsource_id); // Gives an error in the facet Class "DefaultFacetManager".  "Call to a member function getFacetSourceId() on string"
?>

Above code lives in buildForm method.

My FacetManager is correctly declared.
I have also a declaration of "FacetsUrlGenerator". But I have no idea what to do with it.

How can I retrieve the correct facet values for both job_type and location?
Thank you.

🇧🇪Belgium kwinten-hardies Vlaams-Brabant

I have the same error as #110 🐛 Error generating document: Failed to generate PDF with DOMPDF Needs work With patch from 118 and entity_print 2.11 and dompdf v1.2.2 as v2.0.1. But even with dompdf v2.0.1 it's not working.

Production build 0.71.5 2024