Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Parse error: syntax error, unexpected '<' in the functions.php file (http://forum.bytesforall.com/showthread.php?t=2444)

pingitt Jul 15, 2009 05:44 AM

Parse error: syntax error, unexpected '<' in the functions.php file
 
hello,

this is my first post.

i am haveing a problem that when i post on the blog i get the error message:\

Parse error: syntax error, unexpected '<' in /home/content/p/i/n/pingitt/html/wordpress/wp-content/themes/atahualpa/functions.php(389) : eval()'d code on line 2


could anyone help? i can't figure out what the problem is.


the first few lines of cade are as follows:

PHP Code:

<?php

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


// 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>',
    ));


juggledad Jul 15, 2009 06:20 AM

What version or WP and Atahualpa?
What version of PHP?
Do you have any plugins installed?

pingitt Jul 15, 2009 06:26 AM

wp=2.8

as for php im assuming you mean on my server and its 5.x

and yes i have a few plugins installed.

do you think it may be a plugin issue?

pingitt Jul 15, 2009 06:30 AM

i deactivated all of my plugins but i still have the problem. i dont know if this helps but this is the direct link to the file.

http://pingitt.com/wordpress/wp-cont.../functions.php

juggledad Jul 15, 2009 02:07 PM

Hi, I can't figure out why you are getting a PHP error in the begining of that module unless something is corrupted. You might want to try reinstaling the theme - delete the current one and reload it.
What version of Atahuapla are you using?

SobiaD Mar 11, 2013 10:41 PM

I am getting an error
Quote:

Parse error: syntax error, unexpected T_STRING in /home/austinba/public_html/wp-content/themes/directorypress/header.php on line 155
I am very confused with this error I had check all the "" or ' ...I dont know where I am getting problem...plz help me

here is the code
<?php function _bit_submenu_inside(){ /*SUB MENU BAR */

global $wpdb,$PPT, $userdata; get_currentuserinfo(); $string='';

$string .= '<div class="w_960">';

if(isset($GLOBALS['ppt_layout_styles']['submenubar']) && isset($GLOBALS['ppt_layout_styles']['submenubar']['search']) && $GLOBALS['ppt_layout_styles']['submenubar']['search'] == 1){

$string .= '<div id="hpages"><ul>'.premiumpress_pagelist().'</ul></div>';

}else{

$string .= "<form method='get' action='".$GLOBALS['bloginfo_url']."/' name='searchBox' id='searchBox'>
<input type='text' value='".$PPT->_e(array('head','2'))."' name='s' id='s' onfocus="this.value='';" />";




if(isset($GLOBALS['ppt_layout_styles']['submenubar']) && isset($GLOBALS['ppt_layout_styles']['submenubar']['hidecat']) && $GLOBALS['ppt_layout_styles']['submenubar']['hidecat'] == 1){ }else{
// BUILD CATEGORY DROP DOWN LIST
$catdata = premiumpress_categorylist(0,'toponly');
if(strlen($catdata) > 1){
$string .= '<select id="catsearch" name="cat"><option value="">&nbsp;</option>'.$catdata.'</select>';
}
}

$string .= '<div class="searchBtn left" onclick="document.searchBox.submit();"> &nbsp;</div>';


if(get_option("display_advanced_search") ==1){
$string .= '<a href="javascript:jQuery(';
$string .= "'#AdvancedSearchBox').show();";
$string .= 'javascript:void(0);"';
$string .="><small>".$PPT->_e(array('head','3'))."</small></a>";
}
$string .= '</form>';

}

$string .= '';

$string .= '</div> <!-- end w_960 -->';

return $string;

} ?>

<?php echo premiumpress_submenu_inside(_bit_submenu_inside()) ; /* HOOK / FILTER */ ?>

</div><!-- end submenubar -->
<div class="flashbanner"><img title="JAM Music" src="http://www.austinbandsearch.com/wp-content/themes/directorypress/template_directorypress/images/flashbanner.jpg" alt="JAM Music" width="960" height="238"/></div>

<?php premiumpress_submenu_after(); /* HOOK */ ?>

<?php } ?>


<?php premiumpress_page_before(); ?>

<div id="page" class="clearfix full">

<div class="w_960">



<?php if(get_option("PPT_slider") =="s1" && is_home() && !isset($_GET['s']) && !isset($_GET['search-class']) ){ echo $PPTDesign->SLIDER(); } ?>

<?php premiumpress_content_before(); ?>

<div id="content" <?php $PPTDesign->CSS("padding"); ?>>

<?php

if(file_exists(str_replace("functions/","",THEME_PATH)."/themes/".$GLOBALS['premiumpress']['theme']."/_sidebar1.php") && !isset($GLOBALS['nosidebar-left']) ){

include(str_replace("functions/","",THEME_PATH)."/themes/".$GLOBALS['premiumpress']['theme']."/_sidebar1.php");

}elseif(!isset($GLOBALS['nosidebar-left']) ){ ?>


<div id="sidebar-left" class="<?php $PPTDesign->CSS("columns-left"); ?>">

<?php premiumpress_sidebar_left_top(); /* HOOK */ ?>

<?php if(is_single() && !isset($GLOBALS['ARTICLEPAGE']) && isset($GLOBALS['nosidebar-right']) && get_option("display_listinginfo") =="yes"){ echo $PPTDesign->GetObject('authorinfo'); }:confused:

juggledad Mar 12, 2013 03:52 AM

SobiaD: easy solution, swap to the 'Atahualpa' theme - the theme this forum supports.


All times are GMT -6. The time now is 06:23 PM.

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