Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

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


  #1  
Old Jul 15, 2009, 05:44 AM
pingitt
 
3 posts · Jul 2009
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>',
    ));
  #2  
Old Jul 15, 2009, 06:20 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
What version or WP and Atahualpa?
What version of PHP?
Do you have any plugins installed?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 15, 2009, 06:26 AM
pingitt
 
3 posts · Jul 2009
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?
  #4  
Old Jul 15, 2009, 06:30 AM
pingitt
 
3 posts · Jul 2009
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
  #5  
Old Jul 15, 2009, 02:07 PM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jul 15, 2009 at 02:10 PM.
  #6  
Old Mar 11, 2013, 10:41 PM
SobiaD
 
1 posts · Mar 2013
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'); }
  #7  
Old Mar 12, 2013, 03:52 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
SobiaD: easy solution, swap to the 'Atahualpa' theme - the theme this forum supports.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 10:04 AM
[SOLVED] Syntax Parse error PLEASE help me out.... norwichkaren Atahualpa 3 Wordpress theme 1 Jul 12, 2009 08:51 AM
PHP Error peterkb Header configuration & styling 4 Jun 18, 2009 10:38 AM
Can not activate my theme due to parse erorr Parse error tanimwp Forum How-To 2 Jun 17, 2009 03:13 AM
Parse error: syntax error!!! liabelle Atahualpa 3 Wordpress theme 2 Apr 22, 2009 11:48 PM


All times are GMT -6. The time now is 10:43 AM.


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