添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Announcement icon Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Closed (fixed)
Project:
Advanced Views RSS Feed
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Sep 2023 at 14:37 UTC
Updated:
8 Oct 2023 at 12:29 UTC

Problem/Motivation

When using a database backup from a different environment, referenced files may be missing from the file system. This produces PHP warnings:

Warning: filesize(): stat failed for /[...]/sites/default/files/styles/image_770x510/public/ub_uithof_studerende_jongen_tussen_boekenkasten-1600x1067.jpg in views_rss_media_preprocess_item_content()

Proposed resolution

Add a sanity check before checking the file size.

Remaining tasks

  • Write a patch
  • Review
  • Commit
  • User interface changes

    None.

    API changes

    None.

    Data model changes

    None.

    Check makes sense and fixes the warnings. Might be nice to put this in a service and not repeat the logic, but since this module doesn't have services at the moment that might be a little out of scope

    Committed. Thank you both.

    Comment File Size Author
    #2 3386146-2.patch 2.47 KB idebr
    Status: Reviewed & tested by the community » Fixed
    Parent issue: » #3373901: Plan for Advanced Views RSS Feed 8.x-2.2