Forums

Trouble with archives, tags, comments, and pages (9 posts)

  1. Lauren
    Member
    Posted 3 years ago #

    I installed WordPress onto my site for the first time. The front page appears normally, but when I click on Archives or Tags, I get a "Function Include" error.

    When I click on Comments, it only displays my posts, no comment box.

    Lastly, though I can view my About page and edit it, it won't show up. I am trying to view it in http://mywebsitehere.com/about/ but I get a 404 error.

    Any ideas? Thank you!

  2. Lauren
    Member
    Posted 3 years ago #

    When I click on "Archives" or any of my tags, here is the error it shows me:

    "Warning: include() [function.include]: Unable to access /www/uuuq.com/l/i/l/liliripe/htdocs/wp-content/themes/default/searchform.php in /www/uuuq.com/l/i/l/liliripe/htdocs/wp-content/themes/default/archive.php on line 11

    Warning: include(/www/uuuq.com/l/i/l/liliripe/htdocs/wp-content/themes/default/searchform.php) [function.include]: failed to open stream: No such file or directory in /www/uuuq.com/l/i/l/liliripe/htdocs/wp-content/themes/default/archive.php on line 11

    Warning: include() [function.include]: Failed opening '/www/uuuq.com/l/i/l/liliripe/htdocs/wp-content/themes/default/searchform.php' for inclusion (include_path='.:/usr/lib/php') in /www/uuuq.com/l/i/l/liliripe/htdocs/wp-content/themes/default/archive.php on line 11

    Archives by Month:

    * April 2009

    Archives by Subject:

    * Uncategorized"

    My website URL is going to be http://liliripe.uuuq.com
    Please note that it's a work in progress, obviously...
    Thanks.

  3. iridiax
    Member
    Posted 3 years ago #

    http://codex.wordpress.org/Migrating_Plugins_and_Themes_to_2.7#The_Search_Form_Template_Tag

    If you haven't altered the default code, I don't know why it's not working. Maybe get a searchform.php from another theme and it will be happy?

  4. Lauren
    Member
    Posted 3 years ago #

    Well I've made and put up a new layout and everything, so I'm hoping I didn't unintentionally mess with the code. I'll take the code from the default theme and see what happens. Thanks!

  5. Lauren
    Member
    Posted 3 years ago #

    I copied and pasted most of the files from the Default theme into my custom theme (excluding all the CSS and image stuff, so I didn't lose my layout) and I'm still having the same problem. Something isn't syncing up, but I don't know what.

  6. Lauren
    Member
    Posted 3 years ago #

    I'm guessing it's my search.php page that's the problem, but I'm using the same exact code that's in the Default theme:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    get_header(); ?>
    
    	<div id="content" class="narrowcolumn">
    
    	<?php if (have_posts()) : ?>
    
    		<h2 class="pagetitle">Search Results</h2>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    		<?php while (have_posts()) : the_post(); ?>
    
    			<div <?php post_class() ?>>
    				<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    				<small><?php the_time('l, F jS, Y') ?></small>
    
    				<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?>  <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    
    			</div>
    
    		<?php endwhile; ?>
    
    		<div class="navigation">
    			<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    			<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    		</div>
    
    	<?php else : ?>
    
    		<h2 class="center">No posts found. Try a different search?</h2>
    		<?php get_search_form(); ?>
    
    	<?php endif; ?>
    
    	</div>
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>

    Does that look right?
    I tried to switch my theme to Default to see if it's working there, but the Default theme looks exactly like my custom theme for some reason. It adopted the new layout and everything.

  7. iridiax
    Member
    Posted 3 years ago #

    I tried to switch my theme to Default to see if it's working there, but the Default theme looks exactly like my custom theme for some reason. It adopted the new layout and everything.

    Side note: If you make your own copy of the default theme folder, make sure that you give it a new name and theme info in style.css.

  8. Lauren
    Member
    Posted 3 years ago #

    Thanks Iridiax. I did so, though the Default theme still updates when I update my custom theme. I don't mind, I just downloaded the default theme again and keep it on my Desktop when I need to get some original code.

    I copied the code from pretty much every page in the Defaults theme I just downloaded, and pasted it into my custom theme. It helped some messed up alignment I had, but I still can't view comments or single entries. For instance, when I click on a tag or category that should only have 1 post under it, it shows every post I've made. I don't get that error message anymore, though. Would single.php possibly be the file that's giving me these problems?

  9. Lauren
    Member
    Posted 3 years ago #

    Problems solved. I had to remove the widgets I had placed in a navigation div in my header (I was using it as a second sidebar at the time).

Topic Closed

This topic has been closed to new replies.

About this Topic