Problem/Motivation

Deprecated function: rtrim(): Passing null to parameter #1 ($string) of type string is deprecated in stage_file_proxy_get_file_remote_url() (line 285 of /var/www/sites/all/modules/stage_file_proxy/stage_file_proxy.module).

Steps to reproduce

View the dblog

Proposed resolution

Create a variable with fallback and pass it into rtrim

CommentFileSizeAuthor
#2 3306048-php-8.1-deprecated-1.patch693 bytesmirakolous

Comments

Mirakolous created an issue. See original summary.

mirakolous’s picture

StatusFileSize
new693 bytes

Patch fix

markdorison’s picture

Status: Active » Needs review
markdorison’s picture

Status: Needs review » Reviewed & tested by the community

  • markdorison committed 98960a3 on 7.x-1.x
    Issue #3306048 by Mirakolous: PHP 8.1 Deprecated function: rtrim():...
markdorison’s picture

markdorison’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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