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.

Comments

MukhtarM created an issue. See original summary.

mukhtarm’s picture

Status: Active » Needs review
StatusFileSize
new2.55 KB

Please review the patch. Thanks

kenyoowen’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new444.3 KB

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

vinmayiswamy’s picture

StatusFileSize
new42.63 KB
new532.77 KB

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.

vinmayiswamy’s picture

+1 RTBC

  • vladimiraus committed a72ce185 on 8.x-1.x
    Issue #3404007 by mukhtarm, vinmayiswamy, kenyoowen: help page giving...
vladimiraus’s picture

Version: 8.x-1.7 » 8.x-1.x-dev
Status: Reviewed & tested by the community » Fixed
Issue tags: -

Thank you. Committed. 🎂

  • vladimiraus committed a72ce185 on 2.0.x
    Issue #3404007 by mukhtarm, vinmayiswamy, kenyoowen: help page giving...

Status: Fixed » Closed (fixed)

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