Skip to content

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

@Mai-Saad

Description

@Mai-Saad

Slack thread

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:

  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

  • 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)
    Screenshot from 2023-11-02 10-27-46

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions