Uncaught TypeError: Cannot read properties of null (reading 'bypass')

Created on 13 December 2022, about 2 years ago
Updated 4 December 2024, 14 days ago

Problem/Motivation

Javascript error in tarteaucitron.js when tarteaucitron.user is null:

Uncaught TypeError: Cannot read properties of null (reading 'bypass')

Related code causing the crash (line 868):

        // allow by default for non EU
        if (isResponded === false && tarteaucitron.user.bypass === true) {

Proposed resolution

We should create an empty user if not provided by drupalSettings.

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇫🇷France mably

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