marquisite
Well-known member
- Affected version
- XFMG 2.1.4
With debug mode enabled, a template error relating to XFMG\Entity\Rating is generated when viewing What's new -> Lastest activity.
Template public:news_feed_macros: Could not determine content visibility; defaulted to true - please override (src/XF/NewsFeed/AbstractHandler.php:56)
A portion of the stack trace:
In addition, when a media item is in a soft deleted state, the news feed item styling for a media rating is inconsistent with a standard media comment:
Template public:news_feed_macros: Could not determine content visibility; defaulted to true - please override (src/XF/NewsFeed/AbstractHandler.php:56)
A portion of the stack trace:
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Could not deter...', '/volume1/web/xf...', 56, Array)
#1 src/XF/NewsFeed/AbstractHandler.php(56): trigger_error('Could not deter...', 512)
#2 src/XF/Entity/NewsFeed.php(49): XF\NewsFeed\AbstractHandler->contentIsVisible(Object(XFMG\Entity\Rating), NULL)
#3 [internal function]: XF\Entity\NewsFeed->isVisible()
In addition, when a media item is in a soft deleted state, the news feed item styling for a media rating is inconsistent with a standard media comment: