Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Errors after upgrade to PHP 8.1 #55

Open
krishaamer opened this issue Jan 16, 2022 · 1 comment
Open

Errors after upgrade to PHP 8.1 #55

krishaamer opened this issue Jan 16, 2022 · 1 comment

Comments

@krishaamer
Copy link

krishaamer commented Jan 16, 2022

Hi, I'm getting this PHP Warning:

Undefined array key "file" in /plugins/fly-dynamic-image-resizer/inc/class-core.php on line 261

$fly_file_path = $fly_dir . DIRECTORY_SEPARATOR . $this->get_fly_file_name( basename( $image['file'] ), $width, $height, $crop );

@junaidbhura
Copy link
Owner

Hey @krishaamer thanks for this issue. I'm more concerned about why there is no file within $image than the warning itself. It is right to throw a warning, since file should be in there.

Do you think you could do a var_dump of $image and share it here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants