• Resolved tradeweb

    (@tradeweb)


    Fatal error: Call to undefined function: get_header() in /home/public_html/wp-content/themes/bloggingpro_mt/single.php on line 1 is the error message I’m getting

    This is my header file

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title><?php if ( is_home() ) { ?><? bloginfo('name'); ?>&nbsp;<?php bloginfo('description'); } else { wp_title('&nbsp;'); ?>&nbsp;by&nbsp;<? bloginfo('name'); } ?></title>
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
    <link rel="shorcut icon" type="image/x-ico" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
    <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<?php bloginfo('template_url'); ?>/javascript/imghover.js"> </script>
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
    </head>
    <body> 
    
    <div id="bgcontain">
    <!-- header START -->
    
    <div class="HeaderBG">
    <div class="Header">
    
    <h1><a href="<?php echo get_option('home'); ?>/"><img src="http://mydomain.com/images/mlogo-v3.gif"></a></h1><p>
    <div class="Desc"><?php bloginfo('description'); ?><p><p></div>
    
      <div class="TopMenu">
       <ul>
         <?php wp_list_pages('depth=1&sort_column=menu_order&title_li=' . __('') . '' ); ?>
       </ul>
      </div>
    
    <div class="Search">
     <fieldset>
       <legend>Search</legend>
        <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
         <input type="text" name="s" class="keyword" />
    	 <div id="buttonsearch"><input name="submit" type="image" class="search" onmouseover="javascript:changeSty('searchIE');" onmouseout="javascript:changeSty('search');" title="Search" src="<?php bloginfo('template_url'); ?>/images/transparent.gif" alt="Search" />
    	 </div>
        </form>
      </fieldset>
    </div>
    <div class="SearchCorner"></div>
     </div>
    </div>
    <!-- header END -->
    
    <!-- container START -->
    <div class="ContainerBG">
     <div class="Container">

    Been trying for hours now but keep seem to going round in circles!

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter tradeweb

    (@tradeweb)

    I’ve just changed the theme to the default theme and same error still occurs, a blank page when trying to view any posts or pages (although the posts appear on the index page as a preview)

    Any suggestions.

    Is it possible that you overwrote the default index.php with the new template’s index file?

    Thread Starter tradeweb

    (@tradeweb)

    No Justin, just checked and the main index file is still in place.

    where is your site, what is the url?

    Is this a new zip download?

    Thread Starter tradeweb

    (@tradeweb)

    root – yes, it’s a new installation of 2.2

    I am sure its in the zip. When I use svn I get no problems.

    Thread Starter tradeweb

    (@tradeweb)

    This is the url to my blog

    http://tinyurl.com/2b2q5o

    As you can see all page,posts and cats appear blank when you click on them.

    ok, so now im going to ask some questions …in your first post, you said

    “Fatal error: Call to undefined function: get_header() in /home/public_html/wp-content/themes/bloggingpro_mt/single.php on line 1 is the error message I’m getting”

    EXACTLY how were you bringing up that file? Like this?

    [url removed by whooami]

    Because thats normal.

    I need to point that out because I think you are confusing issues, and if you are attempting to load files that way, it suggests to me that your trying to do things the wrong way.

    And im not going to beat aound with the bush with hiding urls either — ALL you need to do is ask one of the forum mods nicely that the urls be removed later and it will be done.

    And yes, I realize that doesnt address the blank pages — Im merely tackling ONE issue at a time.

    Thread Starter tradeweb

    (@tradeweb)

    OK – guess that was my mistake. I tried to load the single page to see if any errors were displayed after I found the individual pages wouldn’t load. I assumed the error was connected to the pages not being loaded.

    ok, next question:

    youre editing these files, I can tell by bringing up your sidebar.php.

    Have you edited OTHER files, if so which ones?

    additionally, this is going on:

    [url removed by whooami]

    blank.
    [url removed by whooami]

    not blank.

    do you have an index.html in the root of your web folder? remove it if you do. Im betting you do.

    Thread Starter tradeweb

    (@tradeweb)

    No other files apart from the theme sidebar and styles.css have been edited.

    read up.

    Thread Starter tradeweb

    (@tradeweb)

    thanks whooami. Is that all it was the index.html file!

    you deleted that index.html – and fixed.

Viewing 15 replies - 1 through 15 (of 16 total)

The topic ‘call to undefined function: get_header’ is closed to new replies.