TypeError: trigger_error(): Argument #2 ($error_level) must be of type int, string given in trigger_error()

Created on 18 December 2025, 26 days ago

Problem/Motivation

Modules that use the getCountNewComments function (for example, Forum) give an error

TypeError: trigger_error(): Argument #2 ($error_level) must be of type int, string given in trigger_error()

Steps to reproduce

Install Forum (for example), navigate to default forum (general discussion). See WSOD.

Proposed resolution

Fix $error_level type from string to int

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

comment.module

Created by

🇧🇾Belarus ivnish

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

Merge Requests

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