1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Call to undefined function: bloginfo() -WORDPRESS

Discussion in 'HTML & Website Design' started by FPForum, Nov 27, 2007.

  1. #1
    I am using the most recent version of wordpress (2.3.1)..I have downloaded a free wordpress theme and it seams to be displaying absolutely fine. However, when I try to visit an exact section, for example:
    mydomain.com/wp-content/themes/themename/header.php

    I get nothing but this error:
    Fatal error: Call to undefined function: bloginfo()

    It gives me the filename plus the line the error is on, although there is the bloginfo function on a number of different lines in the file.
    SEMrush
    Any ideas what could be causing this and how it can be fixed?

    Thanks!
     
    FPForum, Nov 27, 2007 IP
    SEMrush
  2. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,727
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #2
    What were you expecting to see? the code in the header? I'm afraid its impossible in a browser
     
    Richie_Ni, Nov 27, 2007 IP
  3. FPForum

    FPForum Notable Member

    Messages:
    4,075
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    2
    #3
    Nope, I was expecting to see the header..kind of like if i got to the same path only with sidebar.php, i see the sidebar..
     
    FPForum, Nov 27, 2007 IP
  4. Richie_Ni

    Richie_Ni Illustrious Member

    Messages:
    10,727
    Likes Received:
    1,175
    Best Answers:
    0
    Trophy Points:
    410
    #4
    really? u can see the sidebar by typing the path in your browser? hmm....it isn't a html file,is it?
     
    Richie_Ni, Nov 27, 2007 IP
  5. FPForum

    FPForum Notable Member

    Messages:
    4,075
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    2
    #5
    yea, I can see the sidebar..no css in it or anything but the links and everything appear. Nope, they are all php files.
     
    FPForum, Nov 27, 2007 IP
  6. Crimsonc

    Crimsonc Peon

    Messages:
    616
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #6
    can you link to the page that gives you the error as well as the homepage of the site?
     
    Crimsonc, Nov 27, 2007 IP
  7. FPForum

    FPForum Notable Member

    Messages:
    4,075
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    2
    #7
    sure
    http://www.domainhost.co.in -the site
    http://www.domainhost.co.in/wp-content/themes/hosting/header.php -the error page

    Basically, my overall goal is to have the header replace this one here:
    http://www.domainhost.co.in/clients/

    however when I made the change it doesn't appear, all that shows up is the code upto the first bloginfo which is:
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    So that is what makes me think this error is what is causing the header to not appear

    btw..thanks for your help guys :)
     
    FPForum, Nov 27, 2007 IP