Too few arguments to function jetpack_oembed_timeout – others.php line 29
-
Hi,
A note about a timeout error and a line that has a note to be renoved.
One website I manage shows an error for this file jetpack/modules/shortcodes/others.php line 29
The error shows when I go to the updates page wp-admin/update-core.php
Error message: Uncaught ArgumentCountError: Too few arguments to function jetpack_oembed_timeout_override(), 1 passed in /home/si****/public_html/wp-includes/class-wp-hook.php on line 308 and exactly 2 expected in /home/si****/public_html/wp-content/plugins/jetpack/modules/shortcodes/others.php:29
Here is jetpack/modules/shortcodes/others.php line 29:
// TODO: Remove this. This should hopefully be a temporary hack since Apple’s oEmbed often seems to take more than 5 seconds to respond. 10 is an arbitrary number of seconds that seems to work better.
add_filter( ‘http_request_timeout’, ‘jetpack_oembed_timeout_override’, 10, 2 );If I comment line 29 everything works fine. Maybe this can to be commented in your next update?
//add_filter( ‘http_request_timeout’, ‘jetpack_oembed_timeout_override’, 10, 2 );
Thanks,
Lucian
- The topic ‘Too few arguments to function jetpack_oembed_timeout – others.php line 29’ is closed to new replies.