Warnings while adding a remote file after switching to PHP 8.0

Created on 1 October 2022, about 2 years ago
Updated 22 April 2024, 7 months ago

After I upped my PHP version to 8.0, I started getting following warnings in the log when adding a remote file:

Warning: Drupal\filefield_sources\Plugin\FilefieldSource\Remote::parseHeader(): Argument #1 ($ch) must be passed by reference, value given in Drupal\filefield_sources\Plugin\FilefieldSource\Remote::value() (line 70 of ***/public_html/web/modules/contrib/filefield_sources/src/Plugin/FilefieldSource/Remote.php)

Warning: Drupal\filefield_sources\Plugin\FilefieldSource\Remote::curlWrite(): Argument #1 ($ch) must be passed by reference, value given in Drupal\filefield_sources\Plugin\FilefieldSource\Remote::value() (line 169 of ***/public_html/web/modules/contrib/filefield_sources/src/Plugin/FilefieldSource/Remote.php)

Apart from the warnings, the functionality is intact.

Steps to reproduce

Just use PHP 8 and try adding a remote file.

Proposed resolution

Install patch #9 from issue 2840594.

Remaining tasks

Commit issue 2840594.

πŸ› Bug report
Status

Closed: duplicate

Component

Source: Remote URL

Created by

πŸ‡·πŸ‡ΊRussia marassa Moscow

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024