WordPress.org

Support

Support » How-To and Troubleshooting » [1.5] Sidebar.php not working

[1.5] Sidebar.php not working

  • 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.

Viewing 15 replies - 1 through 15 (of 22 total)
  • http://www.greenkri.com/ looks fine to me…

    What’s supposed to happen?

    did you run the upgrade script for your database?

    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.

    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.

    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.

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

    James Huff
    Support Team Rep.

    @macmanx

    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

    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.

    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.

    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'));

    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.

    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>

    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.

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

    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.

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[1.5] Sidebar.php not working’ is closed to new replies.