Support » Plugins » Help! Parse Error

  • Resolved JSDavis82


    In attempting to implement a dynamic sidebar on my blog so I can use the widget plugin, I get a strange parse error on line 90. Line 90 isn’t even a line near the code to make the sidebar dynamic, but when I take that code out, the site works again. Can anyone help please?

Viewing 5 replies - 1 through 5 (of 5 total)
  • chaaban


    nop we cant 🙂


    good luck for you when at least u past the code 😉



    If you’d like to toss your code in a pastebin (one is and then give us a link, someone could take a link.

    A link to the site in question may be helpful too.



    so sorry, new to wordpress. here’s the code.

    function.php also contains the code:

    if ( function_exists('register_sidebar') )

    thanks for the help!

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Between line 83 and 84, just before the </div>, add this:
    <?php endif; ?>

    The reason is this bit of code:
    <?php if ( !function_exists('dynamic_sidebar')
    || !dynamic_sidebar() ) : ?>

    That is basically saying to display the widget sidebar if it’s enabled, but if it’s not, display the following default sidebar code instead. You need the endif to tell it where the end of the default sidebar code is.



    thanks otto, that worked. check out the blog

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Help! Parse Error’ is closed to new replies.