Support » Installing WordPress » Problem from WP 2.0.6 to WP 2.1.2

  • I’m insecure to upgrade my wordpress blog from 2.0.6 to 2.1.2.

    I have some themes adapted to my blog as follow:
    – dark-blix-1
    – garden-30
    – munch-10
    – newyorker-30

    The problem is:
    When I upgrade (into my localhost – my test environment) from v.2.0.6 to v.2.1.2 using themes as garden, munch, or newyorker, there are no problems;
    But,
    When I upgrade (into my localhost) using the theme dark-blix-1, I found a bug in WordPress 2.1.2.

    These themes (Dark Blix and others) we can find on WordPress Theme Viewer (http://themes.wordpress.net).

    Here is part of the pgm HEADER.PHP into my

    blogramiro/wp-content/themes/dark-blix-1/header.php,
    as follow:

      <li<?php if (is_home()) echo ” class=\”selected\””; ?>>“>Principal

      <?php

      $pages = BX_get_pages();

      if ($pages) {

      foreach ($pages as $page) {

      $page_id = $page->ID;

      $page_title = $page->post_title;

      $page_name = $page->post_name;

      if ($page_name == “archives”) {

      (is_page($page_id) || is_archive() || is_search() || is_single())?$selected = ‘ class=”selected”‘:$selected=”;

      echo “<li”.$selected.”>Arquivos\n”;

      }

      elseif($page_name == “about”) {

      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;

      echo “<li”.$selected.”>Bio\n”;

      }

      elseif ($page_name == “contact”) {

      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;

      echo “<li”.$selected.”>Contatos\n”;

      }

      elseif ($page_name == “about_short”) {/*ignore*/}

      else {

      (is_page($page_id))?$selected = ‘ class=”selected”‘:$selected=”;

      echo “<li”.$selected.”>$page_title\n”;

      }

      }

      }

      ?>

    –> You will see that the php program goes to the DataBase (MySql) to get the page ID, TITLE and NAME
    –> $page_id = $page->ID;
    $page_title = $page->post_title;
    $page_name = $page->post_nam

    WHAT is going wrong at this point of HEADER.PHP?
    Using the WordPress v.2.1.2, the template can’t find the PAGES created into WordPress Panel (as ARCHIVES, ABOUT, CONTACT), if I use the Dark-Blix theme.

    Now, if you look for the DB structure, you will see that there are a TABLE named (xx_posts) – where “xx” is your prefix of your personal WordPress DataBase.

    This TABLE (xx_posts) was created during the installation process.

    This is the point: when you are ready to create POSTS and PAGES, WordPress put all POSTS and all PAGES into this table (xx_posts)?? – there are no TABLE in WP-DB named PAGES or something like that?

    The program HEADER.PHP (as above) doesn’t find PAGES created in the Administration Panel of WP if I use the version 2.1.2, but the program finds PAGES if I use the version 2.0.6.
    – NOTE: this problem occur only with the Dark-Blix Theme as you can see looking above at the command-lines.
    – NOTE AGAIN: this is not a bug into Dark-Blix Theme, because it is OK using Wp v.2.0.6.

    WHY???
    I think that there are something related with the TABLE (xx_posts) that WP v.2.0.6 can recognize and WP v.2.1.2 can not.

    WordPress uses PAGES as POSTS?
    $page_id = $page->ID;

    $page_title = $page->post_title;

    $page_name = $page->post_name;

    Can You help me? I want (and need) to upgrade from v.2.0.6 to v.2.1.2 but I would like to keep my old theme. Is it possible?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Problem from WP 2.0.6 to WP 2.1.2’ is closed to new replies.