wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
69 stars 24 forks source link

PHP Warning: filter_input(): Unknown filter with ID 16777216 when open bulk optimization page while no credit #753

Open Mai-Saad opened 7 months ago

Mai-Saad commented 7 months ago

Before submitting an issue please check that you’ve completed the following steps:

Describe the bug When we open the bulk optimization page while having no credit, Unknown filter warning will exist in debug.log

To Reproduce Steps to reproduce the behavior:

  1. Install and activate 2.1.2 of imagify (using site with large number of images)
  2. activate bulk optimization
  3. once the quota is finished
  4. open the bulk optimization page and refresh

Expected behavior No warning in debug.log

Screenshots If applicable, add screenshots to help explain your problem. [02-Nov-2023 08:26:11 UTC] PHP Warning: filter_input(): Unknown filter with ID 16777216 in /var/www/new.rocketlabsqa.ovh/htdocs/wp-content/plugins/imagify/classes/Bulk/Bulk.php on line 561

Additional context

Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming

Mai-Saad commented 7 months ago

Note: The warning in debug.log is also displayed for infinite license steps: 1- using an infinite license (v.2.1.3) 2- add the theme to optimization 3- save and go to bulk optimization 4- Click Imagify all 5- refresh the page after the progress bar gets hidden => check debug.log (we may need to repeat this step multiple times)