WordPress.org

Ready to get started?Download WordPress

Forums

Fatal error: Call to undefined function: bloginfo() in /home/o4tom/public_html/i (5 posts)

  1. o4tom
    Member
    Posted 9 years ago #

    Damn you, cpanel!

    I don't have ssh access yet to the new server where my site was moved. I figured I'd use cpanel's file manager to do some quick editing to my template (I didn't have file permissions to do it through wordpress). "How difficult could it be?" I said. "I've worked with UNIX and apache for years, I can figure this out!" I assured myself.

    Ten minutes later, I get the error listed above. I don't even think I edited the text! Is it a file permission thing? Did I screw something up unconsciously? I made a copy of the file (index1.php) and moved index.php to another part of the filesystem so as to be able to undo any errors. I thought that was smart, up until the part where it didn't work. Now I'm down. Here's my index.php file. Can someone please point out any problems with it, or how I can fix this error? Thanks
    `
    <head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats please -->

    <style type="text/css" media="screen">
    @import url( <?php bloginfo('stylesheet_url'); ?> );
    </style>

    <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'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />

    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    <?php wp_get_archives('type=monthly&format=link'); ?>
    <?php comments_popup_script(); // off by default ?>
    <?php wp_head(); ?>
    </head>

    <body>

    <table width="760" align="center" cellpadding="0" cellspacing="0" border="0" id="main">
    <tr>

  2. Anonymous
    Unregistered
    Posted 9 years ago #

    The function call is fine, it's that the function itself has not been defined, and that happens in one of the files elsewhere.
    Can you check all other files are correct ?

  3. Anonymous
    Unregistered
    Posted 9 years ago #

    Is the root index.php being used first ? That contains the call to 'wp-blog-header.php'

  4. o4tom
    Member
    Posted 9 years ago #

    Since I hadn't changed any of the other files, I can't see how they would be incorrect. The only other thing I've done today is update my .htaccess through wordpress. The site has just moved and my permalinks weren't showing up.

    How can I tell if the root index.php is being used first? I've looked at it, and I don't see wp-blog-header.php in it.

  5. o4tom
    Member
    Posted 9 years ago #

    There it is. Somehow I stupidly copied my "theme" index.php into the main root. It's all been restored now.

    Thanks for the suggestions.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.