Okay, so what I wound up doing was copying a new version of my functions.php file onto my site via Filezilla.
I now get a new error message. I’ll post that error message, plus the code that it relates to, plus some more info that I’ve picked up.
Error Message:
Fatal error: Call to undefined function mistylook_get_author_posts_link() in /home/dssjazz/notesfromtheholler.com/wp-content/themes/mistylook/index.php on line 8
The Code from my Index.php file:
<?php get_header();?>
<div id="content">
<div id="content-main">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="posttitle">
<h2><a>" rel="bookmark" title="<?php printf(__('Permanent Link to %s','mistylook'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2>
<p class="postmetadata"><?php the_time(get_option("date_format")); ?> <?php printf(__('by %s','mistylook'), mistylook_get_author_posts_link()); ?> <?php edit_post_link(__('Edit','mistylook'), ' | ', ' '); ?> </p>
</div>
<div class="entry">
<?php the_content(__('Continue Reading »','mistylook')); ?>
<?php wp_link_pages(); ?>
</div>
<p class="post-info"><?php printf(__('Posted in %s','mistylook'), get_the_category_list(', ')); ?> | <?php the_tags( __('Tagged','mistylook').' ', ', ', ' | ' ); ?><?php comments_popup_link(__('Leave a Comment »','mistylook'), __('1 Comment »','mistylook'), __('% Comments »','mistylook')); ?></p>
<?php comments_template(); ?>
</div>
<?php endwhile; else : ?>
<h2 class="center"><?php _e('Not Found','mistylook'); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.','mistylook'); ?></p>
<?php endif; ?>
<p align="center" class="posts-nav-link">
<?php posts_nav_link(' - ',__('« Newer Posts','mistylook'),__('Older Posts »','mistylook')) ?>
</p>
</div><!-- end id:content-main -->
<?php get_sidebar();?>
<?php get_footer();?>
More Information:
Whereas before I FTP’d the new function.php file, I was completely unable to move around my site, now I have full access to my admin panel, etc. The only place I can’t do anything is the “front of the house.”
Also, I de-activated all my widgets, to see if that did anything.
Interestingly, a preview of my site under a different theme, like “Contempt,” actually showed my posts as they should. However, a preview of my site under current theme “Mistylook” gave me just the above error message.
All of my content (ie, Posts) exist on my site, which I can view through the admin panel. I just can’t see them on the Main Site Page.
Questions:
1. Is there something in that above code that I need to edit, some sort of simple syntax that would fix it?
2. Would there be any use in temporarily switching my theme to “Contempt,” then deleting current theme “Mistylook” off my admin panel, then re-installing it and switching back to it from “Contempt”?
3. Is there code in a different php file that I need to tweak, perhaps, which is causing the above error message to occur?
Thanks for your help. I do appreciate it.
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use the pastebin. As it stands, your code may now have been permanently dmaged/corrupted by the forum’s parser.]