I’m getting the following fatal error with the most current versions of WordPress, CRED and Enhanced Media Library:
[08-May-2024 14:02:15 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function wpuxss_eml_upload_mimes(), 1 passed in /home/xxxxxxx/public_html/wp-includes/class-wp-hook.php on line 324 and exactly 2 expected in /home/xxxxxxx/public_html/wp-content/plugins/enhanced-media-library/core/mime-types.php:157
Stack trace:
0 /home/xxxxxxx/public_html/wp-includes/class-wp-hook.php(324): wpuxss_eml_upload_mimes(Array)
1 /home/xxxxxxx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
2 /home/xxxxxxx/public_html/wp-content/plugins/cred-frontend-editor/application/models/form/base.php(363): apply_filters('upload_mimes', Array)
3 /home/xxxxxxx/public_html/wp-content/plugins/cred-frontend-editor/application/controllers/form_builder_base.php(42): CRED_Form_Base->print_form()
4 /home/xxxxxxx/public_html/wp-content/plugins/cred-frontend-editor/library/toolset/cred/embedded/classes/CRED_Helper.php(2116): CRED_Form_Builder_Base->get_form(1479, 5773)
5 /home/xxxxxxx/public_html/wp-includes/class-wp-hook.php( in /home/xxxxxxx/public_html/wp-content/plugins/enhanced-media-library/core/mime-types.php on line 157
According to the developers of Enhanced Media Library, this is caused by CRED: