syntax error, unexpected $end
Help! My site has looked fine until I downloaded a google analytics plugin. Now I get the following message: Parse error: syntax error, unexpected $end in /home1/pixelcot/public_html/wp-content/themes/atahualpa/header.php on line 97
I don't know enough to be able to figure this out. Can someone please help? This is a copy of the code:( <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <head> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> <?php /* if index.php or another page template (copied from index.php) was not used (i.e. by a plugin such as WPG2), the global $bfa_ata would be empty */ global $bfa_ata, $cols, $left_col, $left_col2, $right_col, $right_col2; if ($bfa_ata == "") include_once (TEMPLATEPATH . '/functions/bfa_get_options.php'); ?> <?php if ( $bfa_ata['css_external'] == "External" ) { ?> <link rel="stylesheet" href="<?php bloginfo('url'); ?>/?bfa_ata_file=css" type="text/css" media="all" /> <?php } ?> <?php include (TEMPLATEPATH . '/functions/bfa_meta_tags.php'); ?> <?php if ($bfa_ata['favicon_file'] != "") { ?><link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/images/favicon/<?php echo $bfa_ata['favicon_file']; ?>" /><?php } ?> <?php if ( is_single() OR is_page() ) { ?><link rel="canonical" href="<?php the_permalink(); ?>" /><?php } ?> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_enqueue_script( 'jquery' ); ?> <?php if ( function_exists('wp_list_comments') AND is_singular() ) { wp_enqueue_script( 'comment-reply' ); } ?> <?php wp_head(); ?> <?php bfa_html_inserts($bfa_ata['html_inserts_header']); ?> <?php if ($bfa_ata['pngfix_selectors'] != "") { ?> <!--[if IE 6]> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_roundies.js"></script> <script type="text/javascript">DD_roundies.addRule('<?php echo $bfa_ata['pngfix_selectors']; ?>'); </head> <body> <?php body_class(); ?><?php if ($bfa_ata['html_inserts_body_tag'] != "") { echo ' '; bfa_html_inserts($bfa_ata['html_inserts_body_tag']); } ?>> <?php bfa_html_inserts($bfa_ata['html_inserts_body_top']); ?> <div id="wrapper"> <div id="container"> <table id="layout" border="0" cellspacing="0" cellpadding="0"> <colgroup> <?php if ( $left_col == "on" ) { ?><col class="colone" /><?php } ?> <?php if ( $left_col2 == "on" ) { ?><col class="colone-inner" /><?php } ?> <col class="coltwo" /> <?php if ( $right_col2 == "on" ) { ?><col class="colthree-inner" /><?php } ?> <?php if ( $right_col == "on" ) { ?><col class="colthree" /><?php } ?> </colgroup> <tr> <!-- Header --> <td id="header" colspan="<?php echo $cols; ?>"> <?php bfa_header_config($bfa_ata['configure_header']); ?> </td> <!-- / Header --> </tr> <!-- Main Body --> <tr id="bodyrow"> <?php if ( $left_col == "on" ) { ?> <!-- Left Sidebar --> <td id="left"> <?php // Widgetize the Left Sidebar if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Sidebar') ) : ?> <div class="widget widget_categories"><div class="widget-title"> <h3><?php _e('Categories','atahualpa'); ?></h3> </div> <ul><?php wp_list_categories('show_count=1&title_li='); ?></ul> </div> <div class="widget widget_archive"><div class="widget-title"> <h3><?php _e('Archives','atahualpa'); ?></h3> </div> <ul><?php wp_get_archives('type=monthly'); ?></ul> </div> <?php endif; ?> </td> <!-- / Left Sidebar --> <?php } ?> <?php if ( $left_col2 == "on" ) { ?> <!-- Left INNER Sidebar --> <td id="left-inner"> <?php // Widgetize the Left Inner Sidebar if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Left Inner Sidebar') ) : ?> <!-- no default content for the LEFT INNER sidebar --> <?php endif; ?> </td> <!-- / Left INNER Sidebar --> <?php } ?> <!-- Main Column --> <td id="middle"> |
I would start playing with the configuration options of the plugin.
|
If you disable the plugin does the site work fine?
Where did you get the plugin - please point to the URL you got it from. |
I deactivated it and deleted it and the problem still exists. The plugin is at http://wordpress.org/extend/plugins/...lytics-plugin/
I think the problem is a missing } in the php in these lines of text, but I don't know php enough to know where the } goes. { ?> <!--[if IE 6]> <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/DD_roundies.js"></script> <script type="text/javascript">DD_roundies.addRule(' <?php echo $bfa_ata['pngfix_selectors']; ?>'); </head> <body> <?php body_class(); ?><?php if ($bfa_ata['html_inserts_body_tag'] != "") { |
Did you put the code you mentioned somewhere? The plugin just has you add the UA ID in its settings. In other words did you edit a theme file?
|
find the line
HTML Code:
<body> <?php body_class(); ?><?php if ($bfa_ata['html_inserts_body_tag'] != "") { echo ' '; bfa_html_inserts($bfa_ata['html_inserts_body_tag']); } ?>> HTML Code:
<body <?php body_class(); ?><?php if ($bfa_ata['html_inserts_body_tag'] != "") { echo ' '; bfa_html_inserts($bfa_ata['html_inserts_body_tag']); } ?>> |
All times are GMT -6. The time now is 04:29 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.