Don't throw exception to hide empty blocks

Created on 21 March 2014, almost 11 years ago
Updated 22 December 2024, 17 days ago

All my pages (350000+) have a block with two quicktabs at the bottom.
I've set the tabs to be hidden when there's no content in them.
Only a couple of hundred pages actually have content in one or both of the tabs.

This results in an InvalidQuickSetException to be thrown from Quickset->prepareContents for almost all my pageviews.
And in watchdog an entry 'There are no contents to render.', quickly filling up the logs.

Surely there must be a better way to hide a block when no tabs have content in them than to throw and log an exception?

✨ Feature request
Status

RTBC

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands JvE

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