Impacted plugin
Jetpack
Quick summary
Over the past week or so, I have seen a couple reports of fatal errors caused by the jetpack_oembed_timeout_override() function in jetpack/modules/shortcodes/others.php where it is conflicting with the timeout functions coded into another plugin or theme. I don't know if something recently changed on our end to make this type of conflict more likely — or if there's even anything we can do about it— but I figured I would report it here just in case there is some way we can improve the Jetpack code.
First example
Conflict with the Kallyas theme.
[17-Feb-2023 11:26:06 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function jetpack_oembed_timeout_override(), 1 passed in /wordpress/core/6.1.1/wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in /wordpress/plugins/jetpack/11.9-a.1/modules/shortcodes/others.php:29
Stack trace:
#0 /wordpress/core/6.1.1/wp-includes/class-wp-hook.php(308): jetpack_oembed_timeout_override(30)
#1 /wordpress/core/6.1.1/wp-includes/plugin.php(205): WP_Hook->apply_filters(30, Array)
#2 /srv/htdocs/wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php(478): apply_filters('http_request_ti...', 30)
#3 /srv/htdocs/wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php(76): ZN_HogashDashboard::request('theme_register', Array)
#4 /srv/htdocs/wp-content/themes/kallyas/framework/hg-theme-framework/inc/admin/class-zn-admin.php(82): ZN_HogashDashboard::connectTheme('344AD-7029F-D34...')
#5 /wordpress/core/6.1.1/wp-includes/class-wp-hook.php(308): ZnAdmin->ajax_theme_registration_hook('')
#6 /wordpress/core/6.1.1/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#7 /wordpress/core/6.1.1/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#8 /wordpress/core/6.1.1/wp-admin/admin-ajax.php(188): do_action('wp_ajax_zn_them...')
#9 {main}
thrown in /wordpress/plugins/jetpack/11.9-a.1/modules/shortcodes/others.php on line 29
Some insight from @kriskorn on this one:
"Jetpack adds an oembed timeout filter for iCloud embeds. It has 2 arguments. However, in the Kallyas theme they have such a variable in /wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php:
$timeout = apply_filters( 'http_request_timeout', 30 );
In here, they follow the filter https://developer.wordpress.org/reference/hooks/http_request_timeout/ to the dot, but because Jetpack had 2 arguments, we got a fatal with too few arguments, because in the theme there was only 1."
Second example
Conflict with the VC Mailchimp plugin.
An error of type E_ERROR was caused in line 29 of the file /wp-content/plugins/jetpack/modules/shortcodes/others.php. Error message: Uncaught ArgumentCountError: Too few arguments to function jetpack_oembed_timeout_override(), 1 passed in /wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in /wp-content/plugins/jetpack/modules/shortcodes/others.php:29
Stack trace: #0 /wp-includes/class-wp-hook.php(308): jetpack_oembed_timeout_override(30)
#1 /wp-includes/plugin.php(205): WP_Hook->apply_filters(30, Array)
#2 /wp-content/plugins/vc-mailchimp/Mailchimp.php(183): apply_filters('http_request_ti...', 30)
#3 /wp-content/plugins/vc-mailchimp/Mailchimp.php(71): VC_Mailchimp_Api->process_request('lists', Array)
#4 /wp-content/plugins/vc-mailchimp/lib/class-vc-map.php(938): VC_Mailchimp_Api->get_lists(Array)
#5 /wp-content/plugins/vc-mailchimp/lib/class-vc-map.php(34): VC_Mailchimp_Map->vc_mailchimp_
Impacted plugin
Jetpack
Quick summary
Over the past week or so, I have seen a couple reports of fatal errors caused by the
jetpack_oembed_timeout_override()function injetpack/modules/shortcodes/others.phpwhere it is conflicting with the timeout functions coded into another plugin or theme. I don't know if something recently changed on our end to make this type of conflict more likely — or if there's even anything we can do about it— but I figured I would report it here just in case there is some way we can improve the Jetpack code.First example
Conflict with the Kallyas theme.
Some insight from @kriskorn on this one:
"Jetpack adds an oembed timeout filter for iCloud embeds. It has 2 arguments. However, in the Kallyas theme they have such a variable in /wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php:
$timeout = apply_filters( 'http_request_timeout', 30 );In here, they follow the filter https://developer.wordpress.org/reference/hooks/http_request_timeout/ to the dot, but because Jetpack had 2 arguments, we got a fatal with too few arguments, because in the theme there was only 1."
Second example
Conflict with the VC Mailchimp plugin.