Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When webp_uploads_prefer_smaller_image_file is set to true, an undefine error occurs #396

Closed
mukeshpanchal27 opened this issue Jun 28, 2022 · 0 comments · Fixed by #397
Closed
Assignees
Labels
[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken

Comments

@mukeshpanchal27
Copy link
Member

Bug Description

It generate undefine variable error when webp_uploads_prefer_smaller_image_file is set to true.
#7 (comment)

Steps to reproduce

  1. Add add_filter( 'webp_uploads_prefer_smaller_image_file', '__return_true' ); in theme or plugin
  2. Upload image from this comment
  3. See error

Error Message

Notice: Undefined variable: size_data in /var/www/html/wp-content/plugins/performance/modules/images/webp-uploads/load.php on line 484

Additional Context

  • PHP Version: 7.4.30
  • OS: Windows 10
  • Browser: Chrome
  • Plugin Version: 1.2.0
  • Device: Desktop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Plugin] Modern Image Formats Issues for the Modern Image Formats plugin (formerly WebP Uploads) [Type] Bug An existing feature is broken
Projects
None yet
1 participant