WordPress.org

Ready to get started?Download WordPress

Forums

Call to undefined function: bloginfo() in ... /index.php on line 5 (7 posts)

  1. coxtree
    Member
    Posted 8 years ago #

    I'm getting this error after uploading index.php and style.css for my new theme. Anyone have any ideas on how to fix?

  2. coxtree
    Member
    Posted 8 years ago #

    This would be in the lines <meta content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" http-equiv="Content-Type">

  3. sadish
    Member
    Posted 8 years ago #

    does it work with the default theme ?

    which version of wp u r using ?

  4. coxtree
    Member
    Posted 8 years ago #

    I copied this code from the default theme, v. 2.0

  5. paydirt
    Member
    Posted 8 years ago #

    Has anyone come up with a solution for this?

    Today, I opened index.php using my FTP program and made a simple change to a link. When I loaded the change, I get the error message

    Fatal error: Call to undefined function: bloginfo() in /home/removedforprivacy/public_html/index.php on line 5

    How do I fix this? When doing a search on Google for the phrase .... Call to undefined function: bloginfo() .... lots of messed up sites show up in the results.

    Help !! Please. :)

  6. MattRead
    Member
    Posted 8 years ago #

    Did you upload to the index.php in the main wordpress install directory? If so makes sure have the correct include and constant in there, like:

    define('WP_USE_THEMES', false);
    require('./wp-blog-header.php');

  7. paydirt
    Member
    Posted 8 years ago #

    Hooray! When I copied the index.php before making a link change, I stupidly failed to copy 3 lines at the top.

    Thanks so much for opening my eyes for me and responding so quickly.

Topic Closed

This topic has been closed to new replies.

About this Topic