• Resolved poe

    (@poe)


    I’m using

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

    to incorporate the rest of my site (my writing mostly) into my WP theme. It works fine as far as I know in Firefox but in IE, it almost always goes to a webpage not found screen on THOSE pages. Sometimes not, but usually. And also, although it works perfectly in Firefox for ME and people I know… I’ve noticed in my stats that sometimes people click refresh several times on a page (even when they’re using Firefox) so I’m wondering if it’s doing it to them as well. To see what I mean, go to my site and click Once Upon on the sidebar (like I said, I THINK it only does it in IE). I hope this made sense. Thanks for your time 🙂

    PS: Link to my site is in my profile.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter poe

    (@poe)

    Anyone?

    have you tried anything in the last day?

    no one has answered as you don’t really explain what the problem is.

    Thread Starter poe

    (@poe)

    Um. I explained exactly what the problem is. I said:

    I’m using

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

    to incorporate the rest of my site (my writing mostly) into my WP theme. It works fine as far as I know in Firefox but in IE, it almost always goes to a webpage not found screen on THOSE pages.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Again, that doesn’t tell us the problem much.

    That code you posted doesn’t actually do anything. It includes the WordPress functions, but causes no output, no changes, no nothing.

    You’ve not given us enough info to make any sort of guess at all.

    You have to try things. You have to debug your code. You have to explain WTF you’re doing, at the very least. We can’t do any of that for you, because we’re not there and we don’t have access to your stuff.

    We’re programmers, not magicians.

    Thread Starter poe

    (@poe)

    That code you posted doesn’t actually do anything. It includes the WordPress functions, but causes no output, no changes, no nothing.

    I know it doesn’t actually do anything… Ok, let me try to elaborate. I’m using the require wp-blog-header so I can incorporate non WP pages (my writing, etc) into my WP theme. Example:

    <?php
    require('../wp-blog-header.php');
    ?>
    <!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" lang="en" xml:lang="en">
    <head profile="http://gmpg.org/xfn/11">
    
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen"/>
    
    <title>The Color Of Dreams | Once Upon | STORY TITLE</title>
    </head>
    
    <body>
    
    <div id="container1">
    <div id="top"></div>
    <div id="container2">
    
    <div id="main">
    
    STORY HERE</div>
    
    <?php get_footer(); ?>

    On those pages and ONLY those pages, when using Internet Explorer, they go to a 404 error page instead of the page. In Firefox they work fine. Blog posts and pages work just fine but when I make pages that way, IE doesn’t like them.

    Did that explain better? Sorry I thought I made it clear the first ime 😀

    Thread Starter poe

    (@poe)

    You have to try things. You have to debug your code. You have to explain WTF you’re doing, at the very least. We can’t do any of that for you, because we’re not there and we don’t have access to your stuff.

    We’re programmers, not magicians.

    Um…. COUGH? WTF? I’m rather confused because I explained exactly what the problem was in the first place. Pages using require wp-blog-header go to a 404 page. I most certainly HAVE tried things and debugged my code for about two weeks now before I asked my question. Believe me, I won’t be asking anything here again.

    if you just want the same style — call the same stylesheet.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    poe: You’re missing the point.

    We get what the problem is. You get a 404. Great. Fine.

    But saying “I do X and it gives me an error” doesn’t lend itself to a solution other than “Don’t do X”. Not helpful, I know.

    So… What do you want from us? We’ve never encountered that error. Ever. It’s not a known issue. Quite frankly, it doesn’t even make any sense. So naturally, we’re inclined to say “well, what else can you tell us?”

    If you can’t tell us anything more, then you’re pretty much screwed and your problem is unsolvable. I mean, I really would like to help, but the problem you’ve presented is not something that actually lends itself to a direction to take. The best I can say is “well, that’s pretty freakin’ weird, huh?” We need more information. We need something to work with.

    Think of it as if I went up to you and said “When I think of the color blue, a bus always drives by. How do I make that stop happening?” It’s basically the same sort of thing. 😀

    I would try to not think of the color Red, cas then the bus might run you over and that would suck.

    Thread Starter poe

    (@poe)

    This page explains and resolves this problem:

    http://www.ardamis.com/2006/07/10/wordpress-googlebot-404-error/

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Trouble with requiring wp-blog-header’ is closed to new replies.