WordPress.org

Ready to get started?Download WordPress

Forums

[1.5] Sidebar.php not working (23 posts)

  1. kri
    Member
    Posted 9 years ago #

    I just upgraded to 1.5, and so far it's going alright. The only problem I can see is that my sidebar.php page doesn't work. When I click on the link to open it, all that loads is a blank page. I tried to upload the older version of sidebar.php over the new one to see if there was something wrong with the new one, but no such luck.

  2. Michael Adams (mdawaffe)
    Member
    Posted 9 years ago #

    http://www.greenkri.com/ looks fine to me...

    What's supposed to happen?

  3. riley6902
    Member
    Posted 9 years ago #

    did you run the upgrade script for your database?

  4. kri
    Member
    Posted 9 years ago #

    I need to clarify. I meant the sidebar.php in wp-admin. The one that's used to post entries in a sidebar for Firefox. My theme works great, that's why it doesn't look as if anything's wrong : )

    Riley: I did run the upgrade script. I even deleted everything and did it a second time, but that's another matter.

  5. LoganSix
    Member
    Posted 9 years ago #

    I'm having the same problem.
    There is HTML code in the back ground if you view source, but the page doesn't display. There must be a missing tag or something.

  6. kri
    Member
    Posted 9 years ago #

    It can't be missing a tag in the sidebar.php, because I tried it with the sidebar.php that I know worked when I was using 1.2.2. The problem is switching to 1.5, then it stopped working.

  7. LoganSix
    Member
    Posted 9 years ago #

    I am assuming the sidebar.htm page has changed in 1.5.
    So, there must be something with the new page.

  8. How to properly turn your v1.2.x templates into v1.5 themes: http://codex.wordpress.org/Using_Themes#Moving_from_1.2.x_to_1.5

  9. kri
    Member
    Posted 9 years ago #

    sidebar.php in the wp-admin folder has nothing to do with 1.5 themes. If you look at my page you'll see I have the theme all installed and working. I'm not talking about the sidebar in my template. I just said..

    "I need to clarify. I meant the sidebar.php in wp-admin. The one that's used to post entries in a sidebar for Firefox. My theme works great, that's why it doesn't look as if anything's wrong : )"

    It's possible that there has been a change in wp-admin/sidebar.php, but I have a feeling that's not the problem. I tried replacing the new wp-admin/sidebar.php with my 1.2.2 version, and it did the same thing.

    Again, I am not talking about my sidebar in my template. I am talking about wp-admin/sidebar.php where I can quickly post an entry.

  10. LoganSix
    Member
    Posted 9 years ago #

    Kri, I think we are the only 2 that used that feature apparently.

    ". I tried replacing the new wp-admin/sidebar.php with my 1.2.2 version, and it did the same thing."

    Did the 1.2.2 version work in FireFox before you upgraded to 1.5? If so, then that's why I think it might have to do something with the new theme or style layout. Or, it could be calling a file that no longer exists being included in the page. I guess I'll have to break open the source page and take a look at it.

  11. LoganSix
    Member
    Posted 9 years ago #

    Just did a quick check.
    It seems to be blowing up at the
    require_once('admin-header.php');

    before it even gets to the first line
    @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));

  12. LoganSix
    Member
    Posted 9 years ago #

    Okay.
    In the admin-header.php file I commented out
    @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    and it seems to work now. I can't see any bad effect to the rest of the admin site.

    Hopefully one of the developers can explain what might be the issue of commenting that line out.

  13. LoganSix
    Member
    Posted 9 years ago #

    Okay, One more issue.
    After you publish a post there is a link to "Click here to post again.".

    Unfortunately that doesn't work in the new FireFox sidebar, it opens up the sidebar.php page in the main browser window, insted of refreshing the sidebar content.

    edit:

    Found the fix.
    In the sidebar.php file, look for the
    <p><a href="sidebar.php">Click here</a> to post again.</p>
    and change it to
    <p><a href="sidebar.php" target="_self">Click here</a> to post again.</p>

  14. kri
    Member
    Posted 9 years ago #

    I've always had that second problem with the "click here to post again" link.

    Your fix doesn't seem to work for me. I tried commenting out that line of code, and it created errors. Whenever I open sidebar.php, it actually doesn't show anything at all though. Well, this is what it shows...
    <html><body></body></html>

    I think the problem may just be changes in the admin-header code though. I looked at the new file and the old one, and they look completely different.

    LoganSix, yeah my 1.2.2 worked fine.

    I'm wondering if maybe we should report it as a bug. It doesn't make sense that we would be the only two to have this problem.

  15. oriecat
    Member
    Posted 9 years ago #

    I just tried to add the sidebar and I just get a plain white box. I guess I'll just use the bookmarklet.

  16. LoganSix
    Member
    Posted 9 years ago #

    Kri,
    Yeah, we probably should report this as a bug.
    I did a complete wipe of my old files when I upgraded, since I still had b2 files in my folders. That's probably why I didn't get any errors when I commented out the line.

  17. ruairi
    Member
    Posted 9 years ago #

    I've got a fresh install of WP 1.5 and I have the same problem with the sidebar. The dashboard doesn't seem to load entirely either.

  18. ecuneo
    Member
    Posted 9 years ago #

    ....anyway some guru could address in a helpful way, some of the issues with the sidebar?

    Funny thing, with some of the suggestions, my php code doesn't coincide with that being quoted in the post. None of the suggestions being made makes any sense in relation to my installation. For example, nowhere is there to be found, a file called wp-layout.css as mentioned in another thread on this topic.

    I think all the code relevant to this problem is in the theme directory. I can change the size of the content or sidebar and make other minor adjustments but I can't get the sidebar over to the top/right where it belongs. Another thing, the white page will not show up at all so there is no connect between the content and the header.

    This lack of formatting was a sponteneous occurance, almost out of nowhere. I am using some html in my postings, but I don't think I am doing anything out of the ordinary. I have disabled all plugins except for Fortin's MARKDOWN.

    Some of the themes I have attempted to use as a substitute for 'KUBRICK' are buggy. Yet I read the raves of those who have successfully installed the new theme. This seems wierd to me. The php to "GILA" won't even run on my 'puter without errors. My server is running PHP 4.3.10 and SQL 4.0.22 standard.

    http://www.magiccityjazz.com/EdsBlog/

  19. ecuneo
    Member
    Posted 9 years ago #

    One other problem... the classic theme, such as it is, is not visible with IE.

    http://ww.magiccityjazz.com/EdsBlog/

  20. DamienMcKenna
    Member
    Posted 9 years ago #

    Once the line in admin-header.php is commented out you also need to fix the categories list, which isn't nested like it should be. Add this to the styles list in sidebar.php:

    span.cat-nest {
    display: block;
    margin-left: 10px;
    }

  21. DamienMcKenna
    Member
    Posted 9 years ago #

    Another problem... the default header in the sidebar is HUGE, so add these to the CSS block to remove them:

    #wphead {
    display: none;
    }
    #adminmenu {
    display: none;
    }

  22. LoganSix
    Member
    Posted 9 years ago #

    ecuneo,
    We aren't talking about a page layout issue. We are talking about a browser item called "sidebar" on Mozilla/FireFox. It's a place off to the side of the browser that holds links and small forms. There is an option in WP to add the "write" option to the Mozilla/FireFox sidebar.

    The css sidebar is another issue.

  23. KrazyKid
    Member
    Posted 9 years ago #

    i did what logansix suggested, and it seems to work beautifully. thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.