<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>THE MOLITOR FORUMS &#187; Topic: Parse error: syntax error</title>
		<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error</link>
		<description>THE MOLITOR FORUMS &#187; Topic: Parse error: syntax error</description>
		<language>en-US</language>
		<pubDate>Sun, 10 May 2026 06:43:34 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.themolitor.com/forums/search.php</link>
		</textInput>
		<atom:link href="http://www.themolitor.com/forums/rss/topic/parse-error-syntax-error" rel="self" type="application/rss+xml" />

		<item>
			<title>THE MOLITOR on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22204</link>
			<pubDate>Mon, 22 Jul 2013 12:25:36 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">22204@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>The error message you posted refers to line 1, so I'm not sure what you want me to check. Please clarify your request.</p>
<p>Regarding re-installing, that shouldn't make a difference (unless you made edits to the template files). That said, please make sure you have the latest version of the theme (posted under "Updates" on the item page on ThemeForest).</p>
<p>Thanks!</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>lovexstereo on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22201</link>
			<pubDate>Mon, 22 Jul 2013 11:10:43 +0000</pubDate>
			<dc:creator>lovexstereo</dc:creator>
			<guid isPermaLink="false">22201@http://www.themolitor.com/forums/</guid>
			<description><p>And also, if you think I should re-install "nocturnal" theme, please let me know as well. Thank you.
</p></description>
		</item>
		<item>
			<title>lovexstereo on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22200</link>
			<pubDate>Mon, 22 Jul 2013 10:58:08 +0000</pubDate>
			<dc:creator>lovexstereo</dc:creator>
			<guid isPermaLink="false">22200@http://www.themolitor.com/forums/</guid>
			<description><p>Could u please check this "theme function" for me though?</p>
<p>===========================================================</p>
<p>&#60;?php session_start(); ?<br />
/**<br />
 * Optional: set 'ot_show_pages' filter to false.<br />
 * This will hide the settings &#38; documentation pages.<br />
 */<br />
add_filter( 'ot_show_pages', '__return_false' );</p>
<p>/*Required: set 'ot_theme_mode' filter to true*/<br />
add_filter( 'ot_theme_mode', '__return_true' );</p>
<p>/*Required: include OptionTree*/<br />
include_once( 'option-tree/ot-loader.php' );</p>
<p>/*Theme Options*/<br />
include_once( 'theme-options.php' );</p>
<p>if ( ! isset( $content_width ) ) $content_width = 510;</p>
<p>//ADDED IN 1.1<br />
add_filter('next_posts_link_attributes', 'posts_link_attributes');<br />
function posts_link_attributes() {<br />
    return 'class="nextpostslink"';<br />
}</p>
<p>add_theme_support('automatic-feed-links' );</p>
<p>//FEATURED IMAGE SUPPORT<br />
add_theme_support( 'post-thumbnails');<br />
set_post_thumbnail_size( 510, 999);<br />
add_image_size( 'slider',235 ,999);<br />
add_image_size( 'gallery',78 ,78,true );</p>
<p>//CATEGORY ID FROM NAME FOR PAGE TEMPLATES<br />
function get_category_id($cat_name){<br />
	$term = get_term_by('name', $cat_name, 'category');<br />
	return $term-&#62;term_id;<br />
}</p>
<p>//EXCERPT STUFF<br />
function new_excerpt_length($length) {<br />
	return 25;<br />
}<br />
add_filter('excerpt_length', 'new_excerpt_length');<br />
function new_excerpt_more($more) {<br />
       global $post;<br />
	return ' ...';<br />
}<br />
add_filter('excerpt_more', 'new_excerpt_more');</p>
<p>//ADD MENU SUPPORT<br />
add_theme_support( 'menus' );<br />
register_nav_menu('main', 'Main Navigation Menu');</p>
<p>//REPLACE FOOTER INFO<br />
function remove_footer_admin () {<br />
    echo "Theme designed and developed by <a href='http://themeforest.net/user/themolitor/portfolio?ref=themolitor'>THE MOLITOR</a>";<br />
}<br />
add_filter('admin_footer_text', 'remove_footer_admin');</p>
<p>//BREADCRUMBS<br />
function dimox_breadcrumbs() {<br />
  $delimiter = '&#160;/&#160;';<br />
  $name = 'Home';<br />
  $currentBefore = '&#60;span class="current"&#62;';<br />
  $currentAfter = '&#60;/span&#62;';<br />
  if ( !is_home() &#38;&#38; !is_front_page() &#124;&#124; is_paged() ) {<br />
    echo '&#60;div id="crumbs"&#62;';<br />
    global $post;<br />
    $home = home_url();<br />
    echo '<a href="' . $home . '">' . $name . '</a> ' . $delimiter . ' ';<br />
    if ( is_category() ) {<br />
      global $wp_query;<br />
      $cat_obj = $wp_query-&#62;get_queried_object();<br />
      $thisCat = $cat_obj-&#62;term_id;<br />
      $thisCat = get_category($thisCat);<br />
      $parentCat = get_category($thisCat-&#62;parent);<br />
      if ($thisCat-&#62;parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '));<br />
      echo $currentBefore . '';<br />
      single_cat_title();<br />
      echo '' . $currentAfter;<br />
    } elseif ( is_day() ) {<br />
      echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' ';<br />
      echo '<a href="' . get_month_link(get_the_time('Y'),get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $delimiter . ' ';<br />
      echo $currentBefore . get_the_time('d') . $currentAfter;<br />
    } elseif ( is_month() ) {<br />
      echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $delimiter . ' ';<br />
      echo $currentBefore . get_the_time('F') . $currentAfter;<br />
    } elseif ( is_year() ) {<br />
      echo $currentBefore . get_the_time('Y') . $currentAfter;<br />
    } elseif ( is_single() &#38;&#38; !is_attachment() ) {<br />
      $cat = get_the_category(); $cat = $cat[0];<br />
      echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');<br />
      echo $currentBefore;<br />
      //the_title();<br />
      echo "Current Page";<br />
      echo $currentAfter;<br />
    } elseif ( is_attachment() ) {<br />
      $parent = get_post($post-&#62;post_parent);<br />
      $cat = get_the_category($parent-&#62;ID); $cat = $cat[0];<br />
      echo get_category_parents($cat, TRUE, ' ' . $delimiter . ' ');<br />
      echo '<a href="' . get_permalink($parent) . '">' . $parent-&#62;post_title . '</a> ' . $delimiter . ' ';<br />
      echo $currentBefore;<br />
      the_title();<br />
      echo $currentAfter;<br />
    } elseif ( is_page() &#38;&#38; !$post-&#62;post_parent ) {<br />
      echo $currentBefore;<br />
      the_title();<br />
      echo $currentAfter;<br />
    } elseif ( is_page() &#38;&#38; $post-&#62;post_parent ) {<br />
      $parent_id  = $post-&#62;post_parent;<br />
      $breadcrumbs = array();<br />
      while ($parent_id) {<br />
        $page = get_page($parent_id);<br />
        $breadcrumbs[] = '<a>ID) . '"&#62;' . get_the_title($page-&#62;ID) . '</a>';<br />
        $parent_id  = $page-&#62;post_parent;<br />
      }<br />
      $breadcrumbs = array_reverse($breadcrumbs);<br />
      foreach ($breadcrumbs as $crumb) echo $crumb . ' ' . $delimiter . ' ';<br />
      echo $currentBefore;<br />
      the_title();<br />
      echo $currentAfter;<br />
    } elseif ( is_search() ) {<br />
      echo $currentBefore . 'Search Results' . $currentAfter;<br />
    } elseif ( is_tag() ) {<br />
      echo $currentBefore . 'Posts tagged &#039;';<br />
      single_tag_title();<br />
      echo '&#039;' . $currentAfter;<br />
    } elseif ( is_author() ) {<br />
       global $author;<br />
      $userdata = get_userdata($author);<br />
      echo $currentBefore . 'Articles posted by ' . $userdata-&#62;display_name . $currentAfter;<br />
    } elseif ( is_404() ) {<br />
      echo $currentBefore . 'Error 404' . $currentAfter;<br />
    }<br />
    if ( get_query_var('paged') ) {<br />
      if ( is_category() &#124;&#124; is_day() &#124;&#124; is_month() &#124;&#124; is_year() &#124;&#124; is_search() &#124;&#124; is_tag() &#124;&#124; is_author() ) echo ' (';<br />
      echo __('Page') . ' ' . get_query_var('paged');<br />
      if ( is_category() &#124;&#124; is_day() &#124;&#124; is_month() &#124;&#124; is_year() &#124;&#124; is_search() &#124;&#124; is_tag() &#124;&#124; is_author() ) echo ')';<br />
    }<br />
    echo '&#60;/div&#62;';<br />
  }<br />
}</p>
<p>//SIDEBAR GENERATOR (FOR SIDEBAR AND FOOTER)-----------------------------------------------<br />
if ( function_exists('register_sidebar') )<br />
register_sidebar(array('name'=&#62;'Live Widgets',<br />
		'before_widget' =&#62; '&#60;li id="%1$s" class="widget %2$s"&#62;',<br />
		'after_widget' =&#62; '&#60;/div&#62;',<br />
		'before_title' =&#62; '&#60;h2 class="widgettitle"&#62;',<br />
		'after_title' =&#62; '&#60;/h2&#62;&#60;div class="widgetcontent"&#62;',<br />
));</p>
<p>//CUSOTM POST OPTIONS<br />
$key = "key";</p>
<p>$meta_boxes = array(</p>
<p>"background" =&#62; array(<br />
"name" =&#62; "background",<br />
"title" =&#62; "Custom Background Image URL",<br />
"description" =&#62; "")</p>
<p>);<br />
function create_meta_box() {<br />
	global $key;<br />
	if( function_exists( 'add_meta_box' ) ) {<br />
		add_meta_box( 'new-meta-boxes', ' Custom Post Options', 'display_meta_box', 'post', 'normal', 'high' );<br />
		add_meta_box( 'new-meta-boxes', ' Custom Post Options', 'display_meta_box', 'page', 'normal', 'high' );<br />
	}<br />
}<br />
function display_meta_box() {<br />
	global $post, $meta_boxes, $key;<br />
?&#62;<br />
&#60;div class="form-wrap"&#62;<br />
&#60;?php wp_nonce_field( plugin_basename( __FILE__ ), $key . '_wpnonce', false, true );<br />
foreach($meta_boxes as $meta_box) {<br />
	$data = get_post_meta($post-&#62;ID, $key, true);<br />
?&#62;<br />
&#60;div class="form-field form-required"&#62;<br />
	&#60;label for="&#60;?php echo $meta_box[ 'name' ]; ?&#62;"&#62;&#60;?php echo $meta_box[ 'title' ]; ?&#62;&#60;/label&#62;<br />
	&#60;input type="text" name="&#60;?php echo $meta_box[ 'name' ]; ?&#62;" value="&#60;?php echo htmlspecialchars( $data[ $meta_box[ 'name' ] ] ); ?&#62;" /&#62;<br />
	&#60;p&#62;&#60;?php echo $meta_box[ 'description' ]; ?&#62;&#60;/p&#62;<br />
&#60;/div&#62;<br />
&#60;?php } ?&#62;<br />
&#60;/div&#62;<br />
&#60;?php<br />
}<br />
function save_meta_box( $post_id ) {<br />
	global $post, $meta_boxes, $key;<br />
	foreach( $meta_boxes as $meta_box ) {<br />
		$data[ $meta_box[ 'name' ] ] = $_POST[ $meta_box[ 'name' ] ];<br />
	}<br />
	if ( !wp_verify_nonce( $_POST[ $key . '_wpnonce' ], plugin_basename(__FILE__) ) )<br />
	return $post_id;<br />
	if ( !current_user_can( 'edit_post', $post_id ))<br />
	return $post_id;<br />
	update_post_meta( $post_id, $key, $data );<br />
}<br />
add_action( 'admin_menu', 'create_meta_box' );<br />
add_action( 'save_post', 'save_meta_box' );<br />
?&#62;
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22197</link>
			<pubDate>Mon, 22 Jul 2013 10:30:51 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">22197@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Based on the error message you're getting, there's nothing for me to troubleshoot because it's referencing a line with just an opening PHP tag. In other words, the "?" in "&#60;?php" is not unexpected as the error message says.</p>
<p>I can't imagine why a plugin would require you to change your PHP version. That seems a little odd to me. I'm not sure all that happens when a PHP version is changed, so I can't effectively narrow this issue down for you to troubleshoot.</p>
<p>Until I experience this issue myself or have other users start posting similar problems, I can only guess that it has to do with your particular hosting setup. My best suggestion at this point is to contact your hosting provider about why you're getting an error like this (i.e. unexpected "?" in "&#60;?php").</p>
<p>Hope you understand. Let me know if they offer any insight.</p>
<p>Thanks!</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>lovexstereo on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22194</link>
			<pubDate>Mon, 22 Jul 2013 10:12:10 +0000</pubDate>
			<dc:creator>lovexstereo</dc:creator>
			<guid isPermaLink="false">22194@http://www.themolitor.com/forums/</guid>
			<description><p>Do you have any suggestions for me to do?<br />
I'm deactivating my plugins, but I still can't change my theme to 'nocturnal' because of this message.
</p></description>
		</item>
		<item>
			<title>THE MOLITOR on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22187</link>
			<pubDate>Mon, 22 Jul 2013 09:21:37 +0000</pubDate>
			<dc:creator>THE MOLITOR</dc:creator>
			<guid isPermaLink="false">22187@http://www.themolitor.com/forums/</guid>
			<description><p>Hi there,</p>
<p>Looking at the error message, if you open functions.php and look at line 1 you'll see the following...</p>
<pre><code>&#60;?php</code></pre>
<p>As you can see, this is just the opening markup for PHP, so this isn't a problem caused by the themes functions.php file. If you're getting a parse error for basic PHP markup, then this has something to do either with your server changes or the plugin you're using.</p>
<p>Hope that sheds some additional light on the issue you're having.</p>
<p>Best,</p>
<p>Chris
</p></description>
		</item>
		<item>
			<title>lovexstereo on "Parse error: syntax error"</title>
			<link>http://www.themolitor.com/forums/topic/parse-error-syntax-error#post-22178</link>
			<pubDate>Sun, 21 Jul 2013 21:22:58 +0000</pubDate>
			<dc:creator>lovexstereo</dc:creator>
			<guid isPermaLink="false">22178@http://www.themolitor.com/forums/</guid>
			<description><p>Dear Chris, </p>
<p>I am using Nocturnal as my theme. <a href="http://lovexstereo.com" rel="nofollow">http://lovexstereo.com</a><br />
I recently updated my twitter vjck plugin, and also updated php to ver 5.3 (cause they told me to do so),<br />
and all of a sudden, my website is all down.<br />
So I switched my theme to a default theme, just in case.<br />
And I did check the "Live Preview" of Nocturnal, and I'm still getting this message.</p>
<p>Parse error: syntax error, unexpected '?' in /home/lovexstereo/lovexstereo.com/wp-content/themes/wpnocturnal/functions.php on line 1</p>
<p>I talked to my web host guys, and they said that this might be a php issue, and that i should discuss with you first.<br />
Please reply my message soon.<br />
Thank you so much.</p>
<p>Kind regards<br />
Annie
</p></description>
		</item>

	</channel>
</rss>
