• The short story: After upgrading from 2.7.1 to 2.8.x, my dashboard works fine but the blog won’t appear. None of the suggested solutions I found so far have worked. Can anybody help me?

    The long story: I tried to upgrade to 2.8.0 a while ago, and spent a lot of time getting my blog back on line. The only way I could do that was by restoring all the backups and files and reverting to 2.7.1

    So this time I was a bit more careful, and copied my entire directory structure & database to create an identical copy of the blog on my provider’s server (had to do some hacking of the database in text editor to replace absolute paths etc but finally got it right).
    Then I followed all the steps in the extended upgrade instructions carefully, using the latest version (2.8.4).

    Same problem. The dashboard works fine. If I go to the appearance tab to change the theme, the preview looks fine. If I go to my site, I get “The page isn’t redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete”. IE just tells me ‘navigation to the page is canceled’.

    I tried all the suggestions I found in forum and documentation, like deleting htaccess, regenerating permalinks, clearing cache. None of them work. Any ideas are greatly appreciated.

    Thanks, Allard

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just a suggestion, check the following files to follow your paths to your template.

    ROOT DIRECTORY

    index.php (Make sure this is correct as below)

    <?php
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>

    wp-blog-header.php (Make sure this is correct as below)

    <?php
    if ( !isset($wp_did_header) ) {
    	$wp_did_header = true;
    	require_once( dirname(__FILE__) . '/wp-load.php' );
    	wp();
    	require_once( ABSPATH . WPINC . '/template-loader.php' );
    }
    ?>

    wp-load.php

    wp-include directory

    template-loader.php

    It seems that it’s not finding the correct path to your themes directory. Hope this helps.

    Thread Starter ak77

    (@ak77)

    As far as I can tell template-loader uses the constant TEMPLATEPATH to find the themes directory.

    `} else if ( file_exists(TEMPLATEPATH . “/index.php”) ) {
    include(TEMPLATEPATH . “/index.php”);`

    The only place I could find the definition of TEMPLATEPATH is in wp-settings.php, where I found this line:

    define('TEMPLATEPATH', get_template_directory());

    That function calls two other functions

    `function get_template_directory() {
    $template = get_template();
    $template_dir = get_theme_root() . “/$template”;
    return apply_filters(‘template_directory’, $template_dir, $template);
    }`

    Which look like this:

    `function get_template() {
    return apply_filters(‘template’, get_option(‘template’));
    }`

    function get_theme_root() {
    	return apply_filters('theme_root', WP_CONTENT_DIR . "/themes");
    }

    wp-content/themes exists and has the theme in it (switched it to default just to be sure). From the fact that I can get my uploaded images to appear in the editing view I conclude that wordpress can find my WP_CONTENT_DIR
    And that’s about where I give up…. Anyone?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘2.8 upgrade gives redirect error – tried everything (?)’ is closed to new replies.