Theme does not work and site is down!

Home Forums Travel WordPress Theme Theme does not work and site is down!

This topic contains 2 replies, has 2 voices, and was last updated by  friemanr 7 months, 2 weeks ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2964

    friemanr
    Participant

    Hi
    I have tried to upgrade the site for V1.5
    I first upgraded to WP 3.8.2

    and now the site is down I cant even assess my WP admin panel
    דןאק URL – http://travelers4u.com/

    the tech support from my host gave my the error

    PHP Fatal error: Cannot redeclare get_youtube_id() (previously declared in /home2/ronenfri/public_html/travelers4u/wp-content/plugins/jetpack/functions.compat.php:22) in /home2/ronenfri/public_html/travelers4u/wp-content/themes/travel/functions.php on line 432

    What should I do?

    Ronen

    #2972

    urmyfriend
    Keymaster

    Hi, please open file functions.php and find 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];
    }

    update it to:

    if(!function_exists('get_youtube_id')){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

    #2986

    friemanr
    Participant

    Thanks!!! It works!

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

You must be logged in to reply to this topic.