Support » Installing WordPress » Fatal error where tags should show up

  • Hi, I’ve upgraded to WP 2.3 without problems and everything seemed to work well until I tried to get some tags to show up. Where the tags should be, an error message shows up:

    Fatal error: Call to undefined function: get_tag_permastruct() in ***/public_html/wp-includes/category-template.php on line 423

    line 423 in category-template.php says:

    $taglink = $wp_rewrite->get_tag_permastruct();

    So I guess there is something wrong with $wp_rewrite.

    Also, when I try to specify a tag base there is the following message:

    Fatal error: Call to undefined function: set_tag_base() in ***/wp-admin/options-permalink.php on line 81

    I read another topic on this issue stating that a fresh install solves these problems, but it really doesn’t make sense to me why that would help, and I’d rather not do it if it is not necessary.

    So any suggestions would be appreciated!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Where are you placing this:

    <?php the_tags(); ?>

    Like I said, I’ve tested this on the default 2.3 theme, so I guess it’s there in the correct place:

    <?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    				<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
    				<div class="entry">
    					<?php the_content('Read the rest of this entry &raquo;'); ?>
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
    		<?php endwhile; ?>

    Oops, sorry… like i thought I said… 😉

    Does no one have the same problem? And if so, could anyone explain why a clean install would help when I already have uploaded the latest files?

    FYI – for those that have same problem.

    Found this reply to same error message on another forum, here is reply from that Administrator:

    Remove the following line in your index.php file:

    <?php the_tags('Tags: ', ', ', '.'); ?>

    Fatal error should be resolved after that.

    The person he gave answer to, said it worked.

    Here is actual answer:

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error where tags should show up’ is closed to new replies.