Title: Categories Missing and taxonomy.php
Last modified: August 19, 2016

---

# Categories Missing and taxonomy.php

 *  [gaszer](https://wordpress.org/support/users/gaszer/)
 * (@gaszer)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/categories-missing-and-taxonomyphp/)
 * I installed WordPress for a client on their hosting service, and was getting 
   a blank page instead of it completing the installation process.
    (the same as
   this post: [http://wordpress.org/support/topic/157336?replies=3](http://wordpress.org/support/topic/157336?replies=3))
 * I was told by the host support team, that there was a problem with PHP 5 on NS12,
   and that I had to edit the taxonomy.php file (in wp-includes) to remove (object)
   from the following lines in the file:
 * $wp_taxonomies = array();
    $wp_taxonomies[‘category’] = (object) array(‘name’
   => ‘category’, ‘object_type’ => ‘post’, ‘hierarchical’ => true, ‘update_count_callback’
   => ‘_update_post_term_count’); $wp_taxonomies[‘post_tag’] = (object) array(‘name’
   => ‘post_tag’, ‘object_type’ => ‘post’, ‘hierarchical’ => false, ‘update_count_callback’
   => ‘_update_post_term_count’); $wp_taxonomies[‘link_category’] = (object) array(‘
   name’ => ‘link_category’, ‘object_type’ => ‘link’, ‘hierarchical’ => false);
 * Bingo! Everything was good and working. However, since then, I’ve found that 
   when adding categories, they don’t show up in the template sidebar – only the
   uncategorized category, (even when there are posts associated with them), and
   in the categories admin panel, the count for each category shows as 0 (other 
   than the uncategorized category which shows 1, even though I’ve deleted the installation
   post).
 * On page, where the categories show at the top of each post, I can navigate to
   the correct category.
 * I have a feeling this is related to removing the (object) from taxonomy.php, 
   but don’t know how to proceed from here.
 * Does anyone have any insights?

Viewing 1 replies (of 1 total)

 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/categories-missing-and-taxonomyphp/#post-961223)
 * The problem with editing core files is every time there is a wordpress upgrade,
   you have to go back and reenter the change. Not to mention that the hack is affecting
   the way WP is now working. If it was me, I would have the client move their hosting
   to a server that properly handles php5 and be done with it.

Viewing 1 replies (of 1 total)

The topic ‘Categories Missing and taxonomy.php’ is closed to new replies.

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [php5](https://wordpress.org/support/topic-tag/php5/)
 * [taxonomy](https://wordpress.org/support/topic-tag/taxonomy/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [17 years, 4 months ago](https://wordpress.org/support/topic/categories-missing-and-taxonomyphp/#post-961223)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
