PHP >= 8.0 fatal errors
-
Hi,
I have your plugin running on some sites with PHP 8.2 with no issues.
On another, I’m getting fatal errors that the class EWWWIO_GD_Editor isn’t a valid callback.
It happens when any plugin or theme calls the wp_enqueue_media() function in the admin. If I comment that out then the admin loads but those plugins and themes are broken (Mostly commercial, revslider, newspaper theme and a custom plugin).
If I disable ewww then everything works.
This happens with any PHP version from 8.0 up.
General stack trace:
[19-Jun-2023 21:25:23 UTC] PHP Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, class "EWWWIO_GD_Editor" not found in path\wp-includes\media.php:3934
Stack trace: 0 path\wp-includes\media.php(3905): _wp_image_editor_choose(Array) 1 path\wp-includes\media.php(4019): wp_image_editor_supports(Array) 2 path\wp-includes\media.php(4748): wp_plupload_default_settings() 3 path\wp-content\plugins\wp-templater\modules\scripts.php(10): wp_enqueue_media() 4 path\wp-includes\class-wp-hook.php(308): wt_add_script_fn('') 5 path\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 6 path\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 7 path\wp-includes\script-loader.php(2026): do_action('wp_print_script…') 8 path\wp-includes\class-wp-hook.php(308): print_head_scripts('') 9 path\wp-includes\class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) 10 path\wp-includes\plugin.php(517): WP_Hook->do_action(Array) 11 path\wp-admin\admin-header.php(146): do_action('admin_print_scr…') 12 path\wp-admin\plugins.php(605): require_once('D:\laragon\www\…') 13 {main} thrown in path\wp-includes\media.php on line 3934Possibly has something to do with removing the wp_image_editors filter?
Is that enough info to test?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘PHP >= 8.0 fatal errors’ is closed to new replies.