Wordpress error on the sidebar?

Discussion in 'HTML & Website Design' started by chris22, Jun 28, 2006.

  1. #1
    This is showing up below the sidebar:

    [​IMG]

    The line (shown at the bottom of the pic) goes all the way through the text on the left. I thought I didn't close a tag somewhere but they're all closed. Sometimes it shows a lowercase "s" instead of the ")."

    Maybe I'm overlooking something? :confused: Probably something simple. :eek:

    I'd post the code, but I'll wait incase someone knows what this is without looking.

    Thanks.
     
    chris22, Jun 28, 2006 IP
  2. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #2
    It is something simple but without the code I doubt anyone can tell you exactly what it is.
     
    Colbyt, Jun 28, 2006 IP
  3. chris22

    chris22 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok, this is for sidebar.php: (I'll remove it once the prob is fixed)

    <hr class="low" />

    <!-- subcontent ................................. -->
    <div id="subcontent">

    <?php /**
    * Pages navigation. Disabled by default because all new pages are added
    * to the main navigation.
    * If enabled: Blix default pages are excluded by default.
    *
    ?>
    <h2><em>Pages</em></h2>
    <ul class="pages">
    <?php
    $excluded = BX_excluded_pages();
    wp_list_pages('title_li=&sort_column=menu_order&exclude='.$excluded);
    ?>
    </ul>

    <?php */ ?>

    <?php if (is_home()) { ?>

    <?php
    /**
    * If a page called "about_short" has been set up its content will be put here.
    * In case that a page called "about" has been set up, too, it'll be linked to via 'More'.
    */
    $pages = BX_get_pages('with_content');
    if ($pages) {
    foreach ($pages as $page) {
    $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_name;
    $page_content = $page->post_content;

    if ($page_name == "about") $more_url = '<a href="'.get_page_link($page_id).'" class="more">More</a>';
    if ($page_name == "about_short") {
    $about_title = $page_title;
    $about_text = BX_remove_p($page_content);
    }
    }
    if ($about_text != "") {
    echo "<h2><em>".$about_title."</em></h2>\n";
    echo "<p>".$about_text;
    if ($more_url != "") echo " ".$more_url;
    echo "</p>\n";
    }
    }
    ?>

    <h2><em>Categories</em></h2>

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>
    </ul>

    <h2><em>Links</em></h2>

    <ul class="links">
    <?php get_links('-1', '<li>', '</li>', '', 0, 'name', 0, 0, -1, 0); ?>
    </ul>

    <h2><em>Feeds</em></h2>

    <ul class="feeds">
    <li><a href="<?php bloginfo_rss('rss2_url'); ?> ">Entries (RSS)</a></li>
    <li><a href="<?php bloginfo_rss('comments_rss2_url'); ?> ">Comments (RSS)</a></li>
    </ul>

    <?php } ?>


    <?php if (is_single()) { ?>

    <h2><em>Calendar</em></h2>

    <?php get_calendar() ?>

    <h2><em>Most Recent Posts</em></h2>

    <ul class="posts">
    <?php BX_get_recent_posts($p,10); ?>
    </ul>

    <?php } ?>


    <?php if (is_page("archives") || is_archive() || is_search()) { ?>

    <h2><em>Calendar</em></h2>

    <?php get_calendar() ?>

    <?php if (!is_page("archives")) { ?>

    <h2><em>Posts by Month</em></h2>

    <ul class="months">
    <?php get_archives('monthly','','','<li>','</li>',''); ?>
    </ul>

    <?php } ?>

    <h2><em>Posts by Category</em></h2>

    <ul class="categories">
    <?php wp_list_cats('sort_column=name&hide_empty=0'); ?>
    </ul>

    <?php } ?>
    </div><!-- /subcontent -->
     
    chris22, Jun 28, 2006 IP
  4. chris22

    chris22 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    no one? It's b/c I'm a "peon" right..
     
    chris22, Jun 29, 2006 IP
  5. Zybatsu

    Zybatsu Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Did you do any custom work on it? I use Wordpress and know some PHP but didn't see anything (but I'm a peon too). How about overwriting that file?
     
    Zybatsu, Jun 29, 2006 IP
  6. chris22

    chris22 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I tweaked the template but didn't change much in the sidebar. I did remove the links and adsense out of the code I posted.

    Thanks for the response.
     
    chris22, Jun 29, 2006 IP
  7. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #7
    There is no break in the code that I can see. That is the code you chose to provide. It may be in the parts you chose to omit.

    Most likely you are looking for the broken half of the equation. Namely a missing (

    I suggest you restore the file from backup and be more careful when you make modifications. It is very easy to break PHP.

    If you want to tough it out with this version download and install Notepad2. Then open the file using it and use the syntax highlite function to find the missing element.

    BTW, negative comments about a lack of help is not the way to garner help. I realize you are frustrated so I chose to reply anyway.

    Best wishes.
     
    Colbyt, Jun 29, 2006 IP
  8. chris22

    chris22 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Thanks Colbyt for the response. That wasn't a negative comment btw, more of a joke :)

    I have restored the file and it didn't change anything.

    I'll try what you suggested with notepad2.

    Thanks for your time.
     
    chris22, Jun 29, 2006 IP
  9. newrhodes

    newrhodes Active Member

    Messages:
    918
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    68
    #9
    Can u post the url? Also, details of which theme you're using?
     
    newrhodes, Jun 29, 2006 IP
  10. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #10
    You forgot to mention which browser does this, but I'll assume IE. See IE duplicate characters bug.

    [edit] I should also point out that when posting code, we don't need or want to see the php. We need the server output, what the browser sees. An easy way to do that is to either give us a link, or open the page in your browser, view source, and copy/paste. [/edit]

    cheers,

    gary
     
    kk5st, Jun 29, 2006 IP
  11. chris22

    chris22 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I'm using the blix theme.


    IE6. I thought since that's the code I have to edit to fix the prob, I should post it. Which helped b/c I was just starting at the post and decided to put a <br> after <!-- /subcontent --> . It's fixed now. :rolleyes: Weird. Never had this happen before.

    Thanks for your time, much appreciated.
     
    chris22, Jun 30, 2006 IP
  12. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #12
    Did you read the info at the link I gave you? Adding that br tag likely broke one of the triggers to the bug.

    The duplicate character bug isn't all that common, but it's triggered by common artifacts, so it can't be considered rare either. Since there is no apparent connection between the cause and effect, it can be tough to get a handle on if you're not already familiar with it.

    The php is used to output html, but it's the html that must be debugged. Once you have the html right, it's trivial to alter the php. It is difficult to debug html from the php. So, let's do it ther more effective way.

    cheers,

    gary
     
    kk5st, Jun 30, 2006 IP
  13. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #13
    Glad to hear that you resolved the problem.
     
    Colbyt, Jun 30, 2006 IP
  14. pala

    pala Banned

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    it does:confusednt work for me yet :confused:
     
    pala, Jul 1, 2006 IP
  15. chris22

    chris22 Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #15
    Yes, I read the first few paragraphs. You're right, probably was a bug, as that's never happened before.

    Thanks again for your time. (Colbyt too)
     
    chris22, Jul 6, 2006 IP