WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] forbidden and Fatal error: Call to undefined function: get_header() (5 posts)

  1. cng85
    Member
    Posted 7 years ago #

    Hi,

    I've 2 problems, and they need to resolved asap.

    1)I can't get into /wp-admin. When I try to, this message shows up: "Forbidden, You don't have permission to access /wp-admin/ on this server."

    2)When I try to visit the site, this message shows up:
    "
    Fatal error: Call to undefined function: get_header() in /home/virtual/site14/fst/var/www/html/index.php on line 1"

    If anyone can help, I'd be really grateful. Thanks!

    cng85

  2. vkaryl
    Member
    Posted 7 years ago #

    Well.... I'd delete all the wordpress files you uploaded, except for wp-config.php, and reupload a clean distro. Sounds like corrupted files.

  3. cng85
    Member
    Posted 7 years ago #

    what do you mean by a clean distro?

  4. vkaryl
    Member
    Posted 7 years ago #

    Fresh download of the distribution.

  5. cng85
    Member
    Posted 7 years ago #

    Hi!

    Thanks for all the help. I finally resolved the problem. So I'll type out the resolution in case anyone wants to know. It turns out that I overwrote both index.php in the root directory AND index.php in wp-admin. So, to fix it, I uploaded those files using my ftp server. If you don't have a copy of those files, you can find them by downloading the installation packages at http://wordpress.org/download/release-archive/, especially if you've got an older version.

    Hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Topic