Problem/Motivation

When upgrading to version 3.1.4 the images stop to work as the path is pointing to the local environment.

Steps to reproduce

Upgrade to the latest version.
Run "drush cr"
Reload the site.

In the log:
"Source image at public://2023-12/Homepage-International-Cooperation-991px.jpg not found while trying to generate derivative image at public://styles/oe_theme_medium_no_crop/public/2023-12/Homepage-International-Cooperation-991px.jpg." (screenshot attached).

Proposed resolution

When downgrading to version 3.1.3 the images start to work.

Is anyone else facing similar issues?

CommentFileSizeAuthor
Screenshot 2025-02-23 at 15.15.13.png65.33 KBjakubmroz
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

jakubmroz created an issue. See original summary.

smustgrave’s picture

Version: 3.1.4 » 3.1.x-dev
Priority: Critical » Major
Status: Needs review » Needs work

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

piotrsmykaj’s picture

Status: Needs work » Needs review

To reproduce the issue, you need to have the website located in a subdirectory, ex. http://host.com/subdirectory. The issue is inside method DownloadManager->filePublicPath() because basePath is missing in the path. MR with the fix created.

smustgrave’s picture

Status: Needs review » Fixed

Fine with this change

Status: Fixed » Closed (fixed)

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