PHP parse error

Status
Not open for further replies.

zebaszp46

New Member
Messages
3
Reaction score
0
Points
0
I was trying to move my Wordpress blog from 000webhost. I copied all my data, and everything went smoothly until I activated my theme. Now I get the following error:
Parse error: syntax error, unexpected '?' in /home/zebasz/public_html/wp-content/themes/wicketpixie_es/header.php on line 216
I didn't modify that file at all, it works ok on 000wh. I can access my Dashboard without problems.
In case you need it, this is my blog: http://zeblog.com.ar/
The one hosted here is: http://zeblog.x10.mx/
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
Post the contents of x10.mx file here.
 

zebaszp46

New Member
Messages
3
Reaction score
0
Points
0
This is my header.php file. It's based on the WicketPixie theme by Chris Pirillo. I added the nav menu function in WP 3. I think that's the line that's causing trouble.

Code:
<?php
// Blog feed URL
if(get_option('wicketpixie_blog_feed_url') != false) {
    $blogfeed = get_option('wicketpixie_blog_feed_url');
} else {
    $blogfeed = get_bloginfo_rss('rss2_url');
}
$status= new SourceUpdate;
global $optpre;
global $adsense;
$adsense = new AdsenseAdmin;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <!-- Debug: <?php echo $optpre; ?> -->
    
    <title><?php if (is_home()) { ?><?php bloginfo('name'); ?><?php } else { ?><?php wp_title('',true,''); ?> &raquo; <?php bloginfo('name'); ?><?php } ?></title>

	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?'.time(); ?>" type="text/css" media="screen" />
	<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/reset.css?<?php echo time(); ?>" type="text/css" media="screen, projection" />	
	<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/screen.css?<?php echo time(); ?>" type="text/css" media="screen, projection" />
	<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/print.css?<?php echo time(); ?>" type="text/css" media="print" />
	<!--[if IE]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie.css?<?php echo time(); ?>" type="text/css" media="screen, projection" /><![endif]-->
	<!--[if gte IE 7]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie7.css?<?php echo time(); ?>" type="text/css" media="screen, projection" /><![endif]-->
	<!--[if lte IE 6]><link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/ie6.css?<?php echo time(); ?>" type="text/css" media="screen, projection" /><![endif]-->	
	
	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php echo $blogfeed; ?>" />
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
	<link rel="shortcut icon" type="image/ico" href="<?php bloginfo('home'); ?>/favicon.ico" />	

    <?php if(get_option('wicketpixie_enable_ajax_loader') == 'true') { ?>
    <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/css/loader.css?<?php echo time(); ?>" type="text/css" media="all" />
    <?php } ?>
    <?php ob_flush(); flush(); ?>
    <style type="text/css">
        .recentcomments a {
            display: inline !important;
            padding: 0 !important;
            margin: 0 !important;
        }
    </style>
	
	<?php
    include_once (TEMPLATEPATH . '/plugins/random-posts.php');
	include_once (TEMPLATEPATH . '/plugins/search-excerpt.php');
    
    clearstatcache();
    if(!is_dir(ABSPATH.'wp-content/uploads/activity')) {
        if(!is_dir(ABSPATH.'wp-content/uploads'))
        {
            mkdir(ABSPATH.'wp-content/uploads',0777);
        }
        mkdir(ABSPATH.'wp-content/uploads/activity',0777);
    }
    if(!is_dir(TEMPLATEPATH . '/app/cache')) {
        mkdir(TEMPLATEPATH . '/app/cache',0777);
    }
    /*
    if(is_user_logged_in()) { ?>
    <script src="http://wicketpixie.uservoice.com/pages/general/widgets/tab.js?alignment=right&amp;color=000000" type="text/javascript"></script>
    <?php } */ ?>
<?php wp_head(); ?>
<?php
    echo "\n";
    wp_customheader();
    echo "\n";
?>	
    <?php
    $blogurl = get_bloginfo('url');
    $currurl = $blogurl.$_SERVER['REQUEST_URI'];
    $currurl = preg_quote($currurl,'/');
    if(preg_match('/('.$currurl.'index.php)/','http://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF']) || preg_match('/('.$currurl.'index.php)/','https://'.$_SERVER['SERVER_NAME'].$_SERVER['PHP_SELF'])) {
        if(get_bloginfo('description') != '') {
            $metadesc = get_bloginfo('description'); // We're at the home page
        } else {
            $supdate = new SourceUpdate;
            $metadesc = $supdate->display(0);
        }
    } else {
        // We must be in a page or a post
        $postdata = get_post($postid,ARRAY_A);
        $metadesc = substr($postdata['post_content'],0,134) . ' [...]';
    }
    
    $metadesc = strip_tags($metadesc);
    ?>
    <meta name="description" content="<?php echo $metadesc; ?>" />
</head>

<body>
    <?php
    if(get_option('wicketpixie_enable_ajax_loader') == 'true') { ?>
	<!-- DIV Loader -->
	<div id="loadingFrame">
		<div id="loading">
		    <img src="<?php echo get_template_directory_uri(); ?>/images/loading.gif" alt="Loading"/><br />
		    <b>Loading....</b>
        </div>
	</div>
	<?php } else { ?>
	<!-- AJAX loader disabled, enable it in WicketPixie Settings -->
	<?php } ?>
	<?php flush(); ?>
<!-- google_ad_section_start(weight=ignore) -->
	<!-- topbar -->
	<div id="topbar">
		
		<!-- topbar-inner -->
		<div id="topbar-inner">			
			<ul>
				<li id="topbar-subscribe"><a href="#">Suscribite</a></li>
				<?php if (is_user_logged_in()) { ?><li id="topbar-admin"><a href="<?php bloginfo('wpurl'); ?>/wp-admin" rel="nofollow">Admin</a></li><?php } ?>
			</ul>		
            <?php include (TEMPLATEPATH . '/searchform.php'); ?>
		</div>
		<!-- /topbar-inner -->
		
	</div>
	<!-- /topbar -->
	
	<!-- subscribe -->
	<div id="subscribe">			
		<ul>				
			<li><a href="<?php echo $blogfeed; ?>" title="Subscribe to my feed" class="feed" rel="nofollow">RSS Feed</a></li>
			<li><a href="http://www.bloglines.com/sub/<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Bloglines</a></li>
			<li><a href="http://fusion.google.com/add?feedurl=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Google Reader</a></li>			
			<li><a href="http://feeds.my.aol.com/add.jsp?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">My AOL</a></li>
			<li><a href="http://my.msn.com/addtomymsn.armx?id=rss&amp;ut=<?php echo $blogfeed; ?>&amp;ru=<?php echo get_settings('home'); ?>" class="feed" rel="nofollow">My MSN</a></li>
			<li><a href="http://add.my.yahoo.com/rss?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">My Yahoo!</a></li>
			<li><a href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">NewsGator</a></li>			
			<li><a href="http://www.pageflakes.com/subscribe.aspx?url=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Pageflakes</a></li>
			<li><a href="http://technorati.com/faves?add=<?php echo get_settings('home'); ?>" class="feed" rel="nofollow">Technorati</a></li>
			<li><a href="http://www.live.com/?add=<?php echo $blogfeed; ?>" class="feed" rel="nofollow">Windows Live</a></li>
		</ul>
		<form action="http://feedburner.google.com/fb/a/mailverify" method="post" target="popupwindow" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=zeblog-ar', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true">Email: <input type="text" size="13" name="email"/><input type="hidden" value="zeblog-ar" name="uri"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Suscribirse" /></form>
	</div>
	<!-- /subscribe -->
    
	<!-- header -->
	<div id="header">
		
		<!-- header-inner -->
		<div id="header-inner">
			
			<div id="logo">
                <?php
                if(get_option('wicketpixie_theme_header_size')) {
                    $fontsize = get_option('wicketpixie_theme_header_size');
                    echo '<span style="font-size:',$fontsize,'px;">';
                    ?>
                            <a href="<?php echo get_option('home'); ?>/" rel="nofollow"><?php bloginfo('name'); ?></a>
                    <?php
                    echo "</span>";
                } else {
                ?>
                <a href="<?php echo get_option('home'); ?>/" rel="nofollow"><?php bloginfo('name'); ?></a>
                <?php } ?>
			</div>
			
			<!-- google_ad_section_end -->
			<?php if (function_exists('aktt_latest_tweet')) { ?>				
			<!-- status -->
			<div id="status">	
				<div id="twitter-tools">
					<?php echo get_avatar('1', $size = '36', $default = 'images/avatar.jpg'); ?>
					<p><?php aktt_latest_tweet(); ?></p>
					<div id="status-bottom">&nbsp;</div>
				</div>
			</div>
			<!-- /status -->
			<?php } elseif ($status->select()) { ?>
			<!-- status -->
			<div id="status">	
				<?php echo get_avatar('1', $size = '36', $default = 'images/avatar.jpg'); ?>
				<p><?php echo $status->display(); ?></p>
				<div id="status-bottom">&nbsp;</div>
			</div>
			<!-- /status -->
			<?php } else { ?>
			<div id="status">
			    <?php echo get_avatar('1', $size = '36', $default = 'images/avatar.jpg'); ?>
			    <p id="description"><?php bloginfo('description'); ?></p>
			    <div id="status-bottom">&nbsp;</div>
			</div>
			<?php } ?>
			<!-- google_ad_section_start(weight=ignore) -->
			
			<!-- leaderboard -->
			<?php
			if(is_enabled_adsense() == true) {
			?>
			    <div id="leaderboard">
				<?php $adsense->wp_adsense("blog_header"); ?>
			    </div>
			<?php
			} elseif(is_enabled_adsense() == false) {
			?>
			    <!-- Enable Adsense on the WicketPixie Adsense Ads admin page. -->
			<?php
			}
			?>
			<!-- /leaderboard -->
			
		</div>
		<!-- /header-inner -->
		
	</div>
	<!-- /header -->
	
	<!-- nav -->
	<div id="nav">
		<ul>
			 <?php wp_nav_menu( array( 'theme_location' => 'primary','fallback_cb'=> ” ) ); ?>
		</ul>
	</div>
	<!-- /nav -->

    <!-- google_ad_section_end -->
	<!-- wrapper -->
	<div id="wrapper">
		
		<!-- mid -->
		<div id="mid" class="content">
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
PHP:
<?php wp_nav_menu( array( 'theme_location' => 'primary','fallback_cb'=> ” ) ); ?>

is the line in question.

Code:
'fallback_cb'=> ”

doesn't look right.
 

zebaszp46

New Member
Messages
3
Reaction score
0
Points
0
Ok, I changed:
Code:
'fallback_cb'=> ”
for:
Code:
'fallback_cb'=> ''
That seems to have done it. Thanks for the help. But I found a little quirk while checking everything worked. On the header, there is a RSS button which should bring a drop-down menu, but clicking it does nothing. You can check on the link I provided earlier.
 
Status
Not open for further replies.
Top