• Hello,

    If I click the “About” link in the nav menu on therockingchair.org I get the following:

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <playlist version="1">
    <trackList>
    <track>
    <title>Front Door</title>
    <creator>Jason</creator>
    <location>
    http://www.therockingchair.org/about_photos/doors_lg.jpg
    </location>
    <info>http://www.therockingchair.org</info>
    </track>
    <track>
    <title>Open Front Door</title>
    <creator>Jason</creator>
    <location>
    http://www.therockingchair.org/about_photos/opendoor_lg.jpg
    </location>
    <info>http://www.therockingchair.org</info>
    </track>
    <track>
    <title>Inside the Door</title>
    <creator>Jason</creator>
    <location>
    http://www.therockingchair.org/about_photos/insidedoor_lg.jpg
    </location>
    <info>http://www.therockingchair.org</info>
    </track>
    <track>
    <title>Inside Room</title>
    <creator>Jason</creator>
    <location>
    http://www.therockingchair.org/about_photos/room1_lg.jpg
    </location>
    <info>http://www.therockingchair.org</info>
    </track>
    <track>
    <title>The Fireplace</title>
    <creator>Jason</creator>
    <location>
    http://www.therockingchair.org/about_photos/fireplace_lg.jpg
    </location>
    <info>http://www.therockingchair.org</info>
    </track>
    </trackList>
    </playlist>

    When I enter the URL directly or click the link in the editor the About page loads fine.
    “About” is a custom page design which, from what I can tell, seems to be coded fine. Just in case, here’s the code:

    <?php
    /*
    Template Name: About
    */
    ?>
    <?php wp_head(); ?>
    <?php get_header(); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post">
    <div class="post-title"><h1><?php the_title(); ?></h1></div>
    <div class="entry"><p><?php the_content('[Read the rest of this entry...]'); ?>
    <?php $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?>
                <ul id="subpage">
                    <?php echo $children; ?>
                </ul>
                <?php } ?></p></div>
    </div> <!-- Closes Post -->
    
    <?php endwhile; ?>
    
    <?php else : ?>
    
    <div class="post">
    <h1>Not Found</h1>
    <div class="entry">Sorry, but you are looking for something that isn't here.</div>
    </div> <!-- Closes Post -->
    
    <?php endif; ?>
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    I’ve never encountered this before and to be quite honest, I’m stumped. Your help would be greatly appreciated! 🙂

Viewing 13 replies - 1 through 13 (of 13 total)
  • Using Mac Firefox 46.0.1 and Mac Chrome 50.0.2661.94 (64-bit), I was easily able to reproduce your reported issue going directly to http://www.therockingchair.org/about without needing to click on your About link. Whereas I wasn’t able to reproduce the issue going to http://www.therockingchair.org/about/our-story/ nor a top level page such as http://www.therockingchair.org/therapy-services/.

    So, hmm, what’s up with your About page? That is, I wonder how it lost all of its HTML bits? Might I suggest deleting the current About page and creating a new one. That should do the trick.

    Hope this helps!

    Oh bummer, I missed the part where you said, “When I enter the URL directly or click the link in the editor the About page loads fine. ‘About’ is a custom page design which, from what I can tell, seems to be coded fine.”

    Hmm, as I stated above when I go to http://www.therockingchair.org/about I see the same “This XML file does not appear to have any style information associated with it. The document tree is shown below.” issue you originally reported. That is, I did not have to click the About link on your home page. As for the About page being a custom design, might I suggest showing the current output to the page’s designer and see what they have to say?

    P.S., Has the About page ever worked? And, if so, when did it break? And between those two times, did you update WordPress, your plugin(s), and/or your theme?

    And not to sound like a broken record, which I always feel like I do, but whenever issues come up it’s always best to rule out 3rd party incompatibilities. Thus it’s almost always prudent to temporarily deactivate your plugins and switch your theme back to a default Twenty series theme. I bet, in your case, this will have zero effect, but better safe than sorry I always say! It’s also these time I wish I knew how to code rather than just being a black box tester. I could then analyze your PHP code and probably be way more helpful!

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    How did the page lose its HTML bits? That’s exactly what I’m wondering, Randy!
    And what’s even more strange is that deleting the old About page and creating a new one didn’t make any difference. That led me to wonder if it was the custom page template, so I set the page back to the default template. No change.

    Thanks for the help. I’m sure there’s an answer somewhere, but for now I’m just gonna sit here and stare out the window for a bit. It won’t help but it can’t hurt. O_o

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Sorry, never refreshed the page before replying.
    Thanks for all the follow ups! Really appreciate it!

    Yes, the About page did work. Up until when, I am not sure.
    I did deactivate all plugins. Nothing.
    When activating the 2014 theme the About page does work. The layout is pretty wonky but I’m sure that’s because I need to work with the menus, but short answer- yes. About page does work.
    Also, I’d love to show this to the designer but from what I’m told he is no longer in business and that is not an option.

    On a side note, the current menu is not laid out through the wp menu but within header.php

    Okay, so ALL plugins disabled and your trouble remains. But, if you activate one of the default WordPress Twenty series themes rather than your current “The Rocking Chair” theme then the issue is no longer reproducible, right?

    Is the theme’s creator the same person that coded your About page? Because it’s obviously a theme related issue you are having being that a default theme fails to reproduce the issue. If not, then you might need to find someone else that can take a wider look at your theme to see what’s going on with your About page as well as, possibly, other issues.

    P.S., When reporting this bug here or elsewhere just say:

    Steps to reproduce:
    1. Go to http://www.therockingchair.org/about

    Result:
    User taken to page that stated, “This XML file does not appear to have any style information associated with it. The document tree is shown below.” and:

    <playlist version="1">
    <trackList>
    
    <track>
    <title>Front Door</title>
    <creator>Jason</creator>
    <location>http://www.therockingchair.org/about_photos/doors_lg.jpg</location>
    <info>http://www.therockingchair.org</info>
    </track>
    
    <track>
    <title>Open Front Door</title>
    <creator>Jason</creator>
    <location>http://www.therockingchair.org/about_photos/opendoor_lg.jpg</location>
    <info>http://www.therockingchair.org</info>
    </track>
    
    <track>
    <title>Inside the Door</title>
    <creator>Jason</creator>
    <location>http://www.therockingchair.org/about_photos/insidedoor_lg.jpg</location>
    <info>http://www.therockingchair.org</info>
    </track>
    
    <track>
    <title>Inside Room</title>
    <creator>Jason</creator>
    <location>http://www.therockingchair.org/about_photos/room1_lg.jpg</location>
    <info>http://www.therockingchair.org</info>
    </track>
    
    <track>
    <title>The Fireplace</title>
    <creator>Jason</creator>
    <location>http://www.therockingchair.org/about_photos/fireplace_lg.jpg</location>
    <info>http://www.therockingchair.org</info>
    </track>
    
    </trackList>
    </playlist>

    Expected result:
    Expected properly formatted HTML page.

    Reproducible?
    Always

    Occurs:
    – Mac Firefox 46.0.1
    – Mac Chrome 50.0.2661.94 (64-bit)
    – Win Edge 25.10586.0.0
    – Win IE 11.212.10586.0

    P.P.S., LOL, you totally made my day with your “Thanks for the help. I’m sure there’s an answer somewhere, but for now I’m just gonna sit here and stare out the window for a bit. It won’t help but it can’t hurt.” statement. That’s an excellent idea! Moreover, might I suggest getting outside if the weather permits it. That always tends to help me! 🙂

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Correct, disabling all plugins did not correct the problem but once I changed to the 2014 theme the About page issue was fixed.

    I agree, this had to be an issue with the theme (which was created some years ago along with the About page template).
    It looks like I’ll be staring at my window and some dated code for a bit longer. I’ll take your advice on those walks once the rain clears!

    Thanks for all your help.

    Clearly the problem is with this:

    On a side note, the current menu is not laid out through the wp menu but within header.php

    SO please post the contents of your header.php (from the Theme that is NOT working, not from the TwentyFourteen Theme that is working).

    I’m sure we can get to the bottom of this.

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Why can’t I see my reply?

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Ok, so it’s not letting me paste my header code, Trisha.
    Here’s a pastebin link. http://pastebin.com/FJbRXtZs

    Thanks for offering your help!

    OK I’ve looked at your header code, and whomever wrote that Theme code is using a *very, very* old method for the sub-menu ‘drop down’ effect.

    The reason it happens only on your top-level “About” page and not it’s sub-pages is that old script method is applied *only* to that one link, as so:

    <a class="about" title="About" href="#" onmouseover="mopen('m2')" onmouseout="mclosetime()" class="small">about</a>
                      <div id="m2" onmouseover="mcancelclosetime()" onmouseout="mclosetime()">

    BUT the good news is that the same effect can very easily be achieved with CSS and by using the “Custom Menus” function in WP (Appearance>Menus) *provided that your Theme supports custom menus* and it provides the necessary CSS (most Themes these days do).

    I could not tell from looking at your header code exactly what theme you are using, it looks custom OR whomever wrote it changed the name to match your domain…but you have two choices:

    A. Easiest – just go to the Theme repository and select a new Theme. You can still add your custom logo and fonts, and if you really want that garish background you can add it in the CSS for the body tag.

    B. Trickier – add custome menu support and the necessary CSS to your existing Theme.

    If you go with option B, there are 4 steps:
    1) Add some code to your functions.php file:
    a) add theme support for menus:
    https://codex.wordpress.org/Function_Reference/add_theme_support
    b) register a nav menu:
    https://codex.wordpress.org/Navigation_Menus

    2) Add the menu location to your header.php file where you want it – it would replace your current block of code that starts out with <ul id="sddm"> (and ends with the next) </ul>
    How to do this is on the same page as registering your menu, look for the section labeled “Display Menus on Theme”

    3. Add some styles to your CSS stylesheet (styles.css) – here’s a great tutorial:
    http://line25.com/tutorials/how-to-create-a-pure-css-dropdown-menu

    4. Lastly, just go to Appearance>Menus and design your menu how you like it – create a menu, check the pages you want in your menu, click and drag them into the order you want (you’ll notice that offsetting them slightly to the right creates your submenus), then assign it to your new menu location, and Save it.

    If you decide to go this route, be SURE to backup everything first, most importantly the three files you’ll be modifying – functions.php, header.php, and styles.css. I also recommend testing this on a sandbox or staging installation first, particualarly if your site gets a lot of traffic and you don’t want site visitors seeing any wonkiness while you’re setting this up.

    Thread Starter lifeleavesscars

    (@lifeleavesscars)

    Thanks so much for the detailed help! I appreciate it very much.

    The design is custom and at least six years old which explains the dated code.

    I’ll be sure to use your tips when updating the site.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Page works when called directly, not when using menu link’ is closed to new replies.