Forums

"Write Post" page appears blank in 2.0.3 (8 posts)

  1. harshad
    Member
    Posted 5 years ago #

    My WordPress installation was working well on version 2.0.2. I upgraded to 2.0.3 and the upgrade went smoothly. I got the expected screes and the site is working properly.

    However after the upgrade, the "Write Post" page isn't loading right. No errors are displayed in IE or Firefox.

    Only the "Write Post" message at the top and the Discussion, Password-Protect post, Post Slug and Categories panels appear on the right. The center stays white and blank. No WYSIWYG editor or even a textfield.

    Browser does not show any Javascript errors. Surprisingly the WYSIWYG editor is appearing properly in the "Write Page" section.

    I cannot add any new post or edit old posts. Please suggest a solution.

    thanks
    harshad

  2. Nazgul
    Member
    Posted 5 years ago #

    Do you have any plugins active? If so, try disabling those to see if that fixes it.

    Also, have you installed the WordPress 2.0.3 Tuneup plugin? If not, please do.

  3. harshad
    Member
    Posted 5 years ago #

    Thanks Nazgul.

    I disabled all plugins and also installed the tuneup. But no luck! I am still getting the same problem

  4. harshad
    Member
    Posted 5 years ago #

    On doing a view source for the "Write Post" page, I see that the HTML ends with:

    <fieldset id="categorydiv" class="dbx-box">
    <h3 class="dbx-handle">Categories</h3>
    <div class="dbx-content">
    <p id="jaxcat">
    <div id="categorychecklist">

    No closing div or body or html tag.

  5. harshad
    Member
    Posted 5 years ago #

    Seeing that the categorychecklist was the last div generated, i just checked Manage > Categories in the admin and I see 100s of categories. It seems to be in an infinite loop or something. The categories list just doesn't stop loading. The category IDs are repeating.

    Until yesterday I had about 15 categories. The other categories are just repetitions of existing ones. I have no idea where they came from.

    So i guess this is the reason why "Write Post" is failing. It is unable to generate the categories in the categories list.

    Now I need to find a fix for this. Any suggestions? I will check if I can delete categories from the DB but the infinite loop error seems to have been caused by some code error.

    I had faced a problem yesterday while adding category to a post. THe category refused to get added. I did not realize that something was broken at the backend at that time.

    Suggestions for fix..most welcome

  6. Nazgul
    Member
    Posted 5 years ago #

    Thats just before the call to:
    <?php dropdown_categories(get_settings('default_category')); ?>

    That function (dropdown_categories) is part of the wp-admin/admin-functions.php file. Could you make sure that that file isn't corrupt/is the 2.0.3 version of that file?

    I don't think it's in the get_settings function, because a lot of other things should be failing then as well.

    Edit: If it's a corrupt database I'm afraid I can't help you with that, because I don't know that much about it. Maybe someone else can?

  7. harshad
    Member
    Posted 5 years ago #

    Fixed !!! Yippie :)

    I moved my database from one server to another a few days back. The AUTO_INCREMENT on the cat_ID field in wp_categories had disappeared as a result. SO the new category I created yesterday got an invalid ID of 0.

    Adding AUTO_INCREMENT on the cat_ID field in wp_categories seems to have fixed the problem.

    Are there any other columns in tables for which I need to enable AUTO_INCREMENT. As all AUTO_INCREMENT would have been lost, even those columns will cause problems sooner or later.

  8. Nazgul
    Member
    Posted 5 years ago #

    Take a look at /wp-admin/upgrade-schema.php and search it for AUTO_INCREMENT.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags