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('<', '<', $string);
$string = str_replace('>', '>', $string);
return $string;
}
function footer_output($footer_content) {
$footer_content .= 'Powered by <a href="http://wordpress.org/">WordPress</a> & 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 & 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)