WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache causing problems with theme menu (11 posts)

  1. walkerjd
    Member
    Posted 3 years ago #

    I've got a site running on the Woo Themes framework with the most recent versions of WP and W3 Total Cache. The side navigation is set up using the built in Menus option under Appearance in the WP admin.

    Every now and then the side navigation on some pages gets cached incorrectly, and instead of displaying the specified menu for that page or the default menu, it displays a link for every single page on the site, including the ones marked 'private', which is generating broken links when the site gets crawled.

    When I clear the cache, everything goes back to looking the way it's supposed to.

    I haven't been able to find any information about this or anyone having a similar problem so far, and I'm not sure how to move forward with figuring out what's wrong.

    Any help anyone could offer would be awesome.

  2. Frederick Townes
    Member
    Posted 2 years ago #

    Are you sure settings haven't been changed somewhere when this occurs? I can't think of a reason why W3TC would randomly change behavior.

  3. walkerjd
    Member
    Posted 2 years ago #

    I'm not sure what kind of settings you're referring to. It's not happening on any one page, it happens after you've clicked through two pages on the site. So if you land on a page, click a link in the sidebar, and click another link in the sidebar, the page you land on will have the problem, unless I turn off the plugin in which case all the pages look fine.

  4. Frederick Townes
    Member
    Posted 2 years ago #

    Are there errors in your error log?

  5. walkerjd
    Member
    Posted 2 years ago #

    No errors. I'm getting a couple warnings about fonts that say "Resource interpreted as font but transferred with MIME type application/octet-stream."

    But I still get those warnings when I turn off the plugin, and the menus work fine.

  6. webdevbytes
    Member
    Posted 2 years ago #

    Yup I'm getting the same issue. It's weird.

    On my end I've been able to track it down the source of the bug. The function get_post_ancestors() returns an empty array even when there are 1 or more ancestors and $post->post_parent is true.

    if ($post->post_parent) // true{
        $ancestors=get_post_ancestors($post->ID); // returns empty array
    }

    When I deactivate Total Cache, all goes back to normal.

  7. netprince
    Member
    Posted 2 years ago #

    I've Same problem

  8. Scott Cariss
    Member
    Posted 2 years ago #

    I've got the same problem too. With W3TC enabled get_post_ancestors() is 50% of the time returning an empty array when there is ancestors.

  9. cyonite
    Member
    Posted 2 years ago #

    COuld you guys submit a bug report from the Support page? Perhaps attach the theme template file as well.

  10. Frederick Townes
    Member
    Posted 2 years ago #

    Is this issue still actual?

  11. Frederick Townes
    Member
    Posted 2 years ago #

    Can someone please submit a bug submission form from the support tab of the plugin for better support / investigation?

Topic Closed

This topic has been closed to new replies.

About this Topic