Support » Themes and Templates » unexpected t_endif

  • Resolved


    Okay, I was trying to delete some things from my sidebar, and it looks like I messed up. This is the error I’m seeing:

    Parse error: parse error, unexpected T_ENDIF in /home/content/g/a/m/gamzattinapoli/html/wp-content/themes/UpstartBloggerMinim/ubminim/sidebar.php on line 94

    Here’s my sidebar code:

    <div id="sidebar">
    <a href="<?php echo get_settings('home'); ?>/"><img src="" width="336" alt="<?php bloginfo('name'); ?>" /></a><br />
    <div class="sitetitle"><?php bloginfo('name'); ?></a></div>
    <div id="description"><?php bloginfo('description'); ?></div>
    <div id="ads">
    <a href=""><img src="" class="adpicleft"></a>
    <a href=""><img src="" class="adpicmiddle"></a>
    <a href=""><img src="" class="adpicright"></a>
    <div id="subcolumns">
    <div id="subcolumnleft">
    <div class="subcolumnheadline">SEARCH</div>
    	<?php include(TEMPLATEPATH . '/searchform.php'); ?>
    <br />
    <br />
    <div class="subcolumnheadline">CLICKAGE</div>
    Visit my other projects: <a href=''>Tumblr</a>, <a href="">i love life i love you</a>, <a href="">30 Knits in 30 Days</a>, and <a href="">The Minor Leagues</a>.
    See the rest of my writing: <a href="">Almost Four Stars</a>, <a href="">Above the Fray</a>, and <a href="">TaskBlog</a>.
    Still want more? <a href="">Follow me</a> on Twitter.
    <br />
    <a href=""
    src="" width="150"></a>
    <br />
    <br />
    <div id="subcolumnright">
    <div class="subcolumnheadline">FEEDS</div>
    <li><a href="<?php bloginfo('rss2_url'); ?>">Subscribe via RSS</a></li>
    <li><a href="">Subscribe to amanda lee dot org by Email</a>
    <li><a href="<?php bloginfo('comments_rss2_url'); ?>">Comments (RSS)</a></li>
    <br />
    <br />
    <div class="subcolumnheadline">POPULAR POSTS</div>
    <li><a href="">Essential Sewing Skills for Wardrobe Maintenance</a></li>
    <li><a href="">The 80/20 Rule...Sartorialized</a></li>
    <li><a href="">Pre-Move Decluttering: Packing Without Screaming</a></li>
    <li><a href="">How to Love Your Life, Even If You Hate Your Job</a></li>
    <li><a href="">A Reiteration: Why Fashion Is Important</a></li>
    <li><a href="">I Take Off My Clothes for Money</a></li>
    <li><a href="">Frugal Fashion From My Mum</a></li>
    <li><a href="">The Cost Per Wear: How Much Is Your Clothing Worth?</a></li>
    <li><a href="">The Value of Outfit Photos</a></li>
    <?php if (function_exists('wp_list_pages')) { ?>
    <?php wp_list_pages('title_li=' ); ?>
    <?php } ?>
    <?php if (function_exists('akpc_most_popular')) { ?>
    <?php akpc_most_popular($limit = 5); ?>
    <?php } ?>
    <!-- edit this to add your own advertising content -->
    <p><a href="<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/feed-icon-28x28.png" alt="Feed" /></a></p>
    			<?php endif; ?>
    	Copyright &copy; 2007-2010 by Amanda Lee. All rights reserved.

    Any thoughts? Suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi


    Forum Moderator

    Try removing <?php endif; ?> near the end of the file. And next time, please use the WordPress pastebin for copies of complete files and post the pastebin url here. It makes life easier for everyone.

    Oh, sorry, I didn’t know about the pastebin! Thanks for the tip.

    Also, this fixed it. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘unexpected t_endif’ is closed to new replies.