• I installed random-file.php and was tinkering with passing an image name in the index.php file. was getting syntax errors. So I removed the plugin code from index.php file.

    While doing so I may have done something I don’t remember, because now my blog does not show up instead it shows this error message:

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

    Any ideas what could have gone wrong and where should I be looking in?

Viewing 4 replies - 1 through 4 (of 4 total)
  • There shouldn’t be a call to get_header() in your top-level index.php file. The top-level index.php file should look very simple, something like this:

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

    Thread Starter zapata

    (@zapata)

    But that’s how it was when I installed the theme and it was working fine. (theme: alexified: https://alexallied.com)

    I think you may be confusing the index.php file that lives in your theme directory (/home/ozdesi/public_html/passionforcinema-com/wp-content/themes/whatever_theme/index.php) and the index.php file that lives in the top level of WordPress (/home/ozdesi/public_html/passionforcinema-com/index.php).

    big difference between top-level index.php (contents above) and a THEME’s index.php. Theme’s live under wp-content/themes/YouRThemeName….

    [edit: yeah, what filoso said]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blog broke down’ is closed to new replies.