PHP warning if extension not present - optimized_assets_proxy_restore_file

Created on 26 October 2023, 8 months ago

Problem/Motivation

Error message:
Undefined array key "extension" in optimized_assets_proxy_restore_file called at /code/web/modules/contrib/optimized_assets_proxy/src/EventSubscriber/MissingAsset.php (74)
 /in Drupal\optimized_assets_proxy\EventSubscriber\MissingAsset::findAndWrite called at ? (?)
in call_user_func called at /code/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php (111)

Steps to reproduce

Example path to handle: /sites/default/files/js/js_eUgcD6GynsW5mLBvwPcF5-tqpeP8MHTTiUvBVEW3LvU.js%22

Proposed resolution

Check if the "extension" key is present.

Remaining tasks

-

User interface changes

-

API changes

-

Data model changes

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary Aron Novak Hungary, Budapest

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

Comments & Activities

Production build 0.69.0 2024