• On my main page where my wordpress should load, I get this error:

    Fatal error: Call to undefined function: bloginfo() in /home/brokenl/public_html/mindy/wp/wp.php on line 9

    But on Line 9 is what came in the original document:

    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php echo get_settings(‘blog_charset’); ?>” />

    How do I fix this?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Assuming you’re running 1.5.1, it’s a bug:

    https://trac.www.ads-software.com/ticket/1353

    Best solution is to upgrade to 1.5.1.1, or at least replace the wp-db.php file in wp-includes/:

    https://trac.www.ads-software.com/file/trunk/wp-includes/wp-db.php?rev=2598&format=raw

    But 1.5.1.1 fixes a number of other annoying bugs, so it’s the recommended option.

    Thread Starter mizabe

    (@mizabe)

    If 1.5.1.1 is the one on the download page, that is the one that I’m using. I tried replacing the wp-db.php page but that did nothing, I’m still getting the same error.

    The issue is that the error is masking a somewhat different problem. The bloginfo() function is a WordPress one, and if it’s not defined to all intent *within* WordPress, then something else is going on here. Unfortunately I can’t access your site (that is, at all), so I can’t help in any digging on this.

    Thread Starter mizabe

    (@mizabe)

    Oh, I never updated my profile, my new site is at https://brokenlife.org/mindy/1.php

    So you’re including wp.php in this page? This needs to be made WordPress-aware by having the following at the top of your PHP template (either 1.php or wp/wp.php):

    <?php
    require_once('./wp-blog-header.php');
    ?>

    If you place it in the 1.php document, change the require line to:

    require_once('./wp/wp-blog-header.php');

    Just make sure to provide the proper path (depending on where you place it) to wp-blog-header.php.

    Thread Starter mizabe

    (@mizabe)

    That’s already in my wp.php page though?

    Fatal error: Call to undefined function: get_header() in /home/wildx/public_html/spirit/wordpress/wp-admin/index.php on line 1

    What did I do wrong?

    I am getting this same error and I’m also running the newest release, did you ever get it fixed?

    You replaced the root WP index file with another and so WP is not being included. Reupload the index file and only edit the index file in the theme directory. Just a guess.

    It would also be helpful if your profile link actually pointed to your blog as that is what we are here about ??

    I’m having the same problem, but I’ve only noticed it on my 404 page. I was trying to modify it and was getting an error that the file didn’t exist. I modified .htaccess to point directly to the file and am now getting the above mentioned get_header() error. I deleted the main index.php and uploaded a fresh one, but that didn’t work, either.

    >>https://www.jonlandrum.com/foo

    Any ideas?

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Fatal Error: Undefined Function’ is closed to new replies.