• Resolved Efs

    (@stevendigital)


    Hello,

    I am facing this error:

    An E_ERROR error was detected on line 29 of /var/www/vhosts/testi.eu/wp-content/plugins/jetpack/modules/shortcodes/others.php. Error code. gr/testi.eu/wp-includes/class-wp-hook.php on line 308 and exactly 2 are expected on /var/www/vhosts/testi.eu/wp-content/plugins/jetpack/modules/shortcodes/others.php:29

    I also have the stack trace if needed.

    Can you tell me how this can be fixed?

    Best Regards

    • This topic was modified 11 months, 2 weeks ago by Efs. Reason: Added some more details
Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support lastsplash (a11n)

    (@lastsplash)

    Hi @stevendigital

    As a first step, please try uninstalling and reinstalling Jetpack. Sometimes issues like this show up if the installation process was interrupted somehow.

    You can follow these steps to do that:

    1. Start at PluginsInstalled Plugins.
    2. If Jetpack is currently active, click Deactivate to disable it. Then click Delete to remove it from your site:
    3. Go to Plugins  → Add New.
    4. Search for “Jetpack – WP Security, Backup, Speed, & Growth”.
    5. Click Install and then Activate.

    When Jetpack is installed, click the green Set up Jetpack button to reconnect.

    This handy guide explains that process in more detail:

    https://jetpack.com/support/reconnecting-reinstalling-jetpack/#reinstalling-jetpack

    You shouldn’t lose any settings or any of your stats or subscribers in doing so, as that info is stored in our system here.

    Let us know if you continue to see the error. At that point, if you could share the stack trace and your site URL, that would be very helpful.

    Thread Starter Efs

    (@stevendigital)

    Hello,

    The uninstall-reinstall solution did not help. The problem is still there.

    Here is the stack trace:

    0 /var/www/vhosts/staging.tes.eu/wp-includes/class-wp-hook.php(308): jetpack_oembed_timeout_override()
    
    1 /var/www/vhosts/staging.tes.eu/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    2 /var/www/vhosts/staging.tes.eu/wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php(478): apply_filters()
    
    3 /var/www/vhosts/staging.tes.eu/wp-content/themes/kallyas/framework/hg-theme-framework/inc/api/ZN_HogashDashboard.php(280): ZN_HogashDashboard::request()
    
    4 /var/www/vhosts/staging.tes.eu/wp-content/themes/kallyas/framework/hg-theme-framework/inc/updater/class-theme-updater.php(77): ZN_HogashDashboard::getThemeInfo()
    
    5 /var/www/vhosts/staging.tes.eu/wp-includes/class-wp-hook.php(310): ZN_ThemeUpdater->checkForUpdates()
    
    6 /var/www/vhosts/staging.tes.eu/wp-includes/plugin.php(205): WP_Hook->apply_filters()
    
    7 /var/www/vhosts/staging.tes.eu/wp-includes/option.php(2018): apply_filters()
    
    8 /var/www/vhosts/staging.tes.eu/wp-includes/update.php(835): set_site_transient()
    
    9 /var/www/vhosts/staging.tes.eu/wp-includes/class-wp-hook.php(308): wp_update_themes()
    
    10 /var/www/vhosts/staging.tes.eu/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    
    11 /var/www/vhosts/staging.tes.eu/wp-includes/plugin.php(517): WP_Hook->do_action()
    
    12 /var/www/vhosts/staging.tes.eu/wp-admin/admin.php(385): do_action()
    
    13 /var/www/vhosts/staging.tes.eu/wp-admin/update-core.php(10): require_once('…')
    
    14 {main}
    thrown

    Let me know of your thoughts.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @stevendigital

    Can you also provide the URL of your site so we can take a look?

    If you want it to remain private, you can also contact us via this contact form. If you choose to reach out directly, please include a link to this thread.

    Thanks!

    Thread Starter Efs

    (@stevendigital)

    @bruceallen

    Here is the URL that you asked:https://www.temporary-url.com/25DB

    Let me know if you need anything else.

    Thank you.

    Plugin Support Bruce (a11n)

    (@bruceallen)

    Happiness Engineer

    Hi @stevendigital

    Thanks for sending that over. The error you are getting is caused by a conflict between Jetpack and the Kallayas theme. The Kallayas theme is trying to override the Jetpack oEmbed timeout, but Jetpack is expecting two arguments to the function, and the Kallayas theme is only passing one.

    Here are some additional details about the error:

    • The error is being caused by the function jetpack_oembed_timeout_override() in the Jetpack plugin.
    • The Kallayas theme is trying to override this function with its own function, ZN_HogashDashboard::request().
    • The Kallayas theme’s function is only passing one argument to the jetpack_oembed_timeout_override() function, but the Jetpack function expects two arguments.

    If you switch to a default theme, do you still see the error? You can use the Troubleshooting mode of the Health Check plugin to test this without affecting visitors to your site.

    Do you have the most current version of the Kallayas theme installed?

    Thread Starter Efs

    (@stevendigital)

    @bruceallen . Thank you for your answer. I can see that the problem is based on the kallyas theme. The theme is a premium one and even if i contacted them, until this day, there was no response from their end.

    If you switch to a default theme, do you still see the error?

    I have tried this and I can not see the error. But as I refered to above, the theme developers did not respond. The question was asked 12 days ago.

    So, is it possible to find a workaround from your end?

    Best Regards

    Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hello @stevendigital.

    Thanks for getting back to us.

    So, is it possible to find a workaround from your end?

    A similar conflict issue has been raised between your theme (Kallayas) and Jetpack on a GitHub issue here.

    Please review the workaround(s) suggested there and see if it helps address the issue.

    Alternatively, you could try updating the Kallayas theme to the latest version. The latest version of the theme may have a fix for this issue.

    If you are unable to resolve the issue using any of these methods, you may need to switch to a different theme.

    Best,

    Thread Starter Efs

    (@stevendigital)

    Hello @tamirat22,

    Unfortunately, the solution provided on the GitHub did not work. The error still appears. To clarify this, the theme is updated to the latest version and also are the plugins.

    The code a user suggested on the thread on GitHub did not work for me either.

    Changing the theme is not an option. In my opinion, it is very difficult to change the theme that the site is built on just for that. Are there any filters that jetpack provided, that could suspend the call?

    Best Regards

    Plugin Support Joseph B. (a11n)

    (@tamirat22)

    Hello @stevendigital.

    Thanks for getting back to us.

    Can you please confirm with us if you’ve tried adding the custom code shared on GitHub below? You can integrate this custom code into your site with a plugin like Code Snippets.

    add_filter(
    'jetpack_tools_to_include',
    function ( $tools ) {
    $index = array_search(
    'shortcodes/others.php',
    $tools,
    true
    );
    if ( $index ) {
    unset( $tools[ $index ] );
    }
    return $tools;
    }
    );

    Looking forward to your update.

    Best,

    Thread Starter Efs

    (@stevendigital)

    Hello@tamirat22 ,

    I can confirm that his is the code that i used and the error still appears.

    Let me know if there is any other solution because the others.php is still being called and not removed from the array of tools.

    Best Regards

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @stevendigital – I have reported your issue here to check for a solution. In the meantime, I would recommend you to keep checking with the theme author as well.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @stevendigital – as per the comment here, could you please make sure if the code snippet applied successfully to your site?

    add_filter(
    	'jetpack_tools_to_include',
    	function ( $tools ) {
    		$index = array_search(
    			'shortcodes/others.php',
    			$tools,
    			true
    		);
    		if ( $index ) {
    			unset( $tools[ $index ] );
    		}
    		return $tools;
    	}
    );

    I’d recommend using a plugin like Code Snippets to add this code to your site rather than adding it directly to functions.php

    Thread Starter Efs

    (@stevendigital)

    @bizanimesh

    Hello,

    I did not have a time to check the above. I will check them and get back as soon as possible for a proper feedback.

    Plugin Support Animesh Gaurav (a11n)

    (@bizanimesh)

    Hey @stevendigital – No problem at all! Take your time to review the information provided. Whenever you’re ready, feel free to reach out. We’re here to assist you whenever you need.

    Thread Starter Efs

    (@stevendigital)

    Hello @bizanimesh ,

    I used the code inside the functions.php but it seemed to not run as expected.

    So i used a plugin to implement the code above. It seems now that the snippet above, works as expected.

    Thank you for your help and assistance on the matter. I have also informed the developers of the theme and got an answer that they will fix it on the next patch. Let’s hope it will come soon enough.

    You can mark this thread as resolved.

    Best Regards

    • This reply was modified 10 months ago by Efs.
Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Error on /jetpack/modules/shortcodes/others.php.’ is closed to new replies.