Am getting this error: Parse error: syntax error, unexpected $e

Closed
seanbrunett
Posts
2
Registration date
Friday November 8, 2013
Status
Member
Last seen
November 8, 2013
- Nov 8, 2013 at 03:41 PM
BunoCS
Posts
15266
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
June 24, 2022
- Nov 8, 2013 at 04:38 PM
Error: Parse error: syntax error, unexpected $end in /home/paleyrot/public_html/wp-content/themes/PaleyRothman_4/index.php on line 44
Here: can someone help?
<?php

get_header();

$my_query = new WP_Query('category_name=\'blog-posts\'');

?>

<div id="main">
<div id="left" style="background-color: #243461">
<div id="left_text">
<a href="http://www.paleyrothman.com/category/blog-posts/page/2/">Past Blogs </a><br /><a href="https://www.paleyrothman.com/legal-blog?tag=commercial-transactions">Commercial Transactions Blogs <a href="https://www.paleyrothman.com/legal-blog?tag=employment-law">Employment Law Blogs </a><br /> <a href="https://www.paleyrothman.com/legal-blog?tag=estate-planning">Estate Planning Blogs </a><br /> <a href="https://www.paleyrothman.com/legal-blog?tag=family-law">Family Law Blogs </a><br /> <a href="https://www.paleyrothman.com/legal-blog?tag=real-estate">Real Estate Blogs </a><br /><a href="https://www.paleyrothman.com/legal-blog?tag=regulatory-law-litigation">Regulatory Law & Litigation Blogs </a><br /> <a href="https://www.paleyrothman.com/legal-blog?tag=retirement-plans">Retirement Plans Blogs </a><br /> <a href="https://www.paleyrothman.com/legal-blog?practice=13">Tax Blogs<br /><br /><br /><br /><!--extended on 7.23.09--><br /><br /><br /><br />
</div>
<img src="http://www.paleyrothman.com/wp-content/uploads/2009/06/photo_blog.jpg" />
</div>


<?php if (have_posts()) : ?>

<div id="content">
<div id="text">

<span class="head">The Paley Rothman Blog</span>

<?php while ($my_query->have_posts()) : $my_query->the_post(); ?>

<?php if ( in_category(5) ): ?>

<div class="post news" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<!--<p><small><?php the_time('F jS, Y') ?> Posted by <?php the_author() ?></small></p>-->

<?php the_content('Read the rest of this entry »'); ?>
<small><?php the_time('F Y') ?></small>
<!--<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>-->
</div>


<?php else : ?>
<?php endif; ?>

<?php endwhile; ?>

<?php/*
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>

</div>



<?php else : ?>

<div id="content">
<div id="text">

<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>

</div>
<div id="footer">
<?php get_footer(); ?>
</div>
</div>

<?php endif; ?>

<div class="clear"></div>
</div> <!-- End Main Div -->

</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl" : "http://www");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-10416458-1");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>
</html>
<?php unset($_SESSION['contact']); ?>

3 replies

BunoCS
Posts
15266
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
June 24, 2022
1,544
Nov 8, 2013 at 04:16 PM
Hello,

First of all, please, keep in mind that Kioskea is a mutual aid community. All answers on the forum are provided by volunteers who give their free time to help solve issues.

Notice that it is specifically requested to Kioskea forum users to show mutual respect in the discussions. Therefore, when requesting assistance, thanks for being courteous and for using polite expressions, as for elsewhere in similar circumstances. (i.e. "please", "thank you", "appreciate", "grateful", etc.)

https://ccm.net/contents/948-terms-of-use-for-ccm-respect-for-others#politesse

Then, use code tags to display your code: 4th icon above the textarea.

Moreover, you don't tell us where is the line 44

And finally, you don't have to repeat the php tags! Put
<?php
at the beginning of your page and
?>
at the end

Thanks for your understanding...
0
seanbrunett
Posts
2
Registration date
Friday November 8, 2013
Status
Member
Last seen
November 8, 2013

Nov 8, 2013 at 04:23 PM
Hello BunoCs,

Yes, I apologize for not being as polite as I could have. I had a short timetable, but that is no excuse. Of course I am thankful for anyone and everyone who responds on here and I will do my best to respond to inquires as well.
0
BunoCS
Posts
15266
Registration date
Monday July 11, 2005
Status
Moderator
Last seen
June 24, 2022
1,544
Nov 8, 2013 at 04:38 PM
OK, nice.

<?php/*  

<div class="navigation">


Shouldn't you delete the first line?

@+
Buno, Modo CS-CCM
L'urgent est fait, l'impossible est en cours. Pour les miracles, prévoir un délai...
The urgent is done, the impossible is underway. For miracles, envisage a time ...
0