WordPress.org

Forums

W1.2 - post_date_gmt (9 posts)

  1. andreacasalotti
    Member
    Posted 11 years ago #

    I installed 1.2 over 1.0.2. Everything went fine. However when I try to read my blog, no entries are shown and the message 'Cannot find post_date_gmt' appears.
    So I created a new field in the database called post_date_gmt and now the posts appear but there is a new error message:
    Database error: [Table 'workbike.wp_postmeta' doesn't exist]
    SELECT post_id,meta_key,meta_value FROM wp_postmeta WHERE post_id IN(61,60,57,50,49,48,47,46,42,41,40,31,30,29,28,22,21,3,19,18) ORDER BY post_id,meta_key
    Now I am reluctant to make further changes to the structure of the database just to patch up things. So what is going wrong?
    ALSO
    The list of categories on the blog page is incomplete, but in edit mode thay all appear

  2. Root
    Member
    Posted 11 years ago #

    OK. This is a previously identified issue. No need to edit anything. Might be best to reinstall with a clean db. But here is the thing. Even after a new install you need to run wp-upgrade.php. Should work fine.

  3. carthik
    Member
    Posted 11 years ago #

    You should run /wp-admin/upgrade.php in your browser after getting the new 1.2 files. That fixes tables, and takes care of creating new fields, etc.

  4. Root
    Member
    Posted 11 years ago #

    Tx for the correction of my typo. Would not want to confuse folks.

  5. andreacasalotti
    Member
    Posted 11 years ago #

    Thanks; it is now working; however the category list on the blog is
    1. not in alphebetical but in chronological list, and
    2. incomplete, only 21 categories; all the cats appear in the editing page. This is what appears in the index.php template:
    <li id="categories"><?php _e('Categories:'); ?>

      <?php wp_list_cats(); ?>
  • andreacasalotti
    Member
    Posted 11 years ago #

    Sorry but the last few lines went too wide. So here is what appears in the index.php template:
    <li id="categories"><?php _e('Categories:'); ?>

      <?php wp_list_cats(); ?>
  • andreacasalotti
    Member
    Posted 11 years ago #

    Sorry but the last few lines went too wide. So here is what appears in the index.php template:
    <li id="categories"><?php _e('Categories:'); ?>

      <?php wp_list_cats(); ?>
  • carthik
    Member
    Posted 11 years ago #

    That is because of the default parameters that wp_list_cats uses.
    Try http://wiki.wordpress.org/index.php/TemplateTags for more details.

  • andreacasalotti
    Member
    Posted 11 years ago #

    Something weird is happening: I am trying to cut and paste a few lines of the template and it goes outside the form; even if I delete all the spaces and 'returns'

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.