Forums

Blog main page (8 posts)

  1. quikone
    Member
    Posted 3 years ago #

    I know through reading through various WordPress blogs that many are having trouble getting past the index.php page. Where is the main blog page stored. I would like to see if I can even access it directly. I sure can't seem to get to it any other way. I did notice in another post that someone had success by going all the way back to v2.5. There has got to be an easier way.

  2. Michael Fields
    Theme Wrangler
    Posted 3 years ago #

    What exactly do you want to accomplish? The "Main Blog Page" is actually the end product of a couple thousand lines of code being executed. The index.php stored in your blog's root directory just sets the process in motion. Depending on the theme you are using and how you have WordPress configured, a few different template files could be generating your "Main Blog Page" These file may be:

    /wp-content/themes/your-theme/index.php
    /wp-content/themes/your-theme/home.php
    /wp-content/themes/your-theme/page.php
    /wp-content/themes/your-theme/custom-page-template.php

    Hard to tell without more information.

  3. quikone
    Member
    Posted 3 years ago #

    What kind of information do you need? I can't understand why I can't get to my page. My real url is thecomingdays.com/wordpress I am assuming that there is something wrong with my index file. I will try to find out if any of the above will get me there.

    Thanks for the help.

  4. Michael Fields
    Theme Wrangler
    Posted 3 years ago #

    very strange. It appears that your server is not configured to use "index.xxx" as the default page when accessing a directory. I would contact your server company to see what you should do. You might need to rename index.php to default.php or something like that.

  5. quikone
    Member
    Posted 3 years ago #

    I tried all of the above and get errors in line 1 or 2. index.php and page.php are the only ones available.

  6. quikone
    Member
    Posted 3 years ago #

    I am hosting. So, I am pretty sure that the problem is on my end. I have noticed that I don't have a htaccess file. I thought it might have been a problem with v2.7. I have downgraded to 2.5 and still the same problem. I noted that login.php and options-general.php do show up. It is almost like I have missed something in the install. You would think that if it is a apache, mysql or php problem nothing would work???

    I have also noticed that all the file dates in wp-admin are now showing the current date.

  7. quikone
    Member
    Posted 3 years ago #

    It's interesting, I have been stepping through the sequence of the program and found a failure on line 66 of template-loader.php.

    The problem area is marked by b-quote.

    Are there any tools to track my problem down?

    <?php
    /**
     * Loads the correct template based on the visitor's url
     * @package WordPress
     */
    if ( defined('WP_USE_THEMES') && constant('WP_USE_THEMES') ) {
    	do_action('template_redirect');
    	if ( is_robots() ) {
    		do_action('do_robots');
    		return;
    	} else if ( is_feed() ) {
    		do_feed();
    		return;
    	} else if ( is_trackback() ) {
    		include(ABSPATH . 'wp-trackback.php');
    		return;
    	} else if ( is_404() && $template = get_404_template() ) {
    		include($template);
    		return;
    	} else if ( is_search() && $template = get_search_template() ) {
    		include($template);
    		return;
    	} else if ( is_home() && $template = get_home_template() ) {
    		include($template);
    		return;
    	} else if ( is_attachment() && $template = get_attachment_template() ) {
    		remove_filter('the_content', 'prepend_attachment');
    		include($template);
    		return;
    	} else if ( is_single() && $template = get_single_template() ) {
    		include($template);
    		return;
    	} else if ( is_page() && $template = get_page_template() ) {
    		include($template);
    		return;
    	} else if ( is_category() && $template = get_category_template()) {
    		include($template);
    		return;
    	} else if ( is_tag() && $template = get_tag_template()) {
    		include($template);
    		return;
    	} else if ( is_tax() && $template = get_taxonomy_template()) {
    		include($template);
    		return;
    	} else if ( is_author() && $template = get_author_template() ) {
    		include($template);
    		return;
    	} else if ( is_date() && $template = get_date_template() ) {
    		include($template);
    		return;
    	} else if ( is_archive() && $template = get_archive_template() ) {
    		include($template);
    		return;
    	} else if ( is_comments_popup() && $template = get_comments_popup_template() ) {
    		include($template);
    		return;
    	} else if ( is_paged() && $template = get_paged_template() ) {
    		include($template);
    		return;
    	} else if ( file_exists(TEMPLATEPATH . "/index.php") ) {
    		include(TEMPLATEPATH . "/index.php");
    		return;
    	}
    } else {
    	// Process feeds and trackbacks even if not using themes.
    <blockquote>	if ( is_robots() ) {
    		do_action('do_robots');</blockquote>
    		return;
    	} else if ( is_feed() ) {
    		do_feed();
    		return;
    	} else if ( is_trackback() ) {
    		include(ABSPATH . 'wp-trackback.php');
    		return;
    	}
    }
    
    ?>
  8. Michael Fields
    Theme Wrangler
    Posted 3 years ago #

    The problem is (most likely) definitely on your server... When I visit your install directory: http://thecomingdays.com/wordpress/ I should be served the index.php file, but I do not get this file, I get a listing of your /wordpress/ directory. Don't know why this is happening, but it most likely has to do with your server settings -> which is proved by the fact that I can also visit: http://thecomingdays.com/wordpress/wp-content/ and I can see a directory listing.... -> WordPress automatically installs an index.php file in this directory and it is not being "read" by your server.

    I believe this problem to be to be that of the server and not a problem of WordPress at all... If I were an Apache expert, maybe I could help, unfortunately, I am not.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.