• Hi,

    something very strange happened. On 1 of my category pages suddenly the header and footer of the page disappeared. cormilu.com.br/luminarias/fios-de-luz/
    I checked the source code and in fact it appears not to be there anymore…

    It’s the only category page that doesn’t have the header and footer anymore.
    Do you have any idea what might be causing this?

    thanks,

Viewing 8 replies - 1 through 8 (of 8 total)
  • Have a look at the settings for your auto-optimise plugin. Does it have something like a “reset cache” option? If not, leave it deactivated until this problem is solved.

    Thread Starter tabasco86

    (@tabasco86)

    Hi,
    thanks for your quick reply @lorro.
    I tried deactivating it, as well as the other plugins and nothing did the trick.
    For now I manually added the content to the archive-product.php file, however obviously that’s suboptimal…
    It’s really strange as I can’t even find an indication why this is happening. All other category pages display normal.
    I’ve disabled the child theme with all customizations and the situation persists too (so it’s not related to functions.php).
    It seems to me that for some reason on that specific page the header.php file isn’t being taken into account / that the changed the default page template to blank without header and footer.

    Thanks for any ideas.

    Cheers,

    I put a rubbish query string at the end of the category page url:
    ?x=111
    this is a test for a cache, because it now becomes a “different” page, and sure enough the page was then rendered with a header, though still no footer.

    I see you are running cloudfront. I’m not familiar with this – does it copy the site to several different locations so its served from near to wherever the user is. Is there way of flushing the cloudfront copies? Is there such a thing as a cloudfront account you can login to and flush their copy of your site?

    Thread Starter tabasco86

    (@tabasco86)

    Hi,
    the header only appears because I manually added it to the archive-product.php file.

    I disabled cloudfront + autoptimize but still no header or footer…
    It’s a total mystery to me. I just suddenly happened today. I imagine it might be related to the latest wordpress update since no plugins have changed and deactivating cache + child theme with all customizations didnt result in the header of footer appearing.

    Mystery…
    Any other ideas? ??
    thanks a lot for your help

    Struggling…
    Dashboard > WooCommerce > System Status > Tools > “Recount terms”

    Thread Starter tabasco86

    (@tabasco86)

    nope :/
    didnt work either…

    Inside wp-config.php, set:

    define('WP_DEBUG', true);
    define('WP_DEBUG_LOG', true);
    

    This may expose any php errors which may give a clue.

    With other plugins deactivated, temporarily switch to Storefront. I think if it works with Storefront, it would point to a problem with your theme. If it still doesn’t work with Storefront, it could be a database issue.

    Thread Starter tabasco86

    (@tabasco86)

    Hi,
    with debug on I only get the following:
    Notice: Trying to get property of non-object in /wp-includes/class-wp-query.php on line x
    once per page an on the homepage 7 times.
    While we’re at it any idea what that might mean?

    Strange enough the page without the header and footer doesn’t show any debug information…
    I’ll check on the theme now if that maybe is related. Didnt really cross my mind as the theme has been in use for over a year now.

    Cheers,

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Header and footer disappeared on 1 category page’ is closed to new replies.