I went ahead and did the 1.6 upgrade, but now I’ve got an empty index for one of my weblogs.
The code being used is this:
<ul class="Concordance">
{exp:weblog:entries weblog="{current_weblog}" limit="500" orderby="{current_weblog_id}_number_sorting" sort="asc" disable="member_data|pagination|trackbacks"}
{categories}
{if category_id == "166"}
<li class="One">{{current_weblog_id}_number_display} <a href="http://www.westeros.org/Citadel/Concordance/Section/{{current_weblog_id}_number_display}/">{title}</a></li>
{/if}
{if category_id == "167"}
<li class="Two">{{current_weblog_id}_number_display} <a href="http://www.westeros.org/Citadel/Concordance/Section/{{current_weblog_id}_number_display}/">{title}</a></li>
{/if}
{if category_id == "168"}
<li class="Three">{{current_weblog_id}_number_display} <a href="http://www.westeros.org/Citadel/Concordance/Section/{{current_weblog_id}_number_display}/">{title}</a></li>
{/if}
{if category_id == "169"}
<li class="Four">{{current_weblog_id}_number_display} <a href="http://www.westeros.org/Citadel/Concordance/Section/{{current_weblog_id}_number_display}/">{title}</a></li>
{/if}
{/categories}
{/exp:weblog:entries}
</ul>Yesterday, before I upgraded, this generated the index without any problems at all.
I went ahead and broke the code out into a separate template (which does have the variables used defined at the top), but even that didn’t help, so the error must be somewhere within this code. And I did check that the entries for the weblog are still in the database.