Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/filename.html.php on line 1834
<p>I am getting an error message when trying to load a page on my site;</p>

<p>Parse error: syntax error, unexpected T_ELSE, expecting T_FUNCTION in /home/filename.html.php on line 1834.</p>

<p>Looking at my code, it looks correct.  I cannot find any missing brackets or extra characters.</p>

<pre><code>&lt;?php
} 
else
{ ?&gt;
    &lt;div class="componentheading"&gt;&lt;?php echo JText::_('Purchase New Subscription')?&gt;&lt;/div&gt;
        &lt;div class="contentpanopen"&gt;
            &lt;p&gt;&lt;a href="&lt;?php echo JRoute::_("index.php?option=com_jcs&amp;view=jcs&amp;layout=history&amp;Itemid=$Itemid")?&gt;"&gt;
            &lt;?php echo JText::_('Subscriptions History')?&gt;&lt;/a&gt;&lt;/p&gt;
            &lt;p&gt; No subscription Plans have been assigned to you, to to know more about our subscription plans please contact us at &lt;a href="mailto:Renoferri@gmail.com"&gt;Renoferri@gmail.com&lt;/a&gt; &lt;/p&gt;
   &lt;?php
}

}
</code></pre>

<p>Line 1834 is the line with just the word "else" on it.</p>

<p>This code immediately follows a  javascript.</p>

<p>If I remove the line, or this code, I get other errors.  I think maybe something is not being escaped, but no matter what I try, I cannot get the dang error fixed.</p>

<p>Any ideas to try anyone?</p>

<p>Thanks,
Bill</p>
