TypeError: Unsupported operand types: null + array in _tableofcontents_replace_headers

Created on 21 July 2023, over 1 year ago

Problem/Motivation

Warning: Undefined array key "back_to_top" in
theme_tableofcontents_back_to_top() (line 234 oftableofcontents/tableofcontents.themes.inc). .

And
TypeError: Unsupported operand types: null + array in _tableofcontents_replace_headers() (line 54 of tableofcontents/tableofcontents.inc).

Steps to reproduce

Cron + searchapi indexing the entire rendered full page seemed to do the trick

Proposed resolution

Check if the tableofcontents_toc() has got anything before it used.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada joelpittet Vancouver

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

Comments & Activities

Production build 0.71.5 2024