• Resolved Lucian Mihailescu

    (@lucianmih)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @lucianmih

    We have seen similar issues to this before (GitHub) and they tend to be caused by a theme or plugin. Could you share the full stack trace for the issue?

    Thread Starter Lucian Mihailescu

    (@lucianmih)

    @lastsplash Thank you for your reply. It happens for me only in Kallyas theme by Hogash.

    An error of type E_ERROR was caused in line 29 of the file /home/si/public_html/wp-content/plugins/jetpack/modules/shortcodes/others.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 Stack trace: #0 /home/si/public_html/wp-includes/class-wp-hook.php(308): jetpack_oembed_timeout_override(30) #1 /home/si/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(30, Array) #2 /home/si/public_html/wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php(478): apply_filters(‘http_request_ti…’, 30) #3 /home/si/public_html/wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php(280): ZN_HogashDashboard::request(‘get_theme_info’) #4 /home/si/public_html/wp-content/themes/kallyas/framework/hg-theme-framework/inc/updater/class-theme-updater.php(77): ZN_HogashDashboard::getThemeInfo() #5 /home/si/public_html/wp-includes/class-wp-hook.php(310): ZN_ThemeUpdater->checkForUpdates(Object(stdClass)) #6 /home/si/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Object(stdClass), Array) #7 /home/si/public_html/wp-includes/option.php(2036): apply_filters(‘pre_set_site_tr…’, Object(stdClass), ‘update_themes’) #8 /home/si/public_html/wp-includes/update.php(835): set_site_transient(‘update_themes’, Object(stdClass)) #9 /home/si/public_html/wp-includes/class-wp-hook.php(308): wp_update_themes(”) #10 /home/si/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array) #11 /home/si/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /home/si/public_html/wp-admin/admin.php(385): do_action(‘load-update-cor…’) #13 /home/si****/public_html/wp-admin/update-core.php(10): require_once(‘/home/si****…’) #14 {main} thrown

    Plugin Support Ajay Kumar Jain (a11n)

    (@akumarjain)

    Hi @lucianmih, I noticed that there was an update released by the Kallyas theme developers on 31 August 2023. Could you share the error message with them and see if they made an update to the theme causing the oembeds to not work?

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello @lucianmih

    Do you have updates about that? We usually close inactive threads after one week of no activity, but we want to make sure we’re all set before marking it as solved. Thanks!

    Thread Starter Lucian Mihailescu

    (@lucianmih)

    Hi Joseph,

    I only sent the message to TrueMag today. Please allow one more week or so to get a reply.

    Thanks,

    Lucian

    Thread Starter Lucian Mihailescu

    (@lucianmih)

    Hi @tamirat22 ,

    I received confirmation today from Kallyas theme creators (Stefan at Hogash Studio) that they will fix the issue and post an update this week.

    Thank you, both!

    Lucian

    Plugin Support Tamirat B. (a11n)

    (@tamirat22)

    Hello Lucian,

    Thanks for the update. I will go ahead and mark this thread as resolved for now.

    Feel free to create a new thread if you run into any other issues: https://www.ads-software.com/support/plugin/jetpack/#new-topic-0

    Best,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Too few arguments to function jetpack_oembed_timeout – others.php line 29’ is closed to new replies.