• Resolved RedeemedLife

    (@redeemedlife)


    Hey everyone.

    When I click on a link to another page in my blog, I get the following error:

    Fatal error: Call to undefined function php_e() in /home/*****/public_html/HesedBlog/wp-content/themes/hesedblogv2/index.php on line 38

    So, I load up my theme in the editor, and take a look at the line of code on line 38. Here she is:

    <h2><?php_e('Not Found'); ?></h2>

    I looked at some other themes, and they all looked the same.

    I am absolutely stumped. The blog looks fine from the index page, you can click on a post just fine, you can view a category just fine, but God help me if I click on a link to another page – I get that error.

    If you need it, here’s my index.php code. Thanks to anyone who can help:

    <?php get_header(); ?>
    
    <?php get_sidebar(); ?>
    
    <div id="Content">
    
    	<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
    
        		<div class="post">
    
            		<div id="posttitle"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
    
            		<div class="entry">
    
    					<?php the_content(); ?>
    
                        <p class="postmetadata">
    
    <?php _e('Filed under:'); ?> <?php the_category(', ') ?> <?php _e('by'); ?> <?php  the_author(); ?><br />
    
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?> <?php edit_post_link('Edit', ' | ', ''); ?>
    
    					</p>
    
            		</div>
    
            	</div>
    
    	<?php endwhile; ?>
    
        	<div class="navigation">
            	<?php posts_nav_link(); ?>
            </div>
    
        <?php else : ?>
    
            <div class="post" id="post-<?php the_ID(); ?>">
            	<h2><?php_e('Not Found'); ?></h2>
            </div>
    
    	<?php endif; ?>
    
    </div>
    
    <?php get_sidebar('right'); ?>
    
    <?php get_footer(); ?>
    
    </div>
    
    <script src="http://cdn.wibiya.com/Toolbars/dir_0611/Toolbar_611256/Loader_611256.js" type="text/javascript"></script>
    
    </body>
    </html>
Viewing 2 replies - 1 through 2 (of 2 total)
  • There’s a whitespace missing between <?php and _e which is why you got the error of undefined function php_e().

    Thread Starter RedeemedLife

    (@redeemedlife)

    Well, that fixed the fatal error I was getting.

    Which is good, because now the pages say ‘Not Found’ like they should, instead of Fatal Error.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal Error when visiting any other page on the blog.’ is closed to new replies.