Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

syntax error, unexpected $end


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 27, 2010, 12:12 PM
pixelcottage
 
2 posts · Nov 2010
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">
  #2  
Old Nov 27, 2010, 01:11 PM
lmilesw's Avatar
lmilesw
 
10,054 posts · Jul 2009
Central New York State USA
I would start playing with the configuration options of the plugin.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #3  
Old Nov 27, 2010, 07:01 PM
juggledad's Avatar
juggledad
 
21,985 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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.
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support
  #4  
Old Nov 27, 2010, 07:24 PM
pixelcottage
 
2 posts · Nov 2010
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'] != "") {
  #5  
Old Nov 27, 2010, 09:38 PM
lmilesw's Avatar
lmilesw
 
10,054 posts · Jul 2009
Central New York State USA
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?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #6  
Old Nov 28, 2010, 01:48 PM
juggledad's Avatar
juggledad
 
21,985 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
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']); } ?>>
you have put a '>' after the word 'body' and it should not be there. the line should be
HTML Code:
<body <?php body_class(); ?><?php if ($bfa_ata['html_inserts_body_tag'] != "") { echo ' '; bfa_html_inserts($bfa_ata['html_inserts_body_tag']); } ?>>
__________________
If you like my help, please consider donating. I am happy to provide greater detail on this and other topics if you hire me. Please send detailed support requests to me as a private message, thank you.
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: syntax error, unexpected '<' in the functions.php file pingitt Atahualpa 3 Wordpress theme 6 Mar 12, 2013 03:52 AM
[SOLVED] ERROR MESSAGE: Parse error: syntax error, unexpected T_STRING in /hsphere/lo Candy Atahualpa 3 Wordpress theme 1 Oct 31, 2010 03:00 PM
PHP Parse error: syntax error, unexpected T_STRING Big Geek Daddy Atahualpa 3 Wordpress theme 5 Aug 6, 2010 05:25 AM
Parse error: syntax error, unexpected '<' in /home6/jonesber/public_html/wp-content/ jonesberries Atahualpa 3 Wordpress theme 2 Nov 30, 2009 03:33 AM
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 10:04 AM


All times are GMT -6. The time now is 07:41 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.