We just ran into this without any changes to a site. We applied the null-check for now, but I'm going to try taking the site local this weekend to see if I can get a better repro.
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.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
We just ran into this without any changes to a site. We applied the null-check for now, but I'm going to try taking the site local this weekend to see if I can get a better repro.