The plugin doesn’t work for me in WP 6.1
(tested on WAMP so far, PHP8.0). Nor the filter alone that other sources suggest:
add_filter( 'wp_upload_image_mime_transforms', '__return_empty_array' );
Please advise how to fix this.
]]>Just to inform, latest update fatal error …
[26-Aug-2022 22:17:10 UTC] PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method DreamEncode\Disable_WebP_By_Default\Inc\Disable_WebP_By_Default::disable_webp_settings() cannot be called statically in /home/customer/*********/public_html/wp-includes/class-wp-hook.php:307
Stack trace:
#0 /home/customer/*********/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
#1 /home/customer/*********/public_html/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#2 /home/customer/*********/public_html/wp-admin/admin.php(175): do_action('admin_init')
#3 /home/customer/*********/public_html/wp-admin/plugins.php(10): require_once('/home/customer/...')
#4 {main}
thrown in /home/customer/*********/public_html/wp-includes/class-wp-hook.php on line 307
]]>
Installed plugin in local dev sandbox multisite instance.
Plugin version 0.3.0
Gutenberg plugin version 13.9.0
WordPress version 6.1-alpha-53916
Theme: Blockbase 3.0.5
Observations:
1. Plugin would not let me enable on a site-by-site basis; it had to be network activated. Having the option of network activation is fine, but in the longer term I can imagine wanting to use it on selected sites. Is there a plan for this?
2. I was actually unable to upload new image files to the media library; no matter how small the filesize was (down to 50 kb!), I got: “Media upload failed. If this is a photo or a large image, please scale it down and try again.” Activity logs say the file was uploaded and then immediately deleted. I’m not seeing anything in error logs.
When I disabled the plugin, uploads were normal. Due to the nature of how my users use WP, I tend to have filesize upload limits boosted up fairly high.
Marking this as “not a support question” because I’m mostly just providing feedback; will be keeping an eye on development! Good luck!
]]>Hello plugin test by installing Performance Lab extension on my test site.
Disabling Webp by default works for thumbnails but not for the original image which is also created in webp format.
Do you have a solution?