Title: Multiple errors after fresh install
Last modified: August 19, 2016

---

# Multiple errors after fresh install

 *  [chevy454](https://wordpress.org/support/users/chevy454/)
 * (@chevy454)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multiple-errors-after-fresh-install/)
 * Ok, fresh WP install, on a static page…I started by pasting what I think is the
   loop in my content divs…upon install, it looked like everything took, as the 
   example generated post was there, and other than the body container div not stretching
   to the footer it looked like it was gonna work. But I then made a test post and
   immediately got this on the page:
 * Fatal error: Call to undefined function twentyten_posted_on() in /home/yenko69/
   public_html/r4/index.html on line 295
 * I don’t show a “twentyten_posted_on” on the server? Am I to assume this is a 
   theme related error, possibly? Below is “the loop” I included in between my <
   div id=”content”> divs, does it look correct?
 *     ```
       <?php while ( have_posts() ) : the_post(); ?>
   
       <?php /* How to display posts in the Gallery category. */ ?>
   
       	<?php if ( in_category( _x('gallery', 'gallery category slug', 'twentyten') ) ) : ?>
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
   
       			<div class="entry-meta">
       				<?php twentyten_posted_on(); ?>
       			</div><!-- .entry-meta -->
   
       			<div class="entry-content">
       <?php if ( post_password_required() ) : ?>
       				<?php the_content(); ?>
       <?php else : ?>
       				<?php
       					$images = get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC', 'numberposts' => 999 ) );
       					if ( $images ) :
       						$total_images = count( $images );
       						$image = array_shift( $images );
       						$image_img_tag = wp_get_attachment_image( $image->ID, 'thumbnail' );
       				?>
       						<div class="gallery-thumb">
       							<a class="size-thumbnail" href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a>
       						</div><!-- .gallery-thumb -->
       						<p><em><?php printf( __( 'This gallery contains <a %1$s>%2$s photos</a>.', 'twentyten' ),
       								'href="' . get_permalink() . '" title="' . sprintf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark"',
       								$total_images
       							); ?></em></p>
       				<?php endif; ?>
       						<?php the_excerpt(); ?>
       <?php endif; ?>
       			</div><!-- .entry-content -->
   
       			<div class="entry-utility">
       				<a href="<?php echo get_term_link( _x('gallery', 'gallery category slug', 'twentyten'), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
       				<span class="meta-sep">|</span>
       				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
       				<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
       			</div><!-- .entry-utility -->
       		</div><!-- #post-## -->
   
       <?php /* How to display posts in the asides category */ ?>
   
       	<?php elseif ( in_category( _x('asides', 'asides category slug', 'twentyten') ) ) : ?>
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
   
       		<?php if ( is_archive() || is_search() ) : // Display excerpts for archives and search. ?>
       			<div class="entry-summary">
       				<?php the_excerpt(); ?>
       			</div><!-- .entry-summary -->
       		<?php else : ?>
       			<div class="entry-content">
       				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
       			</div><!-- .entry-content -->
       		<?php endif; ?>
   
       			<div class="entry-utility">
       				<?php twentyten_posted_on(); ?>
       				<span class="meta-sep">|</span>
       				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
       				<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
       			</div><!-- .entry-utility -->
       		</div><!-- #post-## -->
   
       <?php /* How to display all other posts. */ ?>
   
       	<?php else : ?>
       		<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
       			<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
   
       			<div class="entry-meta">
       				<?php twentyten_posted_on(); ?>
       			</div><!-- .entry-meta -->
   
       	<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
       			<div class="entry-summary">
       				<?php the_excerpt(); ?>
       			</div><!-- .entry-summary -->
       	<?php else : ?>
       			<div class="entry-content">
       				<?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?>
       				<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
       			</div><!-- .entry-content -->
       	<?php endif; ?>
   
       			<div class="entry-utility">
       				<?php if ( count( get_the_category() ) ) : ?>
       					<span class="cat-links">
       						<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
       					</span>
       					<span class="meta-sep">|</span>
       				<?php endif; ?>
       				<?php
       					$tags_list = get_the_tag_list( '', ', ' );
       					if ( $tags_list ):
       				?>
       					<span class="tag-links">
       						<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
       					</span>
       					<span class="meta-sep">|</span>
       				<?php endif; ?>
       				<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
       				<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
       			</div><!-- .entry-utility -->
       		</div><!-- #post-## -->
   
       		<?php comments_template( '', true ); ?>
   
       	<?php endif; // This was the if statement that broke the loop into three parts based on categories. ?>
   
       <?php endwhile; // End the loop. Whew. ?>
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [chevy454](https://wordpress.org/support/users/chevy454/)
 * (@chevy454)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multiple-errors-after-fresh-install/#post-1908991)
 * BTW, here’s the url: [http://www.claryfuneralhome.com/r4/index.html](http://www.claryfuneralhome.com/r4/index.html)
 * This is a test site for another site I’m working on.
 * I’m also getting the below error in my dashboard:
 * Warning: array_keys() [function.array-keys]: The first argument should be an 
   array in /home/yenko69/public_html/r4/content/wp-includes/theme.php on line 513
 *  Thread Starter [chevy454](https://wordpress.org/support/users/chevy454/)
 * (@chevy454)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/multiple-errors-after-fresh-install/#post-1909009)
 * Ok, so I edited out the offending function from the loop [see below] and it solved
   the twentyten_posted_on error. But how do I get my “posted on” date back?
 *     ```
       <div class="entry-meta">
       				<?php twentyten_posted_on(); ?>
       			</div><!-- .entry-meta -->
       ```
   
 * Also, clicking on the category or comment links or even my home blog page link
   returns an empty page…?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multiple errors after fresh install’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [chevy454](https://wordpress.org/support/users/chevy454/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/multiple-errors-after-fresh-install/#post-1909009)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
