WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error on login-please help (9 posts)

  1. postinote
    Member
    Posted 5 years ago #

    Greetings,

    I uploaded the WordPress files to my 1 and 1 server via FTP. I then append /wp-admin/install.php to the and of my domain name. The initial install screen showed up OK. I entered the Blog Name and my email address and clicked "Install". Then the screen appears with the login info (Username: Admin, Password: xxxxxxxxxxxxx -you get the idea). I click the login buttono and then enter the password. That's when I get the error

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

    As you can tell from the error, my domain is "martialartslosangeles.com." I have checked the files for the wp-blog-header.php and it seems to exist. I'm not knowledgable when it comes to php ... does anyone know how to resolve this?

  2. postinote
    Member
    Posted 5 years ago #

    I went to line 17 in wp-admin/index.php and found this line:
    require('./wp-blog-header.php');

    If that's any help. Here's the entire file. Its pretty short.

    <?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');
    ?>

  3. postinote
    Member
    Posted 5 years ago #

    Do I have to beg?

    I have taken on the duties of getting this blog up and running. I really could use some advise on what the problem is.

  4. codestyling
    Member
    Posted 5 years ago #

    If you really running at 1 and 1 Server (and i think so because of 304 layout of your home site), i would try to configure the webspace to work with PHP5 instead of PHP 4.4.9 as currently reporting by requesting the login screen.
    To do that, just edit your .htaccess File in your root wp root dir (or create one if there is non) and place as first lines inside:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    This switches the PHP 5 on. Try this first before further steps to be evaluated.

  5. postinote
    Member
    Posted 5 years ago #

    Let me give that some work ... thanks for the reply; Much appreciated!

  6. postinote
    Member
    Posted 5 years ago #

    Hello again

    I am indeed using 1 and 1 ... Here is a stupid, although pertinent question: There is no htaccess file int he root folder so I am assuming I will have to create one. No big deal, but what do I call it? How should the folder be labled, exactly?

    I'll sniff around online for the answer, but just in case I don't find it I thought I'd ask.

    thanks again

  7. postinote
    Member
    Posted 5 years ago #

    Update:

    I created the file called .htaccess, and a new folder called htaccess (no "dot"). I dropped the folder into the root directory of the blog and then dropped the .htaccess file into it. What continues to happen is that the file moves to another location, by itself. It also appears that there is already a file called .htaccess in the wp-includes folder. Strangely, when I navigate to that folder to check it out I am unable to find it! When I search it out by entering "htaccess" in the FTP client's search window I can locate it. The gods seem to have it in for me.

    In any event, the existing file seemed to have the exact same code in it. So, to sum up, yes, I do have that file already, but no, it is in a different location and I can't make it stay in the root directory of the blog.

    Thanks for your help.

  8. codestyling
    Member
    Posted 5 years ago #

    Any file with a leading dot is a hidden file in terms of unix. It's necessary, that the file is named .htaccess and resides in the root of your WP installation.
    Some FTP programs doesn't show initially hidden files but can be configured to do so. Than you should able to see those again.
    Please create such a file (don't strip the leading dot) put the lines into and upload it.
    If your home PC runs Windows, you can't locally create files with leading dot's. So just create a htcaccess named file, modify the content and open an Windows Console. Changed to the folder containing the file and enter command
    ren htaccess .htaccess
    Then you should have one for upload. You can alternatively upload the wrong named file and rename it with your FTP program at your webspace.

    I hope, this may help you going forward.

  9. whooami
    Member
    Posted 5 years ago #

    Greetings, ...

    your wp-admin/index.php is NOT the correct file. I dont know what the other stuff is that you are doing but the answser to the original problem you are having is to upload the proper index.php into the wp-admin/ directory

    The one you pasted the contents out of -- that is the index.php that belongs one directory ^ up from there, ie, in the same directory as your wp-config.php

Topic Closed

This topic has been closed to new replies.

About this Topic