-
Notifications
You must be signed in to change notification settings - Fork 27
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
FILTER_SANITIZE_STRING deprecation notice with PHP 8.1 #721
Comments
similar error also occurs: Same steps to reproduce, except when visiting |
Can see this error (while AS tables are deleted) , using PHP 8.1 latest and fresh install/activation of imagify (trunk 2.1.1) |
Fixes #721 Replace usage of `FILTER_SANITIZE_STRING`
@Tabrisrp I found a couple of issues related to #722: [22-Jun-2023 09:10:03 UTC] PHP Warning: Undefined array key "orderby" in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-list-table.php on line 102
[22-Jun-2023 09:10:03 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-list-table.php on line 102
[22-Jun-2023 09:10:03 UTC] PHP Warning: Undefined array key "order" in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-list-table.php on line 103
[22-Jun-2023 09:10:03 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-list-table.php on line 103
[22-Jun-2023 09:36:45 UTC] PHP Warning: Undefined array key "status-filter" in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-list-table.php on line 1034
[22-Jun-2023 09:36:45 UTC] PHP Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/example.com/htdocs/wp-content/plugins/imagify-plugin/inc/classes/class-imagify-files-list-table.php on line 1034 To reproduce:
Can you please look into these? 🙏 |
@Tabrisrp What do you think it'll be effort for this one? |
kind reminder |
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
To Reproduce
Steps to reproduce the behavior:
/wp-admin/upload.php
debug.log
.Expected behavior
No deprecation notices should be there when using Imagify with PHP 8.1.
Additional context
FILTER_SANITIZE_STRING
is used in other places in Imagify's code. Those should be tackled as well.Backlog Grooming (for WP Media dev team use only)
The text was updated successfully, but these errors were encountered: