Support » Installing WordPress » parse error problem—please any help

  • Resolved chaz19

    (@chaz19)


    I know I’m missing a bracket or some piece of code is open… but my eyes can’t seem to find it. Any help would be greatly appreciated… I’ve been staring at the same code for too long. Here’s the HTML of my sidebar:

    <div id="sidebar">
    <div id="noindent">
    <ul>
    <?php /* If this is the frontpage */ if ( !is_home() ) { ?>
    <li>
    <h2><a href="http://www.chazsouthard.org">Home</a></h2>
    </li>

    <li>
    <h2><?php _e('Author'); ?></h2>
    <ul>
    Chaz Southard, Boston, MA, naturalist, poet, designer, research advocate, amateur photographer, survivor and dreamer <a href="http://www.chazsouthard.org/wordpress/?p=54"&gt; {{Bio}} </a></ul>
    </li>
    <!--
    <li>
    <h2><?php _e('Search'); ?></h2>
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>
    </li>
    <?php if (function_exists('wp_theme_switcher')) { ?>
    <li>
    <h2><?php _e('Themes'); ?></h2>
    <ul>
    <li><?php wp_theme_switcher(); ?></li>
    </ul>
    </li>
    <?php } ?>

    <li>
    <h2><?php _e('Categories'); ?></h2>
    <ul>
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','') ?>
    </ul>
    </li>

    -->

    <li>
    <?php get_links_list(); ?>
    </li>

    <li>
    <h2><?php _e('Archive'); ?></h2>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>
    </li>

    <!--
    <li>

    <h2>Meta</h2>
    <ul>
    <?php wp_register(); ?>
    <li><?php wp_loginout(); ?></li>
    <?php wp_meta(); ?>
    <li><a href="http://validator.w3.org/check/referer&quot; title="valid xhtml 1.1"><img src="images/validxhtml11.png" alt="valid xhtml 1.1" /></a></li>
    <li><a href="http://jigsaw.w3.org/css-validator/check/referer&quot; title="valid css"><img src="images/validcss.png" alt="valid css" /></a></li>
    </ul>

    </li>
    -->
    </ul>
    </div> <!-- end of noindent -->
    </div>

    <!--
    <div id="sidebar2">
    <div id="noindent2">
    <ul>
    <li>

    </ul>
    </li>
    </ul>
    </div>
    </div>
    -->

Viewing 3 replies - 1 through 3 (of 3 total)
  • hi!

    i assume that this is the error. everything else looks fine. the list_cats(…) doesn’t finish with a semicolon. try it.

    <li>
    <h2><?php _e('Categories'); ?></h2>
    <ul>
    <?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','',''); ?>
    </ul>
    </li>

    regards, m3nt0r

    Thread Starter chaz19

    (@chaz19)

    mentor, thank you for the help–no luck yet

    I’m still receiving this error.
    Parse error: parse error, unexpected $ in

    from the sidebar of my web site, which is http://www.chazsouthard.org.

    please does anyone else have any ideas or help on where to correct my error? I thank you in advance for your time and effort…..

    Thread Starter chaz19

    (@chaz19)

    I think it is a missing brace, but I just can’t find that brace…please any help

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘parse error problem—please any help’ is closed to new replies.