TypeError on homepage: Argument 1 passed to Drupal\protected_pages\EventSubscriber\ProtectedPagesSubscriber::protectedPagesIsPageLocked() must be of the type string, null given

Created on 2 June 2021, over 3 years ago
Updated 20 April 2023, over 1 year ago

I have Protected Pages enabled and configured to Allow per page password. This seems to cause this TypeError to happen on the homepage for anyone without the bypass pages password protection permission.

The website encountered an unexpected error. Please try again later.
TypeError: Argument 1 passed to Drupal\protected_pages\EventSubscriber\ProtectedPagesSubscriber::protectedPagesIsPageLocked() must be of the type string, null given

The reason seems to be that the value of the current path in ProtectedPagesSubscriber::checkProtectedPage() is NULL, but the function it's being passed to expects a string.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gantal

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024