WordPress.org

Forums

[resolved] HELP! Tried to update, and can't get blog back (6 posts)

  1. Kedda Keough
    Member
    Posted 5 years ago #

    I didn't realize that my host is using an MySQL that is wrong for the new version of WordPress, so I went through all the updating procedures, including deleting my old files, and then found out! When I reloaded my older version of WordPress back to the server, I get that error page saying I don't have an index.html file. In the WordPress files I have both an index.html file and an index.php file. I have tried putting only the index.html file up, and then only the index.php file, and then I tried renaming the .php file to .html, and nothing is working. I know I went through this struggle the first time I installed WordPress, but I can't remember how I resolved the issue.

    HELP!

  2. Kedda Keough
    Member
    Posted 5 years ago #

    With index.php I'm getting this error message:

    Fatal error: Call to undefined function: is_admin()in /homepages/26/d212929719/htdocs/Creation/wp-includes/vars.php on line 16

    Can someone walk me through how to fix this????

  3. henkholland
    Member
    Posted 5 years ago #

    Hi Kedda,

    If you are calling your site from http://www.yourdomain.com then you need this index.php in your root on the server:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>

    If your files are in a directory called blog (or something else) but you still are accessible from http://www.yourdomain.com change the last line to: require('./blog/wp-blog-header.php');

    If you are working from http://www.yourdomain.com/blog then the full index shown first here should be in the directory blog.

  4. Kedda Keough
    Member
    Posted 5 years ago #

    I'm not understanding something simple, I'm guessing. I tried your suggestion. I have my blog in a directory called Creation. [I have another blog in a different directory on the same server]

    I tried changing the index.php to the above script, with require('Creation./wp-blog-header.php') and then tried require('.blog/wp-blog-header.php') and both times got this new error message:

    Fatal error: main() [function.require]: Failed opening required '.blog/wp-blog-header.php' (include_path='.:/usr/lib/php') in /homepages/26/d212929719/htdocs/Creation/index.php on line 17

    clicking on function require brought me to the error 404 (not found) message. I still need help!

    Also, I tried putting the index.php in the root directory, and in the Creation directory. In the root I get the 403 error message, Forbidden!

    I know that there is something simple I am missing, but I don't know what it is!

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    I tried changing the index.php to the above script, with require('Creation./wp-blog-header.php') and then tried require('.blog/wp-blog-header.php') and both times got this new error message:

    no period after Creation in your first try

    just Creation/wp-blog-header.php

  6. Kedda Keough
    Member
    Posted 5 years ago #

    Well... after trying to fix the update problem, I finally deleted most of my newly uploaded files, and then re-loaded a newly downloaded older version of WordPress that I had been using, figuring it was clean, and got my blog back again. I don't know if I'll ever try updating again! At least I knew I had my database backed up, so I could get my posts back again at some point.

Topic Closed

This topic has been closed to new replies.

About this Topic