This is showing up below the sidebar: 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? Probably something simple. I'd post the code, but I'll wait incase someone knows what this is without looking. Thanks.
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 -->
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?
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.
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.
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.
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
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. Weird. Never had this happen before. Thanks for your time, much appreciated.
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
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)