- Issue created by @SirClickALot
- π¬π§United Kingdom aaron.ferris
aaron.ferris β made their first commit to this issueβs fork.
- Merge request !29Issue #3446533: check for configured file extensions config before exploding β (Open) created by aaron.ferris
- π¬π§United Kingdom aaron.ferris
Seems this config can be empty, so ive added a check for that. We may be able to get away with one of the $extensionsToAbortOn conditions further down?
- Status changed to Needs review
11 months ago 12:49pm 11 May 2024 - First commit to issue fork.
- π©πͺGermany Anybody Porta Westfalica
@aaron.ferris thanks! I think we can do this a bit smarter, could you please check MR!32? Does it fix the issue?
- π¬π§United Kingdom aaron.ferris
Thanks @anybody, ill check it out when I can grab 5!
- π¬π§United Kingdom aaron.ferris
Tried that change, seeing the following:
The website encountered an unexpected error. Try again later. TypeError: explode(): Argument #2 ($string) must be of type string, array given in explode() (line 484 of modules/contrib/search404/src/Controller/Search404Controller.php).
Could be my setup, originally when looking at this I assumed
search404_deny_specific_file_extensions
is unset for users upgrading based on the error specifically stating 'null' for parameter 2.We could maybe have something like:
$extensionsToAbortOn = explode(' ', $this->config('search404.settings')->get('search404_deny_specific_file_extensions') ?? '');
However, this means we get an array of an empty string and thus
if (!empty($extensionsToAbortOn)) {
fires when we don't want to - π©πͺGermany Anybody Porta Westfalica
@aaron.ferris sorry, my (stupid) mistake! Corrected!
- π¬π§United Kingdom aaron.ferris
Thanks @anybody, that looks ok to me, resolves the issue in the OP.
-
anybody β
committed 18de3aaf on 2.x
Issue #3446533 by anybody, aaron.ferris: PHP decprecation causing module...
-
anybody β
committed 18de3aaf on 2.x
- π¬π§United Kingdom SirClickALot Somerset
I can confirm that release
2.2.0-rc2
solves the original issue that I raised here.
Thank you. Automatically closed - issue fixed for 2 weeks with no activity.