This is likely caused by discourse-content-locker which has been in broken status for over two years now. You might want to try the guest-gate plugin which has been forked from the content-locker plugin.
5 Likes