help page giving WSOD

Created on 24 November 2023, 12 months ago
Updated 1 December 2023, 12 months ago

Problem/Motivation

Accessing the help page from module list will give WSOD with an error in the log:

TypeError: strpos(): Argument #1 ($haystack) must be of type string, Drupal\Core\Link given in strpos() (line 401 of /var/www/html/web/core/lib/Drupal/Component/Utility/UrlHelper.php).

Steps to reproduce

Access the help page of tac_lite from the module list

Proposed resolution

Correct the Link::fromTextAndUrl to the string while doing it in placeholder.

🐛 Bug report
Status

RTBC

Version

1.7

Component

Code

Created by

🇮🇳India mukhtarm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @mukhtarm
  • Status changed to Needs review 12 months ago
  • 🇮🇳India mukhtarm

    Please review the patch. Thanks

  • Status changed to RTBC 12 months ago
  • 🇵🇭Philippines kenyoOwen

    Hi MukhtarM

    I reproduced the issue and applied and tested your patch #2 and it resolved the issue of WSOD on help page. Please look at the screenshot I attached for your reference.

    Thank you

  • 🇮🇳India vinmayiswamy

    Verified and tested patch #2 in Drupal 10.1.x.


    Patch applied successfully.

    Testing steps :-
    1. Go to Drupal 10.1.x fresh installation.

    2. Install & enable Taxonomy Access Control Lite module.

    3. Apply the patch #2.

    4. Clear cache.

    5. Access the Help page in /admin/help/tac_lite

    Result :- Able to access the Help page in /admin/help/tac_lite after applying the patch.


    Adding screenshots for reference.

Production build 0.71.5 2024