Problem/Motivation

I setup a plain text field to use as a category, added that field to the rss view and finally selected it as the category in Item elements : core.

Then I got the following message:

Oops, something went wrong. Check your browser's developer console for more details.

php-error acn [14-Jan-2025 13:21:49 America/New_York] Uncaught PHP Exception Error: "Call to a member function toUrl() on bool" at /var/www/html/docroot/modules/contrib/views_rss/modules/views_rss_core/views_rss_core.inc line 268 request_id="v-6b22bf0e-d2a4-11ef-a091-cf1f7edbd39d"

I also switched the rss category to use a term field, the title field, a link field. etc. and no matter what I select in that field, other than none, the feed stops working.

Issue fork views_rss-3499741

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

kcolwell created an issue. See original summary.

idebr made their first commit to this issue’s fork.

idebr’s picture

Version: 8.x-2.3 » 8.x-2.x-dev
Status: Active » Needs review

The item category contains additional logic to add a URL attribute when it uses a term reference field.

Using a field that is not a term reference will now no longer trigger a PHP exception

  • idebr committed f8b1a674 on 8.x-2.x
    Issue #3499741 by idebr, kcolwell: Attempting to use RSS Category...
idebr’s picture

Status: Needs review » Fixed
Parent issue: » #3489246: Plan for Advanced Views RSS Feed 8.x-2.4

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.