• Hello.
    I was fumbling around in my sidebar.php, and out of the blue it was fucked up (a)

    Anyway, my error looks like this:
    Parse error: syntax error, unexpected T_STRING, expecting ‘(‘ in /home/a9872283/public_html/wp-content/themes/absynthe/sidebar.php on line 2

    My sidebar.php looks like this:
    <div id=”sidebar”>
    <?php if function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : ?>

    <div class=”main”>
    <div class=”middle”>
    <div class=”bottom”>
    <h2>Categories</h2>

      <? wp_list_cats(); ?>

    </div>
    </div>
    </div>

    <? endif; ?>
    </div>

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter mathiasf

    (@mathiasf)

    I tried by myself, but it didn’t work.
    Look at: http://www.design.netii.net for the error.

    Now the sidebar.php code looks like this:

    <div id=”sidebar”>
    <?php if (function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(1)) : ?>
    <?php endif; ?>

    <div class=”main”>
    <div class=”middle”>
    <div class=”bottom”>
    <h2>Categories</h2>

      <?php wp_list_cats(); ?>
      <?php include(‘adsense_sidebar.php’) ?>

    </div>
    </div>
    </div>
    </div>

    <?php if (function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

    Missing opening bracket for the if statement.

    Thread Starter mathiasf

    (@mathiasf)

    Thanks, but now it’s a another problem.
    I can just see my categories, and not my other sidebars widgets. Why?

    Try `<?php if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Left Column’) ) : ?>
    <?php endif; ?>
    `

    Thread Starter mathiasf

    (@mathiasf)

    Unfortunately it’s now working.

    <div id=”sidebar”>
    <?php if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Left Column’) ) : ?>
    <?php endif; ?>

    Unfortunately??? πŸ™‚

    Thread Starter mathiasf

    (@mathiasf)

    What is the problem? πŸ˜›

    Thread Starter mathiasf

    (@mathiasf)

    Please help.

    <div id=”sidebar”>
    <?php if (!function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Left Column’) ) : ?>
    <?php endif; ?>

    <div class=”main”>
    <div class=”middle”>
    <div class=”bottom”>
    <h2>Categories</h2>

    <? wp_list_cats(); ?>
    </div>
    </div>
    </div>

    <? endif; ?>
    </div>

    I still get the error message

    Why not just download a fresh copy of your theme and replace the bad sidebar.php with the unedited one?

    Thread Starter mathiasf

    (@mathiasf)

    Thanks Iridiax πŸ˜€

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.