Deprecated function: md5(): Passing null to parameter #1 () of type string is deprecated in imagecache_external_generate_path().

Created on 14 March 2024, 8 months ago
Updated 14 April 2024, 7 months ago

Problem/Motivation

The imagecache_external_generate_path function in the Imagecache External module triggers a deprecated warning when the `$url` parameter is null or empty. This can lead to confusion and potential issues for developers using the module.

Steps to reproduce

1. Call the imagecache_external_generate_path function with a null or empty $url parameter.
2. Observe the deprecated warning being triggered.

Proposed resolution

Modify the imagecache_external_generate_path function to handle null or empty $url parameters gracefully, without triggering a deprecated warning.

Remaining tasks

- Implement the proposed resolution. [done]
- Test the function with both null and empty string $url parameters to ensure it behaves as expected.[done]
- Document the changes in the codebase and update any relevant documentation. [done]

User interface changes

N/A (Not applicable)

API changes

N/A (Not applicable)

Data model changes

N/A (Not applicable)

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇧🇬Bulgaria ovanes Sofia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024