Site logo

Archived topic

Missing closing body tag on almost all pages

19 replies · Started by Dominique on March 24, 2021

Viewing posts 1–15 of 20

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

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?

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

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 :P

Let's move forward...

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.

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?

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.

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

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

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!

I saw that coming from a mile away :)

I also saw that it really can't be a GP issue a mile away ;)

Definitely check with their support.

This archived topic is closed to new replies.