• wp 1.5

    after i modify a part of my index.php, i always get the error:

    Fatal error: Call to undefined function: get_header() in /home/::REMOVED::/public_html/::REMOVED::/index.php on line 1

    i do not edit any php in the index, just html aspects that worked just seconds before … what could cause this?

    Also, after undoing specifically what i did to cause this problem, i still get this error…and i can still access my wp-admin …

Viewing 4 replies - 1 through 4 (of 4 total)
  • Are you trying to acess the file directly in the template folder? In that case I can understand why you got the message. If that is the problem try vewing index.php in the root directory. Sorry if that does not help.

    Hey.

    It looks like you might be editing a theme’s index.php (inside the wp-content/themes directory) and then accessing the page directly (by browsing to https://www.yourdomain.tld/wp-content/themes/mytheme/index.php). [as said above!]

    Instead, after editing the index.php for a theme you need to either select that theme in the admin control panel (under Presentation) or, if the theme is already selected, just visit your weblog (without the /wp-content and stuff on the URL) and you should see the updated display.

    Rob.

    Thread Starter tjinh200

    (@tjinh200)

    I’m still unsure of the problem, but i had https://www.mywebsite.com open in one browser/tab and the wp-admin in another…i’d upload using an ftp program, and refresh my https://www.mywebsite.com page … then the error appeared … i wasn’t accessing the index.php directly … hmm …

    What is the text of your index.php (in the root directory). It should be

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘./wp-blog-header.php’);
    ?>

    If it is that then I dont know. Did you edit wp-blog-header.php in any way?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘call to undefined funtion, after index.php mod…’ is closed to new replies.