- π¬π§United Kingdom rossb89 Bristol
I've changed the check to use a preg_replace ensuring the base_path() is at the start of the string (a bit safer than just the str_replace).
For version 2.0.6.
- π¨πSwitzerland phma Basel, CH
#17 fixes the issue for me also. I agree that ajax_query should not include the base path in the first place. But with π Facets with AJAX not working in most of situations Needs review not yet fixed, it's nice to have a minimal solution which does not interfere.
- π¬π§United Kingdom jamiep
I'm not sure if this was caused by something specific to our multisite setup, #17 didn't work for us.
In our case, base_path() is coming through as '/uk/', and $path is an absolute URL including the host and scheme (https://site.example)
As such, $path does not start with /uk/, so the regex doesn't replace anything.
Uploading a new patch to handle as absolute URLs.
- π¨π¦Canada joseph.olstad
Patch 19 looks like it'll cover more use cases.
- last update
12 months ago Patch Failed to Apply - Status changed to RTBC
10 months ago 3:07pm 6 March 2024 - π§πͺBelgium BramDriesen Belgium π§πͺ
Patch #19 also fixed this issue for us for a website living on a subfolder.
- Merge request !180ResourceNotFoundException with ajax facets when site running in subfolder fix β (Open) created by rollins
-
borisson_ β
committed 873e509e on 2.0.x
Issue #3046872 by olivier.br, rollins, Santhosh-Kumar-Rengasamy, claudiu...
-
borisson_ β
committed 873e509e on 2.0.x
- Status changed to Fixed
10 months ago 12:12pm 8 March 2024 - πΊπ¦Ukraine rollins
patches from guys resolved individual errors, but they did not resolve all cases
for example #17 patch resolves the bug with Ajax facets, but if the page includes a view text filter, it will show the same error as for facets#19 patch resolves bug with view text filter, but does not handle with facets
so I merged these patches and created MR for it
This will handle all casesnote:
I was able to create MR only for 2.0.x version, there are no other options for now
so currently this MR can not be applied to check 2.0.6 version
I will attach the patch - Status changed to Needs review
9 months ago 3:25am 11 March 2024 - π¨π¦Canada joseph.olstad
review for the latest patch (@rollins , please create a new Merge Request for this)
- πΊπ¦Ukraine rollins
@joseph.olstad, Merge Request already attached to this issue
https://git.drupalcode.org/project/facets/-/merge_requests/18
@borisson_ committed this on 2.0.x - Status changed to RTBC
9 months ago 4:02pm 13 March 2024 - π§πͺBelgium kriboogh
Added the patch for the MR!180 as it stands now to use in composer.
- Status changed to Needs work
4 months ago 9:16am 9 August 2024 - π§πͺBelgium borisson_ Mechelen, π§πͺ
I created a new MR that includes all fixes, also I replaced str_contains with strpos,
because not all websites support this (str_contains only exists in php8)Hard disagree. Please use str_contains instead. https://github.com/symfony/polyfill-php80 will ensure everyone can use this.
- π¨π¦Canada joseph.olstad
Safe to say we can rely on php8 +, php 7.4 is officially unsupported by Symfony based Drupals. This module is for D10/D11 not D8.
Therefore, I have no objection to the objection. With that said, I'm ok with strpos. I myself am hooked on strpos but str_contains is far easier to understand and reads better.With that said, the pipeline is currently failing, would appreciate some assistance fixing that.
- First commit to issue fork.
- π¬π§United Kingdom malcomio
We ran into this problem after switching from a patched version of 2.0.x-dev at commit 3e6c1ea7 to 2.0.9.
It's an odd issue, as it only seems to happen for anonymous users without any cookies from our site, and only on our (acquia) hosting, not on local dev environments.
MR 180 doesn't seem to have any changes any more.
One thing we will try is catching the
ResourceNotFoundException
and throwing aNotFoundHttpException
- π¬π§United Kingdom malcomio
The issue we are seeing is addressed in π ResourceNotFoundException on 404 pages Active
The change in MR180 was committed during π Point support > source at project page in composer.json Fixed for whatever reason. So this issue is released in 2.0.9. Not sure what to do with the status so I'll put it into RTBC and hope credit is given eventually I guess.
- π§πͺBelgium borisson_ Mechelen, π§πͺ
if it is already comitted, I can set this to fixed.
- Status changed to Fixed
about 1 month ago 7:24am 7 November 2024 Automatically closed - issue fixed for 2 weeks with no activity.