• Resolved aefernandes

    (@aefernandes)


    People, I’m trying to run wordpress but this string is showing:

    Fatal error: Call to undefined function: get_header() in /home/a11595/public_html/gabriel/index.php on line 2

    Anyone can help with this?

    Thanks.

    Alex

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter aefernandes

    (@aefernandes)

    Hi, something is really wrong. I deleted everything and did everything again, even the db and user. The same error happened. I went through the entire forum and couldn’t file one hint that could help. Please can anyone help me with that?

    Tks. Alex

    youre not editing your themes properly.

    thats an error thats commonly seen when you try to BROWSE to a theme directory.. like so:

    http://www.yourdomain.com/wp-content/themes/default/index.php

    the index.php in the root of your WordPress install will NEVER generate that error unless you are trying to edit that file the same way you would a theme file.

    In other words, stop editing that file.

    Upload a fresh index.php from the zip you have downloaded. And remember, you want to upload the root index.php, not one of the ones included with a theme, thats located in a theme directory.

    And start editing your themes correctly.

    The ONLY thing that ought to be inside in your root index.php is this:

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./wp-blog-header.php');
    ?>
    Thread Starter aefernandes

    (@aefernandes)

    The problem is that I’m not trying to edit the themes. I’m still trying to install. After replace the index.php for the orginal on the zip file an now when I browse:

    http://www.a2eng.com.br/gabriel/wp-admin/install.php

    it shows:

    HTTP 404 NOT FOUND.

    What I’m doing wrong now?

    Alex

    I dont know what you are doing .. But what you replaced is NOT what you pasted above and its NOT this:

    http://www.a2eng.com.br/gabriel/index.php

    THAT needs to be replaced with the corresponding file out of the zip.

    Deal with ONE problem at a time. when that file has been reuploaded, I will revisit this thread.

    Im going to guess that you are NOT respecting the directories that are present and SHOULD be present when you unzipped the zip.

    there is a ‘root’ index.php.

    there are theme index.php files.

    there is an index.php in your wp-admin directory.

    NONE of these files are the same.

    —-

    A headsup on your other error: LOOK at this:

    http://www.a2eng.com.br/gabriel/wp-content/ <– 404

    http://www.a2eng.com.br/gabriel/wp-admin/ <– 404

    http://www.a2eng.com.br/gabriel/wp-content/themes/index.php <– 404

    http://www.a2eng.com.br/gabriel/wp-includes/ <– 404

    Youre not uploading files properly

    and here is the proof:

    http://www.a2eng.com.br/gabriel/wp-config.php <– wordpress cant find them either.

    i just got a peek at http://www.a2eng.com.br/gabriel/

    As I suspected, You uploaded ALL the files to one directory. Wrong.

    When unpacked properly, you should have a ‘root’ directory that contains files, a wp-admin, a wp-content, and a wp-includes directory. Those directories have files and other directories within them.

    Thread Starter aefernandes

    (@aefernandes)

    Sir you were completely right…thank you so much.

    I will move one step fwd and start preparing the blog.

    Thanks. Alex

    That “sir” is a lady 😉

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Problems with INDEX.PHP’ is closed to new replies.