codisweepstakes2 Posted January 25, 2010 Share Posted January 25, 2010 I'm using a free Wordpress theme called Arthemia Free & I am having trouble with this error: Parse error: syntax error, unexpected '<' in /homepages/31/d145901191/htdocs/www/liquidsilver/gsar/wp-content/themes/arthemia/functions.php on line 40 functions.php: <?php if ( function_exists('register_sidebar') ) { register_sidebar(array('name' => 'Sidebar Top','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); register_sidebar(array('name' => 'Sidebar Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); register_sidebar(array('name' => 'Sidebar Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); register_sidebar(array('name' => 'Sidebar Bottom','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); register_sidebar(array('name' => 'Footer Left','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); register_sidebar(array('name' => 'Footer Center','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); register_sidebar(array('name' => 'Footer Right','before_widget' => '','after_widget' => '','before_title' => '<h3>','after_title' => '</h3>')); } remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'custom_trim_excerpt'); remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'custom_trim_excerpt'); function custom_trim_excerpt($text) { // Fakes an excerpt if needed global $post; if ( '' == $text ) { $text = get_the_content(''); $text = strip_shortcodes( $text ); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $text = strip_tags($text); $excerpt_length = apply_filters('excerpt_length', 90); $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '...'); $text = implode(' ', $words); } } return $text; } ?> ___________ Any help would be greatly appreciated. My website is currently down b/c of this. Quote Link to comment Share on other sites More sharing options...
RussellReal Posted January 25, 2010 Share Posted January 25, 2010 well which 1 is line 40? Quote Link to comment Share on other sites More sharing options...
Deoctor Posted January 25, 2010 Share Posted January 25, 2010 there is no such word in program at all... Quote Link to comment Share on other sites More sharing options...
codisweepstakes2 Posted January 25, 2010 Author Share Posted January 25, 2010 nm I fixed it by restoring the backup via ftp thank god for backups Quote Link to comment Share on other sites More sharing options...
codisweepstakes2 Posted January 25, 2010 Author Share Posted January 25, 2010 gahh nm it's still showing that msg when I click my feedburner thing...wth?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.