Home Forums Travel WordPress Theme Bug with jetpack 2.6.1……

This topic contains 3 replies, has 2 voices, and was last updated by  Johnny 3 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1816

    samuel elling
    Participant

    Hi

    Jetpack pack crash my website since the 2.6.1 update. It make this instead :

    Fatal error: Cannot redeclare get_youtube_id() (previously declared in /web/samuelelling/www/wp-content/plugins/jetpack/functions.compat.php:22) in /web/samuelelling/www/wp-content/themes/travel/functions.php on line 432

    Any idea?

    Thx a lot

    Best regards

    #1818

    Johnny
    Participant

    Hi, please try comment get_youtube_id code section, like this:

    /*function get_youtube_id($url)
    {
    	preg_match('#http://w?w?w?.?youtube.com/watch\?v=([A-Za-z0-9\-_]+)#s', $url, $matches);
    	return $matches[1];
    }*/

    ,
    Best

    #1854

    samuel elling
    Participant

    Hi,

    Thank you for your quick answer but I’m beginner in this kind of thing….

    Where I have to paste this line? In wich file?

    Sorry, it may be a stupid question….

    Thx

    Best regards

    Sam

    #1857

    Johnny
    Participant

    Hi,
    1.login to backend, appearance/editor, from rightside, click ‘Theme Functions(functions.php)’ to open it
    2.find line ‘function get_youtube_id($url)’, before it add ‘/*’, and then after this line find the first ‘}’, after it add ‘*/’
    3.click update file,
    Best

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.