Found 1 bug. Need help w/2nd.
-
I’m using Blog Oh Blog theme. I updated an ancient (many versions ago) WP install to 2.2. I deactivated all plugins first.
the sidebar categories line in this theme is:
<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>
which should work by default with WordPress.I found one bug here:
links.php
line 293 dealing with cat_name refers to name instead of cat_name
changed this and it solved one visible problem.However the blog is still throwing the second error. The code that WP is taking exception to has the same issue, ‘name’ instead of ‘cat_name’. The thrown code is:
WordPress database error: [Unknown column 'name' in 'order clause'] SELECT * FROM wp_categories WHERE cat_ID > 0 AND link_count > 0 ORDER BY name ASC
I did find this issue of ‘name’ instead of ‘cat_name’ in other places where it seemed to also be a bug:
links.php
line 526 dealing with cat_name refers to name instead of cat_name
changed this and no visible fix occurred.template_functions_category.php
line 122 dealing with cat_name refers to $cat instead of $cat_name
changed this and no visible fix occurred.category.php
line 22 dealing with category refers to ‘name’ instead of ‘cat_name’
changed this and no visible fix occurred.
changed it back because I’m not sure that was wrong. Because:There are MANY references to only $name or ‘name’ because this is used for
(a) the parent of the present category is made into a var called ‘name’ it seems like
(b) the var ‘name’ is also used in post functions and other unrelated-to-category stuff
(c) there are many places where it sets ‘cat_’ and then appends either ‘ID’ or ‘name’ to that apparentlyI do not program in PHP. Needless to say, fixing my now-broken categories sidebar that was working perfectly until I upgraded is hard for me since most of what I’m looking at is greek to me.
I found a lot of code I manually waded through that had one of the key elements of the code still throwing an error. But I can’t find the second bug. The thing I changed in that wp-includes links.php file did solve one visible error that was being thrown. But I cannot seem to find the source of the other error. I would greatly appreciate any assistance.
Surely other people are encountering this problem!
PJ
- The topic ‘Found 1 bug. Need help w/2nd.’ is closed to new replies.