Site logo

[Resolved] Missing closing body tag on almost all pages

Home Forums Support [Resolved] Missing closing body tag on almost all pages

Home Forums Support Missing closing body tag on almost all pages

  • This topic has 19 replies, 3 voices, and was last updated 5 years ago by Leo.
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #1707661
    Dominique

    Hi,

    While troubleshooting a supporter at Wp Rocket noticed that </body> the closing body tag is missing on almost all pages using “View Page Source” so prior to any error correction done by browser.

    In her own words: “Closing </body> tag comes with your theme files” “This may cause some issues. WP Rocket and other plugins/functionalities often rely on the <body> tag.”

    Please advise

    #1707731
    David
    Staff
    Customer Support

    Hi there,

    thats correct the Theme outputs the closing </body> in the footer.php template as seen here:

    https://github.com/tomusborne/generatepress/blob/b60b853630da6d9015722da903e53c8064148b0a/footer.php#L64

    If its not being output then that means something else is breaking that functionality – it could be another plugin or custom function or script added to a GP Hook Element that is breaking the code.

    #1708176
    Dominique

    Hi David,

    Beurk!

    I will disable all plugins and gradually re-enable them until I find the culprit.

    As for custom function or script added to a GeneratePress hook I only used the ones in GeneratePress documentation and the ones that support supplied to me.

    If issue doesn’t get solved with the plugins will you be able to troubleshoot if I give you admin access?

    #1708431
    Dominique

    Hi,

    I disabled ALL plugins & hooks that get disabled when code snippets plugin is disabled. Still no </body> closing body tag on almost all pages except the home page in French.

    Please advise

    #1708495
    Leo
    Staff
    Customer Support

    This really can’t be a theme issue – our support forum would be flooded with this by now.

    Just to confirm, the issue occurs with All plugins (including GP Premium) and custom functions disabled?

    Can you also make sure you are using a parent theme and not a child theme?

    Do you see the line David indicated here?
    https://github.com/tomusborne/generatepress/blob/b60b853630da6d9015722da903e53c8064148b0a/footer.php#L64

    #1708519
    Dominique

    Hi,

    I’m just the messenger. Please don’t shoot the messenger ๐Ÿ˜‰

    Not certain that your support forum would be flooded since to my understanding browsers will correct the missing closing body tag. This is the article that was linked to me by WP Rocket support: https://www.seoptimer.com/blog/view-source-chrome/#View-source-vs.-Inspect-element

    “I disabled ALL plugins & hooks that get disabled when code snippets plugin is disabled.” Yup ALL plugins. Zero plugins enabled. Nada Zilch. Just to confirm ๐Ÿ™‚

    I DO NOT have a child theme.

    I saw the line in the link. Just to make things clear. I have no idea why the closing body tag is not there on almost all pages with ALL plugins disabled. I am not a coder. I’m doing my best with the information that I got with WP Rocket support.

    Also sincerely I don’t like your attitude and your replies. I find you to be conflictual and abrasive and stand beside my affirmation that you need a serious dose of vitamin D procured by a vacation in a tropical destination to kick the grumpy and bumpy out of you. Just my two cents. David has a nice smile and attitude ๐Ÿ˜›

    Let’s move forward…

    #1708544
    Dominique

    To help troubleshoot this I will create a staging site on separate instance as destroying the layout of the website by disabling all plugins is not too pretty on a live site.

    #1708590
    Leo
    Staff
    Customer Support

    Sounds good.

    Before you create a staging site, can you create a fresh install and run the test to see if the issue exists?

    And does the issue exists in a Twenty series WP theme?

    #1708614
    Dominique

    Hi,

    I tried storefront. Since I was doing a troubleshooting procedure for WooCommerce with missing Apple Pay & Google Pay buttons. I found that the buttons don’t appear on appointable products from WooCommerce Appointments plugin but appear on “normal” products. Another issue. They just keep coming…

    Since the frontend looked like total poop. I rushed through and activated the plugins. So my answer is: I don’t know, just a blob and sure beats me ๐Ÿ™‚

    By the way this whole missing end body tag discovery came from WP-Rocket helping me figure out the CLS issue using the Gutenberg gallery ๐Ÿ™‚ I also opened a support ticket on WordPress.org in the Gutenberg section. After 6 days no replies. I also found this: https://github.com/WordPress/gutenberg/issues/24527 so when I told you guys and gals that reporting issues to WordPress is a total waste of time. This is a perfect example. It hasn’t even been assigned since August 12, 2020. Support at WordPress doesn’t really exist…

    I’m building an instance now with a companionship beer. I will troubleshoot it without being preoccupied of the font end and get back to you.

    #1708647
    Dominique

    Hi

    I created a blank instance. Installed GeneratePress and created a basic test page:

    view-source:http://35.182.246.206/test/

    The closing body tag is not there ๐Ÿ™‚

    Please advise

    #1708693
    Leo
    Staff
    Customer Support

    That is strange indeed. I just did a fresh install here:
    https://wordpress-202309-991531.cloudwaysapps.com/sample-page/

    And the <body> tag is there:
    https://www.screencast.com/t/MSfq6JTfbx2

    Any chance you can activate a Twenty series theme to test if the issue is fixed there?

    Let me know ๐Ÿ™‚

    #1708700
    Dominique

    Hi,

    I also tried a twenty series theme and the issue is still there.

    As a kind of more than basic WordPress user I’m stumped and also dazed and confused.

    There is no CDN. I installed nothing else. It’s a Bitnami WordPress NGINX With SSL install version 5.7.0 on Amazon Web Services.

    I don’t get it!

    I put in Private Information admin login.

    For some reason or another whatever is happening transports over to my complete install.

    Please advise

    #1708708
    Leo
    Staff
    Customer Support

    I also tried a twenty series theme and the issue is still there.

    So that means it’s not a theme issue and not something we can fix within GP or advise on.

    I would recommend checking with Amazon Web Services and show them the issue in a Twenty series theme and see if they have heard a similar issue before.

    Sorry about that!

    #1708709
    Dominique

    I saw that coming from a mile away ๐Ÿ™‚

    #1708711
    Leo
    Staff
    Customer Support

    I also saw that it really can’t be a GP issue a mile away ๐Ÿ˜‰

    Definitely check with their support.

Viewing 15 posts - 1 through 15 (of 20 total)
  • You must be logged in to reply to this topic.