Project

General

Profile

Actions

Bug #18411

closed

News not showing on home page

Added by Laurie Hurson 11 months ago. Updated 11 months ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Home Page
Target version:
Start date:
2023-06-26
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

HI All,

I just noticed that the "latest news" section on the logged in home page is not showing any posts. See screenshot. Perhaps this is because the posts are older than ~ 6 months? Is this intended behavoir? I wanted to flag it in case this is a bug.

Thanks,
Laurie


Files

Actions #1

Updated by Boone Gorges 11 months ago

  • Category name set to Home Page
  • Status changed from New to Resolved
  • Assignee set to Boone Gorges
  • Target version set to 2.1.9

Thanks for point this out, Laurie.

The Latest News Posts section works by fetching latest posts using the WP REST API, which returns a JSON object representing the posts. On one of the Commons news sites, the feedwordpress plugin was printing a "critical bug" notice, which was causing the JSON object to be invalid. I didn't dig deep into the FWP issue; it appears to have something to do with the parsing of a specific feed, which is certainly problematic but definitely doesn't mean that it should print a message on every pageload. I have silenced this part of FWP https://github.com/cuny-academic-commons/cac/commit/e5de1a3b85f705b262eda312aa6aac9b7d8543d9 and flushed the site transient, and the Latest News Posts section is now populating as expected.

Actions #2

Updated by Laurie Hurson 11 months ago

looks good, thanks!

Actions

Also available in: Atom PDF