WordPress.org

Support

Support » Themes and Templates » Call to undefined function: bloginfo() in … /index.php on line 5

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

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • This would be in the lines <meta content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” http-equiv=”Content-Type”>

    does it work with the default theme ?

    which version of wp u r using ?

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

    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. 🙂

    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');

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Call to undefined function: bloginfo() in … /index.php on line 5’ is closed to new replies.
Skip to toolbar