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:
|
What version or WP and Atahualpa?
What version of PHP? Do you have any plugins installed? |
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? |
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 |
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? |
I am getting an error
Quote:
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=""> </option>'.$catdata.'</select>'; } } $string .= '<div class="searchBtn left" onclick="document.searchBox.submit();"> </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: |
SobiaD: easy solution, swap to the 'Atahualpa' theme - the theme this forum supports.
|
All times are GMT -6. The time now is 11:45 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.