WordPress.org

Forums

Fatal error where tags should show up (6 posts)

  1. iamzero
    Member
    Posted 7 years ago #

    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!

  2. shadow
    Member
    Posted 7 years ago #

    Where are you placing this:

    <?php the_tags(); ?>

  3. iamzero
    Member
    Posted 7 years ago #

    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;'); ?>
    				</div>
    
    				<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>
    			</div>
    
    		<?php endwhile; ?>
  4. iamzero
    Member
    Posted 7 years ago #

    Oops, sorry... like i thought I said... ;)

  5. iamzero
    Member
    Posted 7 years ago #

    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?

  6. CHudnall
    Member
    Posted 6 years ago #

    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:

    http://www.refueled.net/forum/topic.php?id=56#post-233

Topic Closed

This topic has been closed to new replies.

About this Topic