Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

[SOLVED] ERROR MESSAGE: Parse error: syntax error, unexpected T_STRING in /hsphere/lo


  #1  
Old Oct 31, 2010, 02:56 PM
Candy
 
9 posts · Oct 2010
This just popped up randomly. I don't know what it means and I wasn't able to find a thread with this listed.
Here is the error:
Parse error: syntax error, unexpected T_STRING in /hsphere/local/home/c307655/dulcedesignscandy.com/wp-content/themes/atahualpa/functions.php on line 190

The website does not show up. I am building it at http://173.83.156.13/ and when I'm ready to go live I'll point it over to the new host.

I disabled the all plugins still got the error.
I disabled the theme and the error went away and I saw the default theme.

Can anyone tell me what this means? And how I can correct it?

Here is the section of code near line 190:
<?php
$bfa_ata_version = "3.4.9";

// Load translation file
load_theme_textdomain('atahualpa');

// disable wp texturize, remove hashes to enable
#remove_filter('the_content', 'wptexturize');
#remove_filter('the_excerpt', 'wptexturize');
#remove_filter('comment_text', 'wptexturize');
#remove_filter('the_title', 'wptexturize');

// get default theme options
include_once (TEMPLATEPATH . '/functions/bfa_theme_options.php');
// Load options
include_once (TEMPLATEPATH . '/functions/bfa_get_options.php');

// Sidebars:
if ( function_exists('register_sidebar') ) {

register_sidebar(array(
'name'=>'Left Sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div>',
));

register_sidebar(array(
'name'=>'Right Sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div>',
));

register_sidebar(array(
'name'=>'Left Inner Sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div>',
));

register_sidebar(array(
'name'=>'Right Inner Sidebar',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<div class="widget-title"><h3>',
'after_title' => '</h3></div>',
));


// Register additional extra widget areas:
# $bfa_ata_extra_widget_areas = get_option('bfa_widget_areas');
$bfa_ata_extra_widget_areas = $bfa_ata['bfa_widget_areas'];

if ($bfa_ata_extra_widget_areas != '') {
foreach ($bfa_ata_extra_widget_areas as $widget_area) {
register_sidebar(array(
'name' => $widget_area['name'],
'before_widget' => $widget_area['before_widget'],
'after_widget' => $widget_area['after_widget'],
'before_title' => $widget_area['before_title'],
'after_title' => $widget_area['after_title']
));
}
}
}


// Load functions
include_once (TEMPLATEPATH . '/functions/bfa_header_config.php');
include_once (TEMPLATEPATH . '/functions/bfa_hor_cats.php');
include_once (TEMPLATEPATH . '/functions/bfa_hor_pages.php');
include_once (TEMPLATEPATH . '/functions/bfa_footer.php');
include_once (TEMPLATEPATH . '/functions/bfa_recent_comments.php');
include_once (TEMPLATEPATH . '/functions/bfa_popular_posts.php');
include_once (TEMPLATEPATH . '/functions/bfa_popular_in_cat.php');
include_once (TEMPLATEPATH . '/functions/bfa_subscribe.php');
include_once (TEMPLATEPATH . '/functions/bfa_postinfo.php');
include_once (TEMPLATEPATH . '/functions/bfa_rotating_header_images.php');
include_once (TEMPLATEPATH . '/functions/bfa_next_previous_links.php');
include_once (TEMPLATEPATH . '/functions/bfa_post_parts.php');
if (!function_exists('paged_comments'))
include_once (TEMPLATEPATH . '/functions/bfa_custom_comments.php');

// old, propretiary bodyclasses() of Atahualpa. Usage: bodyclasses()
// include_once (TEMPLATEPATH . '/functions/bfa_bodyclasses.php');
// new, default Wordpress body_class(). usage: body_class()
// include only in WP 2.3 - WP 2.7 . From WP 2.8 on it is a core Wordpress function:
if (!function_exists('body_class'))
include_once (TEMPLATEPATH . '/functions/bfa_body_class.php');

// For plugin "Sociable":
if (function_exists('sociable_html'))
include_once (TEMPLATEPATH . '/functions/bfa_sociable2.php');

// "Find in directory" function, needed for finding header images on WPMU
if (file_exists(ABSPATH."/wpmu-settings.php"))
include_once (TEMPLATEPATH . '/functions/bfa_m_find_in_dir.php');

// add jquery function only to theme page or widgets won't work in 2.3 and older
#if ( $_GET['page'] == basename(__FILE__) ) {

// CSS for admin area
include_once (TEMPLATEPATH . '/functions/bfa_css_admin_head.php');
// Add the CSS to the <head>...</head> of the theme option admin area
add_action('admin_head', 'bfa_add_stuff_admin_head');

include_once (TEMPLATEPATH . '/functions/bfa_ata_add_admin.php');
include_once (TEMPLATEPATH . '/functions/bfa_ata_admin.php');
add_action('admin_menu', 'bfa_ata_add_admin');

#}

// Escape single & double quotes
function bfa_escape($string) {
$string = str_replace('"', '"', $string);
$string = str_replace("'", ''', $string);
return $string;
}

// change them back
function bfa_unescape($string) {
$string = str_replace('"', '"', $string);
$string = str_replace(''', "'", $string);
return $string;
}

function bfa_escapelt($string) {
$string = str_replace('<', '&lt;', $string);
$string = str_replace('>', '&gt;', $string);
return $string;
}


function footer_output($footer_content) {
$footer_content .= 'Powered by <a href="http://wordpress.org/">WordPress</a> &amp; the <a href="http://wordpress.bytesforall.com/" title="Customizable WordPress themes">Atahualpa Theme</a> by <a href="http://www.bytesforall.com/" title="BFA Webdesign">BytesForAll</a>. Discuss on our <a href="http://forum.bytesforall.com/" title="Atahualpa &amp; WordPress">WP Forum</a>';
return $footer_content;
}



Today, I made changes to a plugin (featured content gallery) and that's it. (changed the width and height in pixels)

Last edited by Candy; Oct 31, 2010 at 03:02 PM. Reason: to place in code snippet
  #2  
Old Oct 31, 2010, 04:00 PM
Candy
 
9 posts · Oct 2010
I have no idea what the deal was. I just started over.


This post can be deleted!

Bookmarks

Tags
parse error, syntax error, unexpected t_string



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 04:52 AM
PHP Parse error: syntax error, unexpected T_STRING Big Geek Daddy Atahualpa 3 Wordpress theme 5 Aug 6, 2010 06:25 AM
Parse error: syntax error, unexpected T_STRING joe hark Atahualpa 3 Wordpress theme 7 Jul 28, 2010 07:04 AM
Parse error: syntax error, unexpected '<' in /home6/jonesber/public_html/wp-content/ jonesberries Atahualpa 3 Wordpress theme 2 Nov 30, 2009 04:33 AM
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 11:04 AM


All times are GMT -6. The time now is 01:02 AM.


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