humanmade / humanmade/asset-manager-framework

fix_intermediate_size_url() fatals when WordPress returns false for a missing image size

Open Beginner friendly
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
188
Forks
6
Avg merge
6d 21h
Merged PRs (30d)
1

Description

PHP Fatal error: Uncaught TypeError: AssetManagerFramework\fix_intermediate_size_url(): Argument #1 ($data) must be of type array, false given, called in /usr/src/app/wordpress/wp-includes/class-wp-hook.php on line 343 and defined in /usr/src/app/content/plugins/asset-manager-framework/inc/namespace.php:404

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in inc/namespace.php around fix_intermediate_size_url() at line 404, then inspect how WordPress invokes it from class-wp-hook.php. Reproduce the missing image-size case and confirm the function no longer fatals when WordPress supplies false instead of an array.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.