imagify-plugin
imagify-plugin copied to clipboard
PHP Warning: filter_input(): Unknown filter with ID 16777216 when open bulk optimization page while no credit
Before submitting an issue please check that you’ve completed the following steps:
- Made sure you’re on the latest version => 2.1.2
- Used the search feature to ensure that the bug hasn’t been reported before
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:
- Install and activate 2.1.2 of imagify (using site with large number of images)
- activate bulk optimization
- once the quota is finished
- 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
- Probably related to the fact that progress bar is still working in the background and once we refresh it will appear (notice the 5% here)
Acceptance Criteria (for WP Media team use only) Clear instructions for developers, to be added before the grooming
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)